随笔分类 -  Maya

摘要:global proc plantForest() { if(`window -ex plantForestWindow`) deleteUI plantForestWindow; window -title "Forest Gallary" -widthHeight 600 100 -sizeab 阅读全文
posted @ 2013-05-03 14:25 GamePal 阅读(255) 评论(0) 推荐(0)
摘要:#! D:/Program Files/Nuke6.3v4/Nuke6.3.exe -nxversion 6.3 v4define_window_layout_xml {<?xml version="1.0" encoding="UTF-8"?><layout version="1.0"> <win 阅读全文
posted @ 2012-07-17 09:40 GamePal 阅读(1429) 评论(0) 推荐(0)
摘要:/* Script Node execute on:Open/Close */ $left_scriptJob =`scriptJob -ac IKFK_cv_ctr.IKFK IKFK -cu 1 -pro`; global proc IKFK() { float $an=`getAttr IKF 阅读全文
posted @ 2012-02-03 13:07 GamePal 阅读(681) 评论(0) 推荐(0)
摘要:import maya.cmds as cmdsdef edgeCutter(): cmds.polySplitEdge() #split one or more edges so that each face that shared the vertex acquires its own copy 阅读全文
posted @ 2011-03-14 13:41 GamePal 阅读(219) 评论(0) 推荐(0)
摘要:import maya.cmds as cmdsdef oddFacesCheck(): objFaces = cmds.polyListComponentConversion(tf=True) cmds.select(objFaces) tmpFaces = cmds.ls(fl=True, sl 阅读全文
posted @ 2011-03-06 14:07 GamePal 阅读(207) 评论(0) 推荐(0)
摘要:import maya.cmds as cmdsimport relayer_List = cmds.ls(type ='renderLayer')layer_Nuke = [u'color', u'occ', u'shadow',u'specular']myIntersector = cmds.s 阅读全文
posted @ 2011-02-28 09:08 GamePal 阅读(413) 评论(0) 推荐(0)
摘要:import maya.cmds as mclsT=mc.ls(type="transform")Group=[]for i in lsT: lsS=mc.listRelatives(i,shapes=1) if(not lsS): if mc.nodeType(i)!="joint": Group 阅读全文
posted @ 2011-02-23 09:24 GamePal 阅读(182) 评论(0) 推荐(0)
摘要:import maya.cmds as cmdsimport randomselCurves = cmds.ls(sl=True)for crv in selCurves: cmds.rebuildCurve(crv, end=1, kr=0); randValue = str(random.uni 阅读全文
posted @ 2011-02-21 13:15 GamePal 阅读(200) 评论(0) 推荐(0)
摘要://create shave rib fileglobal proc myShaveWriteProcedure(){ int $f; for ($f =1; $f <=25; $f++) { currentTime $f; string $writeCmd ="shaveWriteRib -fra 阅读全文
posted @ 2011-02-17 14:25 GamePal 阅读(169) 评论(0) 推荐(0)