AdamMax
05-03-2011, 04:25 AM
Hi guys,
Sorry, I'm sure this is dead easy but I just cant seam to find a way to do it.
I need to find the child of a node. By child, I mean the node that has been linked to the parent
I'm a Max user so I'm probably not explaining that correctly... So heres what I do.
Create two polyCubes, pCube1 and pCube2.
Then in Hypergraph middle click hold and drag pCube2 over to pCube1 so that it is linked to pCube 1.
pCube2 is a child of pCube1
When I try listRelatives on pCube1 I get an array containing pCube2 and some of its relatives such as pCubeShape1 etc. Also, I cant just grab a particular index of the array because if joints are used in place of pCubes then the index of the real child(pCube2) changes.
How do I find pCube2 from pCube1?
I also tried pickWalk but that seams to only go from pCube1 to pCubeShape1
Thanks.
Sorry, I'm sure this is dead easy but I just cant seam to find a way to do it.
I need to find the child of a node. By child, I mean the node that has been linked to the parent
I'm a Max user so I'm probably not explaining that correctly... So heres what I do.
Create two polyCubes, pCube1 and pCube2.
Then in Hypergraph middle click hold and drag pCube2 over to pCube1 so that it is linked to pCube 1.
pCube2 is a child of pCube1
When I try listRelatives on pCube1 I get an array containing pCube2 and some of its relatives such as pCubeShape1 etc. Also, I cant just grab a particular index of the array because if joints are used in place of pCubes then the index of the real child(pCube2) changes.
How do I find pCube2 from pCube1?
I also tried pickWalk but that seams to only go from pCube1 to pCubeShape1
Thanks.
