def getLocalValues(obj, *args):
"""use the matrix(xform) to get world space vals, convert to trans and rots"""
# get values
# add as key in dict
obj_values = []
obj_wRot = cmds.xform(obj, q=True, ws=True, ro=True)
obj_wTrans = cmds.xform(obj, q=True, ws=True, t=True)
for tval in obj_wTrans:
obj_values.append(tval)
for rval in obj_wRot:
obj_values.append(rval)
return obj_values
# return (tx, ty, tz, rx, ry, rz)
# @zbw_undoable.undoable
评论列表
文章目录