-
adaptation of expression
Hey guys,
I’m trying to create an adaptation of this expression used here – https://www.youtube.com/watch?v=4OQN2mHQuD0
sourceLayer = thisComp.layer(“Transition Control 2”);
sampleSize = [1,1];
samplePoint = transform.position;
colour= sourceLayer.sampleImage(samplePoint,sampleSize);
x=colour[0]*100;
[x,x]It’s basically using a gradient to control the scale of a layer. What I’m trying to do is add a min and max value for the scale.
In this tutorial, the layers are being scaled from 0 to 100.
In my scene I have a bunch of layers at different scale values that fall from top to bottom. So I want them to scale from a smaller scale to their original scale value then back down to the smaller scale.
Any help would be greatly appreciated! Hope that made sense 🙂
Thanks,
D
sourceLayer = thisComp.layer("Transition Control 2");
sampleSize = [1,1];
samplePoint = transform.position;
colour= sourceLayer.sampleImage(samplePoint,sampleSize);
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.