On 08/12/2014 at 08:18, xxxxxxxx wrote:
Is there a function to get a selected child objects index position in a parent hierarchy? For example, I have a cloner with three primitives as its children.
Cloner
|_Sphere
|_ **Cube **(Index position would be 1)
|_Torus
I'm currently getting it with multiple steps and wasn't sure if there was something more efficient.
Right now I:
1. Get selected object.
2. Get the parent of the selected object.
3. Get the children of the parent object.
4. Get the index number by seeing if selected object in children (children.list(selected)).
I've tried searching the forum and Google, but I may not be searching the right keywords.
Thanks