Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Simple expression question – HELP PLEASE! :)

  • Simple expression question – HELP PLEASE! :)

    Posted by John-paul Bonadonna on September 8, 2006 at 1:25 am

    Simple expression I think….

    Ever see that Valvoline Mark Martin Ultrasound commercial? Well, imagine a still picture with an animated foot pushing a gas pedal. As the pedal is pushed, we hear revving and the picture wiggles.

    SO, how can I make the intensity of a wiggle coincide with a larger rotation value (setting up with the anchor point on the ankle).

    I’m using this as the example, but I see so many uses of this… text wiggles harder as it scales up etc…

    Any help would be so appreciated, and if you can add variables that perhaps I haven’t thought of, all the more THANKS!!!

    jpb

    John-paul Bonadonna replied 19 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Colin Braley

    September 8, 2006 at 2:09 am

    Therees a couple different ways to get something like this done, heres the one that I would use:

    //–begin
    driver = thisComp.layer(“Rotating Layer”).transform.rotation;
    maxRot = 720;//degrees
    minRot = 0;//degrees
    freq = 3;//frequency of wiggle
    ampMin = 3;//min amplitude of wiggle
    ampMax = 30;//max amplitude of wiggle
    //–
    amp = ease(Math.abs( driver ), minRot, maxRot, ampMin, ampMax);
    wiggle(freq, amp)
    //–end

    In that expression, as rotation goes from 0 to 720 (or 0 to -720) the amplitude of the wiggle would go from 3 to 30.

    OR, you could do it like this with simpiler (but less easily adjustable code)

    //–
    div = 90;
    freq = 10;
    rot = thisComp.layer(“Rotating Layer”).transform.rotation;
    wiggle( freq, Math.abs(rot)/amp );
    //–

    in the second one just adjust div until you get something asthetically pleasing.

    Enjoy.

    ~ Colin

  • John-paul Bonadonna

    September 11, 2006 at 6:07 pm

    Pardon my delayed thanks!!!

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