首页 > 代码库 > Python For Maya_Artist Friendly Programming 学习笔记(第一章)

Python For Maya_Artist Friendly Programming 学习笔记(第一章)

#CubeRig
import maya.cmds as cmds
cube = cmds.polyCube()
cubeShape = cube[0]
circle = cmds.circle()
circleShape = circle[0]
cmds.parent(cubeShape,circleShape)
cmds.setAttr(cubeShape+".translate",lock=True)
cmds.setAttr(cubeShape+".rotate",lock=True)
cmds.setAttr(cubeShape+".scale",lock=True)
cmds.select(circleShape)

Python For Maya_Artist Friendly Programming 学习笔记(第一章)