ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Slider controling Slider Expression

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
James RonanSlider controling Slider Expression
by on Nov 24, 2015 at 3:41:14 pm

Hey guys.

I have a slider attached to ObjectA animating it's Y scale - This works fine.

I also have a slider on seperate Null layer.

What I then want is to have the slider on the Null layer control the overall % of the slider on ObjectA without messing up the keyframes it has.


If ObjectA slider is at 300.

A Null Layer slider is at 50

The scale of ObjectA will be 150

Any help much appreciated.

I've been looking into the linear expression which I feel is close but I cant work it out.


Return to posts index

John CuevasRe: Slider controling Slider Expression
by on Nov 24, 2015 at 4:57:22 pm

if it's for scale, you could do it like this:

x = thisLayer.scale[0];
y = effect("Slider Control")("Slider");
yFinal = y * (thisComp.layer("Null 1").effect("Final Adustment")("Slider")/100);


Johnny Cuevas, Editor

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.

Return to posts index

James RonanRe: Slider controling Slider Expression
by on Nov 24, 2015 at 5:25:54 pm


Thanks so much for the fast reply! This is a nice work around!!

Much Appreciated !!!

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved