-
How can I revise this expression so it looks at mask position and not x,y position?
I’m trying to obscure a lens flare when it goes in front of another layer. I can’t use Optical Flares built in foreground layers feature because it doesn’t work with mask positions, but rather x,y coordinates.
Anyone know what should I revise on the expression below so it follows the position of the flare (which is being driven by a mask position (in degrees) instead of a regular x,y position value?
Thanks in advance,
D.target=thisComp.layer("shape");
alpha=target.sampleImage((effect("Optical Flares")("Position XY")),[1,1])[3];
linear(alpha,0,1,45,0);