ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Scale and Rotate in Proportion to other Layers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mike Lewis
Scale and Rotate in Proportion to other Layers
on Jun 16, 2020 at 3:29:45 pm

Hey, newb here.
If I pic whip my Scale and Rotation Values are copied, But I need the values to ADD the same scale rotation changes across multiple layers.
Layer one Scale:1 Rotation:5 --> Scale:3 Rotation:6
Layer two Scale:4 Rotation:9 --> Scale:6 Rotation:10
(both increase by same amounts)

I need to write expression that says "Value of this box + CHANGE IN Value of other layer box"

Hopefully that makes sense.

Michael :)

Return to posts index

Andrei Popa
Re: Scale and Rotate in Proportion to other Layers
on Jun 17, 2020 at 7:57:50 am

I suppose what you try to do is modify the scale/rotation of a lot of layers by the same amount. If yes, you need to put those 2 values in an expression controller. If the scale has always same height/width values or has separated dimensions, you could use 2 sliders. So put 2 sliders on a control layer. Use this expression for scale

valueToAdd = //pickwhip the slider one here;

And this for rotation

value+//pickwhip the slider two here

Just replace "//" and everything after with your pick-whip generated code, so final expression for scale should look something like this. The same for rotation.

valueToAdd = thisComp.layer("Control layer").effect("Scale control")("Slider");

My Envato portfolio.

Return to posts index

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