right that's all good but here is were i am confused, so you have getShape[0] and 2 parents, let say sphere1 and sphere2 .
Skin sphere1 to a joint now your getShape[0] skinned. Try pruning weights with Maya tool in Edit Smooth Skin on both sphere1 and sphere2, and shapes. How can I tell which one is actually skinned and which is not? Since it's the same shape and its skinned then is should not matter but it does. Yury On Thu, Mar 12, 2009 at 4:33 PM, ryant <[email protected]> wrote: > > If shape has two parent transforms it must be an instance right? > > import maya.cmds as cmds > > sphere = cmds.polySphere() > cmds.instance(sphere) > > getShape = cmds.listRelatives(sphere, shapes=True) > parents = cmds.listRelatives(getShape[0], allParents=True) > if len(parents) > 1: > print getShape[0], "is an instance" > > RyanT > Technical Artist > www.rtrowbridge.com/blog > NaughtyDog Inc. > > On Mar 12, 4:21 pm, yury nedelin <[email protected]> wrote: > > hi this is not really python specific but > > > > what i a nice way to tell if object is an instance with mel/python? > > > > Yury > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
