Is it possible for a child pre-comp use the parents timeline for it’s timings?
So if I pass a child values from the parents timeline, based on it’s frame position, and those values are put into an a expression that animates something. Is it possible to have the animation (in the child pre-comp) honour it’s position in the parents timeline and ignore it’s own timeline?
Thus when I move the child about in it’s parents time (thus the values it’s given adjust), it doesn’t try and use it’s own timeline and end up with offset timings (because it’s been moved in time on the parents timeline and the timelines times don’t match up)?
I am effectively using the pre-comp as a container, a directory if you will, to keep things tidy on the main (parent) timeline.
For the benefit of anyone reading this that doesn’t understand the above:
This now takes the in point and the point in time on the layer that it starts (subtly two different things – one being a shifted time and one being a cropped to time – It’s quite probable that both can exist at the same time) and takes one from the other. This calculates the time adjusting for offset. The child can then read this.
For anyone looking for code on how a child can read something from the parent, this will get you started: