【文件属性】:
文件名称:nodule:Pythonic Maya属性访问
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-28 11:31:46
Python
结核
对Maya节点的Pythonic属性访问; 亦称“没有pymel的Pymel”
该模块的目的是消除由于使用maya.cmds访问maya对象的属性而造成的混乱。 Maya希望您获得如下属性:
position = cmds.getAttr(my_object + ".translate")
并像这样设置它们:
cmds.setAttr(my_object + ".stringAttr", "new_string", type="string")
并像这样连接它们:
cmds.connectAttr (this_object + ".rotateX", that_object + ".rotateY")
使用看起来像的结节
position = my_object.translate
my_object.stringAttr = 'new_string'
connect
【文件预览】:
nodule-master
----LICENSE.md(1KB)
----.gitignore(1KB)
----README.md(8KB)
----nodule.py(25KB)