赞
踩
- import maya.cmds as cmds
-
- cmds.pointPosition( 'curve1.cv[3]' )
- # Returns the (x,y,z) world position of curve1's 3rd CV.
-
- cmds.pointPosition( 'particle1.pt[1]', l=True )
- # Returns the (x,y,z) local position of the particle point.
- # 得到选择物体的位置
- obj = selected()[0]
- for v in obj.vtx:
- print v.getPosition()
- v = PyNode('pCube1.vtx[2]')
- v.getPosition()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。