ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Control time of composition with slider control (in seconds)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Saso Goricar
Control time of composition with slider control (in seconds)
on Oct 16, 2018 at 6:58:20 pm

Hello,

I have one question about the problem. I'm creating a .mogrt file and I want to add a slider control to control the duration of the animation (composition). Is there an expression to fix that, that I can change the duration of composition (duration in seconds) with just a slider control.

Thanks for the help.

Saso


Return to posts index

Dan Ebberts
Re: Control time of composition with slider control (in seconds)
on Oct 16, 2018 at 7:26:50 pm

You can't control duration with an expression, but you could drop your comp into another comp, turn on time remapping, and use a time remapping expression like this:

s = thisComp.layer("Controls").effect("Slider Control")("Slider");
linear(time,0,s,0,key(2).time)

Dan



Return to posts index

Saso Goricar
Re: Control time of composition with slider control (in seconds)
on Oct 16, 2018 at 8:04:18 pm

Thanks, that is exactly what I was looking for. Thank you very much, you are a lifesaver.

Do you know if this expression works in new version AE cc 2019 with the new feature "Create protected region"?

Thanks again.

Saso


Return to posts index


Dan Ebberts
Re: Control time of composition with slider control (in seconds)
on Oct 16, 2018 at 8:35:27 pm

I haven't played with that feature yet. Try it. ☺

Dan



Return to posts index

Saso Goricar
Re: Control time of composition with slider control (in seconds)
on Oct 17, 2018 at 7:57:32 am

I will, thanks for your help.

Saso


Return to posts index

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