Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Flare following a light

  • Flare following a light

    Posted by Alberto Forlai on June 12, 2005 at 9:02 pm

    Hi all.
    I’m trying to do an effect : i have a 3d background with a light on it and i want to have a flare following the ligth.
    I have fond (www.motionscript.com) that a solution may be to set :

    Flare Center = thisComp.layer(“Light 1”).toComp([0,0,0]);

    I have tried it but the flare center is never on the light position, always far from it also if it seems to follows the light.

    The project is really simple :

    1) set a solid layer as backgroud
    2) set the backgroud as 3D
    3) add a light
    4) add the flare to the background using a flare position the above formula

    where is the mistake ?

    Thanks

    Alberto

    Alberto Forlai replied 20 years, 11 months ago 3 Members · 3 Replies
  • 3 Replies
  • Joe Chao

    June 13, 2005 at 3:57 am

    It’s all because perspective reason.The light is a 3D layer.while lans flare is a 2D effect.Change the Z-position of the light into “0”.Then you will find the flare in the right position.But then the light would be useless because it was too clase to the layer lighten.If you do not want the light to affect the shadow,I sugest you to create a 2D solid to imitate the light with “add”or “screen”transparent mood.

    ****************************
    My name is always misread as COW……..:)
    so I got this ID:
    friendcao2004@hotmail.com

  • Dan Ebberts

    June 13, 2005 at 2:39 pm

    The only thing I can think of is if your comp is rectangular pixels and your solid is square pixels, the positions won’t match up. In that case you have to adjust the x coordinate of the lens flare like this:

    p = thisComp.layer(“Light 1”).toComp([0,0,0]);
    [p[0]*thisComp.pixelAspect,p[1]]

    Dan

  • Alberto Forlai

    June 13, 2005 at 4:39 pm

    YES it works !!!

    Thanks

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy