Hi Everybody! Hope everyone is well this Summer. I'm stuck in a dev task now thought I would post here to see if any of you have suggestions for how to get past it.
Is it possible to identify the composition item within a project that contains the most descendants—or that is the most "deeply nested". Is there a way to calculate how many descendant timelines (pre-comps) a composition has?
I'm not referring to a project item's .usedIn property which returns an array listing all compositions that contain the said project item. I would like to find out how "deep" a composition gets until there are no more pre-comp timelines.
I thought the most efficient way to do this would be via some kind of recursive process, but maybe that's over complicating it?
Any suggestions?
Many thanks,
Arie