Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

How to find the project's composition item(s) with the most descendant timelines?

$
0
0

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


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>