Great info, thanks !
I did the lens flare tryout and got it working nicely, used this:
target = thisComp.layer(“alphalayer”);
alpha = target.sampleImage(effect(“Lens Flare”)(“Flare Center”),[3.5, 3.5])[3];
linear(alpha, 0, 0.36, 80, 0)
BUT now I’m doing it to audio track using this:
target = thisComp.layer(“alphalayer”);
alpha = target.sampleImage(effect(“Stereo Mixer”)(“Left Level”),[3.5, 3.5])[3];
linear(alpha, 0, 0.36, 100, 0)
And it says:
Bad argument: argument 1 to sampleImage() must be 2 numbers
Error occured at line 2
So how should I do with audio ?
Thanks.