摘要:struct op( name = "ccc")coc = #( cc = op name: 20 , op name: "name" )--- 保存数组配置o = gt_max_namespace.gt_cl_hp_fileiooutin(); o. setfile "c://t.txt" ...
阅读全文
摘要:之前一直都没找到 用到的时候就是用net 弄了。哎。还在开发东西都是在9上面,这次脚本必须在 max8 上面 逼的我找到了他getFileAttribute setFileAttribute Get and set the attributes associated with a file. ...
阅读全文
摘要:(---- 2013.9.08 ----裴永超编写----实现简单文件批量渲染__ini__ = gt_max_namespace .gt_cl_hp_ini()__max__ = gt_max_namespace.gt_cl_hp_maxfile()__dotoutin__ = gt_max_namespace.gt_cl_hp_dateoutin()__ca__ = gt_max_namespace.gt_cl_hp_camera()__file__ =gt_max_namespace.gt_cl_hp_fileiooutin()----gt_p_wencong_tools 就是结构的名称
阅读全文
摘要:-- 把数据保存成 xml 格式fn bipXml bipPaths frames filePath= ( if bipPaths.count >0 then ( XmlDocumentXDoc = dotNetobject "System.Xml.XmlDocument" dotnetPath = dotNetClass "System.IO.Path" dotnetDirectory =dotNetClass "System.IO.Directory" dotnetFile = dotNetCl...
阅读全文
摘要:fn CopyChnel nodep mapone maptwo =( ChannelInfo.CopyChannel nodep 3 mapone ChannelInfo.PasteChannel nodep 3 maptwo convertToMesh nodep )
阅读全文
摘要:--- 收集场景中同名的结点fn getSelEqualNme sel =( zong =#() for i in sel do ( append zong i.name ) equalname =#() namep =#() for i in zong do ( if findItem equalname i ==0 then ( append equalname i )else ( append namep i ) ) onlyname =#() if namep .count>0 then ( for i in namep do ( i...
阅读全文
摘要:struct ioo ( toto =#(), fn getbonename nodep = ( kong =#() if nodep.children.count > 0 then ( for i in nodep.children do ( append toto i.name append kong i ) ) if kong.count>0 then ( for i in kong do ( getbonename i ) ) ), -- 下面进行调用 返回 fn getbone nodep = ( toto =#(...
阅读全文
摘要:zongzu =#()for i in Objects do ( append zongzu i.name )重名收集 =#() 重名=#()for i in zongzu do ( if findItem 重名收集 i ==0 then ( append 重名收集 i )else ( append 重名 i )) --重名 就是 重名子的 但是还是在要 唯一化 一次唯一化重名 =#() if 重名.count >0 then ( for i in 重名 do ( if findItem 唯一化重名 i ==0 then ( append 唯一化重...
阅读全文
摘要:zongzu =#()for i in Objects do ( append zongzu i.name )重名收集 =#() 重名=#()for i in zongzu do ( if findItem 重名收集 i ==0 then ( append 重名收集 i )else ( append 重名 i )) --重名 就是 重名子的 但是还是在要 唯一化 一次唯一化重名 =#() if 重名.count >0 then ( for i in 重名 do ( if findItem 唯一化重名 i ==0 then ( append 唯一化重...
阅读全文
摘要:setTransformLockFlags的方法说明,不太难,相信能看懂的setTransformLockFlags <node> (#all | #none | <bitarray>) -- mappedSet and set the transform lock flags for the specified node as an <bitarray>. If a bit is on, the corresponding transform lock is turned on. The order of the bits is: #{POS_X,POS_
阅读全文
摘要:rollout unnamedRollout "Untitled" width:162 height:300(button btn1 "Button" pos:[6,77] width:137 height:121local klon btn1 pressed do (--while not eof std_oo do for o = 1 to 4 do ( local opo = readLine std_oo coun= filterString opo " " if coun.count>1 then( kl= "
阅读全文
摘要:思路:/*--根据题意 已知道A B 两点坐标 AB和BC的角度--已知道 AC BC 的距离 求c点坐标--如图--***** 解释******--我们把题 放到max 的顶视图考虑 (就是相当于一个二维坐标系中进行)--通过审题 可以知道C点有两个,分别在线段AB的两边。这个问题我们就看图中 --先考虑其中的一边,并且为了方便我把它放到了第一象限内。---如图做了一些辅助线。---如图如果求C点坐标 其实就是求 OE EC 的长度---进一步推导 要想求出他们的长度 知道知道 OC 的长度 还有角COE 就可以通过三角函数求出来。---1.求角CBD--因为A B 坐标知道 所以就知道了O
阅读全文
摘要:magenta=color 255 255 0 255 -- create colors using constructorsaqua = [0, 6, 2] as coloraqua.v /= 2. -- reduce "strength" of aqua color---这里是求出,.v 的最大的值,这个很重要。aquaaqua.alpha=128 -- set aqua to 50% opacityaqualightGray=white/4 -- create light gray color by dividing-- each component of white
阅读全文
摘要:----- 他的z轴信息应该是加入ResetXForm $$.max.z-$.min.z---由于不同类型不同的体积这里的是怎么算的呢。show utilityplugin.classes [29]UtilityPanel.CloseUtility()--------------------------------------对于体积现在还是不会for i in selection do (op = ResetXForm i oo = i.max.z-i.min.zformat "物体的名字:% ,物体的高度:% ,物体的体积:% \n" i.name (oo as str
阅读全文
摘要:makeDir @"c:\temp\test\deleteme\if\you" all:true
阅读全文
摘要:date_dis_1 = polyop.getVert input_poly verts_array[1] date_dis_2 = polyop.getVert input_poly verts_array[2]
阅读全文
摘要:http://cubevfx.blog.163.com/blog ... 212009112801248116/
阅读全文