-
Control Layer changing shape layer scale
I’ve got a bunch of shape layers that I want to ripple on based on the background colour, using the background as a control layer.
So like whatever the position of each shape layer is, its scale will depend on the colour of the other layer, black to white.
Is this possible? I found an expression on a youtube tutorial by ECAbrams, which is great, however the scale animates differently going from left to right than right to left…which confused the heck outa me. (https://youtu.be/4OQN2mHQuD0)
Thanks!
Here’s the expression that was used in the video:
sourceLayer = thisComp.layer("Transition Control 2");
sampleSize = [1,1];
samplePoint = transform.position;
colour= sourceLayer.sampleImage(sampleSize,samplePoint);
x=colour[0]*100;
[x,x]
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.