ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Layer start time issue for linking pre-comp parameter

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gates Bradley
Layer start time issue for linking pre-comp parameter
on Sep 20, 2019 at 8:33:30 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")


Return to posts index

Dan Ebberts
Re: Layer start time issue for linking pre-comp parameter
on Sep 20, 2019 at 8:58:21 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



Return to posts index

Gates Bradley
Re: Layer start time issue for linking pre-comp parameter
on Sep 20, 2019 at 10:22:59 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.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]