[MEL] listRelatives -ap ; does not list all parents?


#1

Hi,

So im pretty confused, but listRelatives -ap does not list all the parents but only the first one.

It always gives the 1 item array. Which is silly because if it gives an array, than it should be capable of returning the whole list of parents.

Whateven I select in my tree listRelatives -ap gives ony 1 item array.

Im pretty lost…


#2

-allParents will list multiple parents if the dag node is instanced, otherwise it’ll return the direct parent.

You will probably need to write a recursive function to find all parents of a node and it’d be safer to use full path names i.e. |node1|node2|node3.

More info here:

http://forums.cgsociety.org/showthread.php?p=8272880#post8272880