ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Control Time Remap with Slider

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kyle Maven
Control Time Remap with Slider
on Oct 14, 2019 at 5:40:21 pm

I am looking to control the time remap of a composition by using a slider which is also connected to other attributes for an essential graphics pre-comp. What I want is to use the linear expression but I can't seem to figure it out. When the slider values are between 0 and 100, I want the time remap to be between 0:00:00:00 and 0:00:00:12. This is what I have so far.

My comp is at 24fps

src = thisComp.layer("Control").effect("Slider Control")("Slider");

linear(src, 0, 100, 0, 12)


Return to posts index

Dan Ebberts
Re: Control Time Remap with Slider
on Oct 14, 2019 at 6:04:09 pm

Try it like this:

src = thisComp.layer("Control").effect("Slider Control")("Slider").value;
f = linear(src, 0, 100, 0, 12);
framesToTime(f)


Dan



Return to posts index

Kyle Maven
Re: Control Time Remap with Slider
on Oct 14, 2019 at 6:23:43 pm

Perfect!


Return to posts index

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