ÀÌ ¸§
ÀüÀÚ¿ìÆí
ȨÆäÀÌÁö
Á¦¸ñ
ºñ¹Ð¹øÈ£
(ÃÖ¼Ò 4ÀÚÀÌ»óÀÇ ¿µ¹® ¶Ç´Â ¼ýÀÚ)
Hi Chad,Brilliant script. I love it. I’ve modified the getShape method to help with dagpath names on shapes, and also ignoring intermediate shapes, as follows:def getShape(node): if cmds.nodeType(node) == ‘transform’: shapes = [x for x in cmds.listRelatives(node, shapes=True, fullPath=True) if cmds.getAttr(x + '.intermediateObject') != True] if not shapes: raise RuntimeError, ‘%s has no shape’ % node # end if return shapes[0] elif cmds.nodeType(node) in ['mesh', 'nurbsCurve', 'nurbsSurface']: return node # end if# end getShape