Select instance parents


#1

Hi there;
The question is simple but I can’t find a way to actually doing it.
I have a group of objects instanced many times and I want to assign shaders to some objects.
So I need a way to select one object of the group (which is an instance) and select all its tranforms (because an instance is just a shape with many parents).
I tried with “listRelatives” with no luck.

Thanks in advance.


#2
# select instances
import pymel.core as pm
pm.select(pm.ls(ap = 1, dag = 1, sl = 1 ))

#3

Oh my God, it was so simple! :smiley:

Thank you very much, it works perfect!