Working on a tool right now that will copy a shapenode to all the selected transform nodes. But it seems to be giving me instances when I duplicate the shape. what's going on here?
import pymel.core as pm
def copyShape( objects ):
source = objects.pop()
for target in objects:
pm.delete( target.getShapes() )
dupShape = pm.duplicate( source.getShape(), addShape=True )[0]
dupShape.setParent( target, add=True, shape=True )
source.deselect()
sel = pm.ls(sl=1)
copyShape(sel)
But when I parent the duplicated shape node. it parents an instance of the duplicated shape node. I just need a duplicate, not an instance.
there must be a way to do this, different from what I'm trying. what's going on here?
Kev
Kev