Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Time offset my expression

  • Time offset my expression

    Posted by Jaus Dahead on September 23, 2015 at 2:29 pm

    Hi im a total noob in coding and i cant figure it out.

    I have an effect (the intensity of a lens flare) bound to a trapcode soundkey output value. It works fine and increases the light as i wanted.

    But its a little bit behind the beat. So i want either the effect or the expression to offset in time -.2

    Can anyone help me out?
    Thanks a lot in advance

    100+(thisComp.layer("Soundkey").effect("Sound Keys")("Output 3")/7);

    Jaus Dahead replied 10 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Eric Sanderson

    September 23, 2015 at 5:17 pm

    “valueAtTime()” is what you’re looking for

    delay = .2;

    100+(thisComp.layer("Soundkey").effect("Sound Keys")("Output 3").valueAtTime(time-delay)/7)

  • Jaus Dahead

    September 23, 2015 at 6:01 pm

    wow thanks soo much Eric!!!

    Thats exactly what i needed!

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