ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

lens flare from lightness

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Todd Morgan
lens flare from lightness
on Sep 13, 2009 at 4:14:28 pm

Hi all,

Is there any way to create a lens flare source from a white dot? I have a moving logo and I want to have a lens flare travel along a letter, all the while the logo is moving in 3D space. I have created a small white dot that is parented to the logo for where I want the flare to link to.


Return to posts index

Jeremy Fabiano
Re: lens flare from lightness
on Sep 13, 2009 at 5:08:52 pm

I'm not entirely sure exactly what you're after, but you can link the lensflare position & centerpoint to the dot's position & centerpoint.

Or you can set the flares position somewhere (center perhaps?) and have the centerpoint follow the dot..

I hope this helps, if not, post more details and we'll try to help.


Return to posts index

Kevin Camp
Re: lens flare from lightness
on Sep 14, 2009 at 12:28:54 pm

to link the flare's center point to the dot layer's position, you'll use an expression.

select the dot layer and hit 'p' to reveal its position property. then select the lens flare's center point property in the timeline and choose animation>add expression. click that expression's pickwhip and drag it to the position property of the dot layer.

this will link the flare's center position to the layer's and it should now track it.

Kevin Camp
Senior Designer

Return to posts index

Todd Morgan
Re: lens flare from lightness
on Sep 14, 2009 at 1:33:46 pm

awesome!! thanks!!

Return to posts index

Ben Heusner
Re: lens flare from lightness
on Sep 15, 2009 at 5:16:05 am

Dan Ebberts has an awesome expression that also lets you link brightness to Z position to save you from keyframing brightness. Apply this to Flare Intensity:

l = thisComp.layer("YOUR DOT LAYER");
r = (l.transform.scale[0]/100)*(l.transform.scale[0]/100);
s = value*r;
c = thisComp.activeCamera;
p = l.toWorld(l.anchorPoint);
f = c.cameraOption.zoom;
dist = p - c.toWorld([0,0,0]);
vec = c.toWorldVec([0,0,1]);
dist = dot(dist, vec);
s * f / dist;

You should link the Flare Center to the layer's anchor point.


Curious Turtle Pro Video
Training | Editing | Support
Out Now - Film Wash Color Effects Vol. 3
for After Effects & Apple Color

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved