摘要: when transform $ changes do(vertArray = $box001.vertsvertArrayCount = vertArray.count for i = 1 to vertArrayCount do(if (distance $.pos vertArray[i].pos) <= 20do (animateVertex $box001 ivertArray[i].pos = $.pos +20))update $box001) 阅读全文
posted @ 2010-09-11 11:05 softimagewht 阅读(279) 评论(0) 推荐(0)
摘要: macroscript SphereSegsOn category:"HowTo" ( callbacks.removescripts id:#sphere_segs txt = "for o in geometry do(\n" txt +="if classof o.baseObject == Sphere then \n" txt +="o.baseObject.segments *= 8.0\n" txt +=")\n" callbacks.addscript #preRender tx 阅读全文
posted @ 2010-09-04 19:42 softimagewht 阅读(401) 评论(0) 推荐(0)
摘要: 3ds Max 可以直接在命令行中输入 MAXScript 命令。从 DOS 命令行启动 3ds Max 后,可以运行指定的启动脚本。这对自动批处理渲染这样的任务来说非常有用。当启动 3ds Max 时,该功能使用 -U 命令行切换命名一个要运行的工具。-U 切换使用一个可选的外部参数,对 MAXScript 来说,该参数是要运行的脚本名。必须将 MAXScript 的大小写(大写)按以下示例中所示显示(打开 CD 后进入程序目录): 3dsmax -U MAXScript rendercams.ms 此示例命令行将启动 3ds Max 可执行文件,启用 MAXScript,然后让其运行启动脚 阅读全文
posted @ 2010-09-04 12:52 softimagewht 阅读(4562) 评论(0) 推荐(0)
摘要: --吸附模型表面 rollout unnamedRollout "Untitled" width:149 height:191 ( button btn1 "start" pos:[41,146] width:61 height:25 pickButton Souce "Souce" pos:[19,31] width:109 height:36 pickButton Target "Target" pos:[19,80] width:109 height:36 groupBox grp1 "拾取模型" pos:[9,7] width:130 height:127 on Souce picked obj do ( if obj != undefined do ( Souce.text = obj.name ) ) on Target picked obj do ( if obj != undefined do ( Target.text = ob 阅读全文
posted @ 2010-08-29 14:59 softimagewht 阅读(772) 评论(0) 推荐(0)
摘要: ------------------------------------------------------------------------ --导出变换数据------------------------------------------------------------------- out_name = ((GetDir #export)+"/cam_Animation.dat") ... 阅读全文
posted @ 2010-08-27 21:18 softimagewht 阅读(333) 评论(0) 推荐(0)
摘要: mybox = box();completeredraw();rollout progressTest "Progress Test"(progressbar doit_prog color:black pos:[15,20];label lab1 "www!"local temp = 0;on doit_prog clicked arg do (doit_prog.value = arg;if ... 阅读全文
posted @ 2010-08-21 17:14 softimagewht 阅读(206) 评论(0) 推荐(0)
摘要: rollout a "脚本管理" width:151 height:60(global SmLinkglobal SmLink1global SmLink2button btn1 "浏览" pos:[40,0] width:111 height:20button btn2 "" pos:[40,0] width:111 height:20button btn3 "重置" pos:[0,0] width:40 height:20button btn4 "浏览" pos:[40,20] width: 阅读全文
posted @ 2010-08-17 07:55 softimagewht 阅读(469) 评论(0) 推荐(0)
摘要: ----------------------------------------------------------骨骼动画for t = animationrange.start to animationrange.end do(at time t current_pos = selection.centerat time (t-lf) last_pos = selection.centerfr... 阅读全文
posted @ 2010-08-17 07:27 softimagewht 阅读(224) 评论(0) 推荐(0)
摘要: -------------------------------------------------球形NORMALradiateObj_helper = $Point001 --radiateObj_helper.pos = selection.center;for obj in selection do(current_mod = $.modifiers[#Edit_Normals]objSelNormal_bary = current_mod.GetSelection node:obj;for n in 1 to obj.verts.count do(local setNormal = # 阅读全文
posted @ 2010-08-16 14:59 softimagewht 阅读(303) 评论(0) 推荐(0)
摘要: wowo19811001@hotmail.com----------------------------截图代码xx = gw.getviewportdib()display xx----------------------------时间控制代码rollout test "Test Timer"(timer clock "testClock" interval:1000 --tick once a secondlabel test "0"on clock tick do(valUp = (test.text as integer)+ 阅读全文
posted @ 2010-08-02 10:23 softimagewht 阅读(575) 评论(0) 推荐(0)