Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions strobe expression

  • Filip Vandueren

    April 11, 2008 at 3:54 pm

    Hey Barend,


    frequency=3; // times per second
    burstlength=3; // in frames

    t=time%(1/frequency);

    t

    change the lensflare expression to this, to factor in the Intensity of the light:


    l=thisComp.layer("Light 1");
    c=thisComp.activeCamera;
    vec1=normalize(l.transform.position - c.position);
    vec2=l.toWorld([0,0,-1]) - l.position;

    dotProduct = dot(vec2, vec1);

    linear(dotProduct,-1,1,0,1) * value * l.intensity/100;

  • Barend Onneweer

    April 11, 2008 at 4:16 pm

    Hey Filip,

    It seems like the ‘strobe’ expression is incomplete in the post, or am I missing something?

    I just returns a value of 0.

    Thanks,

    Bar3nd

    Raamw3rk – digital storytelling and visual effects

  • Filip Vandueren

    April 11, 2008 at 4:53 pm

    Oops, there’s a lesser than character in there, that screws up the HTML formatting, check your email of the previous post for the correct version.

    or this one should work online !but not in your email!


    frequency=3; // times per second
    burstlength=3; // in frames

    t=time%(1/frequency);

    t < framesToTime(burstlength) ? 100 : 0;

  • Barend Onneweer

    April 11, 2008 at 5:39 pm

    You’re a rock star!

    Thank you so much.

    Bar3nd

    Raamw3rk – digital storytelling and visual effects

  • Filip Vandueren

    April 12, 2008 at 12:20 am

    I’m more of an electronic music star, but dankuwel 😉

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