Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 3d flair emulation

  • 3d flair emulation

    Posted by Nicholas Toth on October 6, 2006 at 3:19 pm

    So by using Dan’s script a few weeks back of

    L = thisComp.layer(“3d Flair Controller”);
    L.toComp(thisComp.layer(“3d Flair Controller”).effect(“Point Control”)(“Point”))

    To control a lenseflair on a 3d layer with a pointer expression on it has been very sucessfull.

    I’m trying to figure out now how to link the distance of the 3d object (from the camera) with the intensity of the flair,
    the farther away the more faint the flair, and the closer the flair to the camera the more intense it becomes.
    I really don’t know where to start, but any suggestions would be very helpful.

    Nicholas Toth replied 19 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Mylenium

    October 6, 2006 at 4:06 pm

    Try this:


    cam_pos=thisComp.layer(“Camera”).position;
    layer_pos=thisComp.layer(“Flare Layer”).position; //replace with object or create dummy layer

    far_pos=10000; //farthest distance
    near_pos=20; //closest distance

    near_int=3; //intensity at near point
    far_int=100; //intensity at far point

    distance=length(cam_pos,layer_pos);

    flare_int=linear(distance,near_pos,far_pos,near_int,far_int);

    [flare_int]

    Mylenium

    [Pour Myl

  • Nicholas Toth

    October 9, 2006 at 5:09 pm

    Its not exactly how I imagined it, but I picked your code apart and got it to work.
    Thanks!

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