我试图创建一个自动化通过包装多边形面到另一个多边形 # This script wrap a polygon face to the targeted terrain
import maya.cmds as cmds
# select terrain first, then the face
cmds.select('terrain', r = True)
cmds.select('f
我在Python相当小白。 我可以编写一个简单的脚本来为选定对象的顶点分配一个集群。 像这样: import maya.cmds as cmds
activeSelection = cmds.ls(selection=True)
for i in activeSelection:
cmds.polyListComponentConversion(i, ff=True, tv=Tr
我创建为Maya相同Python脚本并保存为2个版本的脚本文件夹中: import maya.cmds as cmds
def function(selection=False):
# some code here
# create a window with a botton.
window = cmds.window(w= 300, h=100)
loadBtn=cmds.but