ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How to have a slider move slowly after reaching a specific zoom level?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Peter Terlaak Poot
How to have a slider move slowly after reaching a specific zoom level?
on Apr 13, 2018 at 8:29:22 pm

Hello! I'm trying to get a slider to move very slowly once the camera zooms past a certain point. Currently I'm using this expression:

num = effect("Slider Control")("Slider");
if ((thisComp.layer("Camera").cameraOption.zoom) > 11850) {
1;
} else {
0;
}

So far I have the slider staying at zero before the zoom gets to 11850 (good). But now I'm trying to figure out how to get it to slowly increase. The slider should be at 0 at 11850, but then increase at a 1000:1 ratio as the zoom passes 11850--so the zoom would slowly increase to "1" at 12850, and be at "2" at 13850, "3" at 14850, and so on.
I truly appreciate any help or suggestions you might have!

num = effect("Slider Control")("Slider");
if ((thisComp.layer("Camera").cameraOption.zoom) > 11850) {
1;
} else {
0;
}


Return to posts index

Dan Ebberts
Re: How to have a slider move slowly after reaching a specific zoom level?
on Apr 13, 2018 at 9:44:00 pm

Something like this should work:

d = (thisComp.layer("Camera").cameraOption.zoom - 11850)/1000;
Math.max(d,0)


Dan



Return to posts index

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