Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle expression. Precise time to start and stop

  • Wiggle expression. Precise time to start and stop

    Posted by Benoit Bouchard on February 13, 2008 at 3:22 pm

    I would like to use the wiggle expression with parameter for time to start and stop like this one:

    timeToStart = 2;
    timeToStop = 4;

    if ((time > timeToStart) && (time < timeToStop)){ wiggle(3,25); }else{ value; } but I would like it more precise. Instead of second,I would like to use second/image. I try this way, but it doesn't work timeToStart = 2;12 timeToStop = 4;12 if ((time > timeToStart) && (time < timeToStop)){ wiggle(3,25); }else{ value; } Is there a way to do it. Sorry for my bad english. I'm a french guy. Thank's

    Gaurav Kumar replied 6 years, 11 months ago 8 Members · 13 Replies
  • 13 Replies
  • Dan Ebberts

    February 13, 2008 at 5:23 pm

    Like this, maybe:

    timeToStart = 2;
    frameToStart = 12;
    timeToStop = 4;
    frameToStop = 12;

    d = thisComp.frameDuration;
    if ((time > (timeToStart + frameToStart*d)) && (time < (timeToStop + frameToStop*d))){ wiggle(3,25); }else{ value; }

  • Emmanuel Gobert

    February 16, 2008 at 3:39 pm

    Hi Dan,
    don’t you think it is possible to link the wiggle expression to a slider, and then to put keyframes when it should start and finish ?

  • Benoit Bouchard

    February 16, 2008 at 5:16 pm

    Finally, that’s the way I did it.

  • Lance Clayton

    January 4, 2013 at 3:26 am

    Expression Control Slider is the way to go for sure. Will give you ability to switch on the shake at any instance on the timeline, with variable value of shake as well as a smoother reposition after the shake

  • Tony Thomas

    March 15, 2013 at 8:25 pm

    I’ve found that decimals work.

    timeToStart = 2.25
    timeToStop = 4.5

    if ((time > timeToStart) && (time &lt; timeToStop)){
    wiggle(3,25);
    }else{
    value;
    }

  • Pedro Deltell colomer

    February 2, 2015 at 10:07 am

    How can I connect the wiggle expression to the slider?

    Thanks

  • Lance Clayton

    February 2, 2015 at 8:21 pm

    Enter your expression in the desired field such as position, but instead of entering values (such as “wiggle(0.2,1)”, ‘pickwhip’ each of the values to a Slider Control Effect placed on either the same layer or another layer. Usually you’ll have 2 Slider Controls, for Wiggle Rate and Wiggle Intensity.

    You’ll end up with something like:

    wiggle([slider 1 name],[slider 2 name])

  • Özgür Atmaca Create COW Profile Image

    Özgür Atmaca

    March 7, 2016 at 6:56 pm

    Hi,

    I like to add few more wiggles at different times. How can I achieve that?

    What am I doing wrong down there

    timeToStart = 2;
    timeToStop = 2.5;
    timeToStartOne = 5;
    timeToStopOne = 5.5;

    if ((time > timeToStart) && (time &lt; timeToStop)){
    wiggle(12,80);
    }else{
    value;
    }

    if ((time > timeToStartOne) && (time &lt; timeToStopOne)){
    wiggle(12,80);
    }else{
    value;
    }

  • Dan Ebberts

    March 7, 2016 at 7:14 pm

    Try it this way:


    timeToStart = 2;
    timeToStop = 2.5;
    timeToStartOne = 5;
    timeToStopOne = 5.5;

    if ((time > timeToStart) && (time < timeToStop)){
    wiggle(12,80);
    }else if ((time > timeToStartOne) && (time < timeToStopOne)){
    wiggle(12,80);
    }else{
    value;
    }

    Dan

  • Özgür Atmaca Create COW Profile Image

    Özgür Atmaca

    March 7, 2016 at 7:27 pm

    appriciate that!

Page 1 of 2

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