随笔分类 -  MaxScript

摘要:try destroyDialog testRoll catch() rollout testRoll "" ( dotnetcontrol labMsg "System.Windows.Forms.TextBox" pos:[0,0] width:420 height:160 on testRol . . .
posted @ 2025-01-20 13:37 trykle 编辑
摘要:fn play = ( hz = #(392, 392, 440, 392, 523, 494, 392, 392, 440, 392, 587, 523, 392, 392, 784, 659, 523, 494, 440, 698, 698, 659, 523, 587, 523) interv . . .
posted @ 2025-01-16 10:56 trykle 编辑
摘要:大概在2023+版本出现,不知道什么原因 (此bug已在#(28000, 68, 0, 28, 0, 0, 3879, 2026, "")版本被修复) 运行下面这个代码: fn testFn = ( aaa.bbb.axIs 1 -- error, see that uppercase 'I' ) . . .
posted @ 2024-11-18 16:28 trykle 编辑
摘要:在mxs编辑中执行一段代码带有模态框的代码时,关闭该窗口后,mxs编辑器会变成模态框(不是每次都发生) (可以再次拖入一个messagebox "1"文件执行来解除bug) try destroyDialog ::TestRollout catch() rollout TestRollout "" . . .
posted @ 2024-02-06 11:48 trykle 编辑
摘要:mxs中并不允许闭包 在有类似操作的时候,可以通过直接创建全局变量的方式来进行 为了避免全部变量名字污染或干扰,可以用一个特殊一点的名字来标记 fn testFn = ( global '@testFn.data' = #() fn innerFn v = ( append '@testFn.dat . . .
posted @ 2024-01-26 18:44 trykle 编辑
摘要:v2024.1 实例封装 使用 struct 定义实例结构 结构名以小写开头 私有成员名以_开头,如有必要可加上private 访问内部成员时必须使用this.来访问 struct trykleInfo ( _age ,fn getAge = ( return this._age ) ,fn tes . . .
posted @ 2023-11-26 12:48 trykle 编辑
摘要:记录一些常见的随手就用的代码片段 字典 dict = dotNetObject "System.Collections.Generic.Dictionary`2[System.String,System.String]" dict.Remove "trykle_name" dict.Add "try . . .
posted @ 2023-11-15 14:37 trykle 编辑

点击右上角即可分享
微信分享提示