随笔分类 -  sc

1 2 下一页

对象处理方法, 首先内存中要要有对象原形 才可以返回对象
摘要: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" ... 阅读全文

posted @ 2014-08-12 10:47 盖天00 阅读(162) 评论(0) 推荐(0)

max文件属性设置,
摘要:之前一直都没找到 用到的时候就是用net 弄了。哎。还在开发东西都是在9上面,这次脚本必须在 max8 上面 逼的我找到了他getFileAttribute setFileAttribute Get and set the attributes associated with a file. ... 阅读全文

posted @ 2014-07-14 15:11 盖天00 阅读(439) 评论(0) 推荐(0)

给朋友写的批量渲染工具
摘要:(---- 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 就是结构的名称 阅读全文

posted @ 2013-09-09 15:31 盖天00 阅读(287) 评论(0) 推荐(0)

max 中 dotnet 中实现保保存xml 数据
摘要:-- 把数据保存成 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... 阅读全文

posted @ 2013-03-08 11:36 盖天00 阅读(261) 评论(0) 推荐(0)

max 中对map 通道的拷贝 (首先要具有多通道)
摘要:fn CopyChnel nodep mapone maptwo =( ChannelInfo.CopyChannel nodep 3 mapone ChannelInfo.PasteChannel nodep 3 maptwo convertToMesh nodep ) 阅读全文

posted @ 2012-11-06 12:23 盖天00 阅读(185) 评论(0) 推荐(0)

找处场景中同名称的结点
摘要:--- 收集场景中同名的结点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... 阅读全文

posted @ 2012-07-09 12:17 盖天00 阅读(165) 评论(0) 推荐(0)

递归在类中的写法
摘要: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 =#(... 阅读全文

posted @ 2012-07-09 11:51 盖天00 阅读(295) 评论(0) 推荐(0)

解决场景有重名问题 (给同事写)
摘要: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 唯一化重... 阅读全文

posted @ 2012-07-09 11:50 盖天00 阅读(144) 评论(0) 推荐(0)

解决场景有重名问题 (给同事写)
摘要: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 唯一化重... 阅读全文

posted @ 2012-07-06 18:21 盖天00 阅读(162) 评论(0) 推荐(0)

数组转成 位数组 这个很好用。
摘要:bitarray 阅读全文

posted @ 2011-10-17 16:15 盖天00 阅读(181) 评论(0) 推荐(0)

锁定控制器,一般在绑定的时候很多用到
摘要: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_ 阅读全文

posted @ 2011-10-13 15:03 盖天00 阅读(305) 评论(0) 推荐(0)

快捷的转字符
摘要: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= " 阅读全文

posted @ 2011-10-10 10:19 盖天00 阅读(159) 评论(0) 推荐(0)

帮 论坛朋友解决的问题。
摘要:思路:/*--根据题意 已知道A B 两点坐标 AB和BC的角度--已知道 AC BC 的距离 求c点坐标--如图--***** 解释******--我们把题 放到max 的顶视图考虑 (就是相当于一个二维坐标系中进行)--通过审题 可以知道C点有两个,分别在线段AB的两边。这个问题我们就看图中 --先考虑其中的一边,并且为了方便我把它放到了第一象限内。---如图做了一些辅助线。---如图如果求C点坐标 其实就是求 OE EC 的长度---进一步推导 要想求出他们的长度 知道知道 OC 的长度 还有角COE 就可以通过三角函数求出来。---1.求角CBD--因为A B 坐标知道 所以就知道了O 阅读全文

posted @ 2011-10-09 15:04 盖天00 阅读(177) 评论(0) 推荐(0)

对于 位 的判断我一般都转数组 其实这里有这个很好、
摘要:not allVerts.isEmpty 阅读全文

posted @ 2011-09-10 09:39 盖天00 阅读(94) 评论(0) 推荐(0)

颜色的成功转换,这个就是颜色的一些操作。
摘要: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 阅读全文

posted @ 2011-09-05 09:13 盖天00 阅读(181) 评论(0) 推荐(0)

不会算体积的 写法 max 中体积是怎么算的呢
摘要:----- 他的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 阅读全文

posted @ 2011-08-30 17:51 盖天00 阅读(336) 评论(0) 推荐(0)

创建文件夹,并能创建深层次的结构目录。
摘要:makeDir @"c:\temp\test\deleteme\if\you" all:true 阅读全文

posted @ 2011-06-27 10:05 盖天00 阅读(194) 评论(0) 推荐(0)

getMAXIniFile() max 配置文件的函数
摘要:getMAXIniFile() 阅读全文

posted @ 2011-06-27 09:55 盖天00 阅读(243) 评论(0) 推荐(0)

poly 顶点坐标的函数
摘要:date_dis_1 = polyop.getVert input_poly verts_array[1] date_dis_2 = polyop.getVert input_poly verts_array[2] 阅读全文

posted @ 2011-05-05 14:36 盖天00 阅读(184) 评论(0) 推荐(0)

max 获取硬件信息。
摘要:http://cubevfx.blog.163.com/blog ... 212009112801248116/ 阅读全文

posted @ 2011-04-29 19:36 盖天00 阅读(132) 评论(0) 推荐(0)

1 2 下一页

导航