Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Dan Fredley on November 17, 2010 at 2:27 am

    I have expressions controlling the position of layers from an audio file, but I would like some of the layers to only change positions every .3 seconds or so. I am not sure how to incorporate the following into my expression:

    holdTime = .3; //time to hold each position (seconds)

    seed = Math.floor(time/holdTime);

    My original expression is below.

    audio = thisComp.layer("Audio Amplitude").effect("Right Channel")("Slider");
    y=(linear(audio,15,35,460,580));
    [459,y]

    Dan Ebberts replied 15 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    November 17, 2010 at 3:27 am

    The simplest way is probably to just add this as the first line of your expression:

    posterizeTime(3.33);

    Dan

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