def stripTransforms(first="none", *args):
"""locks and hides all transforms from channel box. can call multiple objs as arguments or use selection of objects"""
attrs = ["rx", "ry", "rz", "tx", "ty", "tz", "sx", "sy", "sz", "visibility"]
objs = []
if first=="none":
objs = getSelection()
else:
objs.append(first)
if args:
for each in args:
objs.append(each)
print(objs)
for me in objs:
for attr in attrs:
objAttr = me + "." + attr
cmds.setAttr(objAttr, lock=True, k=False)
评论列表
文章目录