There is several years than in work with expression and script in after effect but today i got a problem accessing nested components time.
In my script , i try to scan recursively a master comp and nested comps to find element.
At this point, no problem, but i want to scant at a specific time ....
It's ok for the master comp, but how can i get the current time of the nested comp ( with or without stretch or time remapping), corresponding of the current time of the master ?
I hope my question is clear ... let me know if you need detail.
Thanks for your help
it's look i got my own solution :
//cp : ref master comp
//cpTime : time at to get result
// lay : the layer comp to analyse
nestedTime=lay.property("Time Remap").valueAtTime(cpTime, false);
so if i select (with all necessary tests of course) a child comp (B) included in the master com (A), i can get the good time in the child comp (B) like this
var childTime=nestedCompTime(masterCompA,<i>anyTimeYouWant</i>,childCompB );
It's look great ... can someone confirm this solution is fine ?