Is it possible to return the length of a “Parent/child” chain?
Let’s say I have a number of layers parented to each other in sequence like a chain. Think individual layers composing an animal’s tail, for example. Is it possible to, through expressions, make something that returns the number of “parents” a layer has until it reaches either the end of the parent sequence, or a specific layer?
I know you can target through parent layer stacks by saying parent.parent.parent.transform.rotation for example, but from my limited knowledge that needs to be hard-coded on a layer-per-layer basis. I’d love to know if there’s a more generic solution that can be more broadly applied.