Maya Phthon获取世界坐标系


import maya.cmds as cmds
 
word = cmds.xform('pSphere1',q=1,ws=1,rp=1)
print word