FORUMS: list search recent posts

Optical Flare Expression not working

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jacob Kuhne
Optical Flare Expression not working
on Feb 23, 2016 at 11:31:52 pm

Hi,

I'm creating fireflies for a movie and I want them to turn on when they move up in y position. Each firefly is an optical flare that is parented to a null with a wiggle expression on the position. I haven't done a lot of in depth work with expressions and can't seem to crack this one. Could so one please offer some advice or an expression that's worked for them? Worse comes to worse I'll do it the old fashioned keyframe way.

-Jake


Return to posts index

Eduardo Oliveira
Re: Optical Flare Expression not working
on Feb 24, 2016 at 7:44:41 pm

hey, this seems to work:
change the "target" to your null
adjust the power variable to suit your needs.

target=thisComp.layer("Null 1");
power=10;
curv=target.transform.position[1];
oldv=target.transform.position.valueAtTime(time-0.1)[1];
v=oldv-curv;
v*power


Return to posts index

Eduardo Oliveira
Re: Optical Flare Expression not working
on Feb 24, 2016 at 7:45:30 pm

forgot to say - drop this in the "brightness" property of the optical flares layer


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]