Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get time of other comp

  • Get time of other comp

    Posted by Andreas Woelfl on June 27, 2016 at 3:27 pm

    Hello everybody,

    I try to explain what I am trying to do.

    In my main composition I have various precomps. Within these precomps I have shape layers who’s colors are linked via expressions to color controls in the main comp:
    comp(“main”).layer(“ColorControl”).effect(“Color Control”)(“Color”)

    Now I am animating the color via keyframes in the main comp.

    Up to now everything works fine.

    Here is the problem:
    Now when I shift a precomp in the timeline of the main comp, the timing of the color animation of the shifted layer delays.

    How can I tell the color attribute of the pre comps shape layer that I want him to change color according to the main timeline, no matter how many frame I shift the precomp on the main comps timeline.

    thanks a lot!!!!!!

    Andreas Woelfl replied 10 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 27, 2016 at 5:16 pm

    Try it this way:

    C = comp(“main”);
    ctrl = C.layer(“Color Control”).effect(“Color Control”)(“Color”);
    L = C.layer(thisComp.name);
    ctrl.valueAtTime(time + L.startTime)

    Dan

  • Andreas Woelfl

    July 18, 2016 at 2:41 pm

    Uuuuuh, great. That’s what I needed.

    Thank you so much!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy