Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions wiggle frequency based on camera speed??

  • wiggle frequency based on camera speed??

    Posted by Espen Jakobsen on October 26, 2009 at 4:44 pm

    I’ve got my standard camera wiggle where I’ve linked the frequency&amplitude to a null object with sliders. Very often, high wiggle frequency look good if the camera is moving fast over large spaces, but once the camera reaches its destination and stands still for a while, the wiggle becomes too apparent and disturbing.

    I could easily just keyframe the frequency down on the null slider, but how cool wouldnt it be if the frequency of the wiggle actually had lower values when the camera has low speed, and higher values when the camera speeds up again?

    Does anyone know if this is even possible?

    Espen Jakobsen
    Multimedia Designer
    https://massiverhino.no/
    https://www.espenja.com/

    Xinlai Ni replied 16 years, 6 months ago 2 Members · 3 Replies
  • 3 Replies
  • Xinlai Ni

    October 26, 2009 at 6:13 pm

    Here is a simple one:

    cameraSpeed = thisComp.layer("Camera 1").position.speed;
    baseFreq = thisComp.layer("Null 1").effect("Slider Control")(1);
    speedModulatedFreq = cameraSpeed * baseFreq / 100;
    wiggle(speedModulatedFreq, ampl)

    It linearly multiply the base frequency as defined by your null control with the camera speed (divided by some constant just so the frequency is not crazily high).
    But you can do anything with the speed and your base frequence – it does not have to be a linear function.

    Xinlai Ni
    Software Engineer, Google Inc.

  • Espen Jakobsen

    October 27, 2009 at 10:33 am

    Sweet! Thanks, it actually works! I did a test on this and as you can see the frequencies are a bit high at the end.

    https://espenja.com/mov/testing/speedModulatedFreq/speedModulatedFreq.mov

    Right now the wiggle completely stops when the camera stops, but maybe I could fix this with a linear function to have more control over the frequency values?

    But what do you mean when you say that it dosen’t have to be a linear function? 🙂

    Espen Jakobsen
    Multimedia Designer
    https://massiverhino.no/
    https://www.espenja.com/

  • Xinlai Ni

    October 27, 2009 at 3:17 pm

    What I mean is you can make speedModulatedFreq any function of the two variables cameraSpeed and baseFreq, not necessarily their product – as long as it monotonically increases when either or both of those increases.

    Xinlai Ni
    Software Engineer, Google Inc.

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