-
Controlling the timeline using script
Hello there!
I need to get the global transformation data of all parent layers and child layers in my composition, in order to use them for another tool.
I notice that, in After Effects, at any frame I’m navigating on, when I remove the parent of a child layer, the child layer just change its position to global without changing it’s position, rotation and scale.
So I want to make use of this to get the global transformation data of the layer. After that I can re-parent it again, and go to the next frame, and do it again until end.
The problem is that, when I use a script to do so, the un-parent and re-parent actions always take into account the only one last navigated frame before running the script. Therefore I need to roll over the timeline frame by frame during the running of my script. Is there a way to do so?
Regards,
Quang Ng.