我想要做这样的事情, things = [ node().path = x for x in cmds.ls(sl=1,l=1)]
,但我发现一个无效的语法错误。所以我不得不用这个代替, things = []
for i, thing in enumerate(cmds.ls(sl=1,l=1)):
things.append(node())
things[i].pat
我需要知道如何在Maya中使用Python生成一些对象,然后将它们自动沿X轴放置在X轴上。我试图写一个代码,但它没有工作。 import maya.cmds as cmds
i = 0
while i < 10:
cmds.polyCube()
i = i + 1
objects = cmds.ls(type = "shape")
for j in objects