Copy link to clipboard
Copied
Hi,
These are the expressions being used:
sourceLayer = thisComp.layer("Control Layer");
sampleSize = [1,1];
samplePoint = toWorld(transform.anchorPoint);
colour= sourceLayer.sampleImage(samplePoint,sampleSize);
x=colour[0]*258;
[x,x]
thisComp.layer("Null 1").transform.rotation*-1
Here is the project file and a preview. Please refer to these comps: "Comp 4" & "Control Layer"
The scrolling is quivering. Is there a solution to remove this quivering effect so that the animation is smooth?
Thanks,
Daniel
Copy link to clipboard
Copied
The scrolling is quivering. Is there a solution to remove this quivering effect so that the animation is smooth?
Sure. You could use the .smooth() method in your expression after sampling the values or increase the size of your sample area to begin with so it's averaged and behaves better.
Mylenium