Long time without posting!
After getting back into Blender after a break, I was wondering about the following: in my game I have objects made of multiple parts parented to each other, and I quite often need to find the child of something. I also sometimes need to ‘go back up the chain’ and find the parent of an object- however now I need to find a parent of a parent, like childrenRecursive but in reverse.
Currently, I have just gone directly (just as it works, although painful to look at) e.g.
B= A.parent C= B.parent D= C.parent
It works OK, and I can’t think of the chain getting any longer (i.e. to find E, F etc) but is there a fast Pythonic way of getting to a parent of a parent? I’ve had a look in the forums but I can’t find much (unless my search terms are vague).
Finally, my game Python and logic need to be as fast as possible- would what I use now be faster than a function? In fact, is there a reason why Blenders API does not have this function to start with?
Thanks for your time!