-
AE Lens flare to follow still object but react to camera move
I have a scene with a metallic object that I would like a lens flare to emit from. The object does not move i.e. it’s position values remain static. The camera, however will move (imagine a simple pan over the top looking down) which would of course affect the lens flare. Effectively having the flare source move to follow the object with regards to the camera position.
I have tried multiple solutions after searching forums but none seem to do the job.
I have tried…
this_comp.layer(“Light 1”).to_comp([0,0,0])
src=this_comp.layer(“Null 1”);
src.to_comp(src.anchor_point)p = thisComp.layer(“Null 1”).transform.position;
d = valueAtTime(0) – p.valueAtTime(0) ;
p + dBut none seem to work.
Any ideas?
Thanks