Hi Steve:
When you instance an object in Maya, you are basically creating a
new transform, and associating the instance's shape node with that
transform (The lack of connections from the shapeNode to the
transform node is a little annoying).
Thus you can do the following:
import maya.cmds as mc
list=[]
for s in
mc.ls(typ='transform'):
shape = mc.listRelatives(s, ad=True, s=True)
if shape is not None:
if shape[0] == 'pCubeShape2':
list.append(s)
mc.select(list, r=True)
There's probably an easier way to do it with a specific method for
this, but I'm not aware of one. (Anyone...?)