2024-04-25 04:21:42 发布
网友
我在Maya中有一个对象数组,每个对象都有属性,我想从中提取它们的世界位置。我创建了一个数组:
nodesGetPos []
这就是我用来返回所有值的方法:
for nGP in nodesGetPos: posNew = getAttr(nGP + ".translateX") print (posNew)
我得到以下错误:
Maya Attribute does not exist (or is not unique):: u'nPR.translateX' #
这里有两个命令可以帮助你
pos = cmds.xform('pSphere1.vtx[*]', q=1, t=True, ws=True)
如果已冻结对象,则可以获取轴:
pos = cmds.xform('pSphere1.vtx[*]', q=1, rp=True, ws=True)
这里有两个命令可以帮助你
如果已冻结对象,则可以获取轴:
相关问题 更多 >
编程相关推荐