def getObj(tfg, *args):
"""gets selected obj and adds it to the text field"""
sel = cmds.ls(sl=True, type="transform", l=True)
if (len(sel)) == 1:
cmds.textFieldGrp(tfg, e=True, tx=sel[0])
#--------if layout == the space switch text grp
clearList()
else:
cmds.warning("yo. Select one object as your space switch control")
评论列表
文章目录