Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Layer start time issue for linking pre-comp parameter

  • Layer start time issue for linking pre-comp parameter

    Posted by Gates Bradley on September 20, 2019 at 8:33 pm

    Forgive me as I am very much an expression newb. I have a slider on a layer that is controlling the rotation of a layer in a pre-comp. However, when I keyframe the slider, the layer in the pre-comp doesn’t animate.

    I’ve dug through here enough to learn that it’s because the slider layer doesn’t start at time 0, and so some sort of expression converting the layer’s start time to zero is needed. I’ve tried to cobble together stuff, but I simply don’t know the correct syntax.

    Guidance much appreciated.

    The expression is:

    comp(“ep1_main_comp”).layer(“ep1_timer1”).effect(“Slider Control”)(“Slider”)

    This is applied to a layer called ‘Dial’. The control layer’s (ep1_timer1) start time is 5m29s19f in a 23.98 comp. I think I need to tell Dial’s expression to consider 5m29s19f the start time for the expression? But how?

    comp("ep1_main_comp").layer("ep1_timer1").effect("Slider Control")("Slider")

    Gates Bradley replied 6 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 20, 2019 at 8:58 pm

    Hard to tell from your description if this will work, but give it a try:

    C = comp(“ep1_main_comp”);
    S = C.layer(“ep1_timer1”).effect(“Slider Control”)(“Slider”);
    L = C.layer(thisComp.name);
    S.valueAtTime(time + L.startTime)

    Dan

  • Gates Bradley

    September 20, 2019 at 10:22 pm

    Dan Ebberts for President!!

    Thank you, and let me say how great you are for helping us lost souls through the expression darkness. This will help in so many ways. Another key to the “how do I make expressions work” puzzle.

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