Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle expression help

  • Wiggle expression help

    Posted by Artcross on July 10, 2006 at 3:34 am

    I’m trying to wiggle just the z paramter of the position array, but I’m not sure how to do it. I tried

    position=[position[0], position[1], position[2].wiggle(20,30)]

    but that doesn’t work. I’m very new to expressions, so if someone can explain how to modify vectors, or more specifically, how to use the wiggle expression with vectors, i’d be very grateful. Thanks!

    Mike Clasby replied 20 years, 1 month ago 3 Members · 2 Replies
  • 2 Replies
  • Julian Sixx

    July 10, 2006 at 4:34 pm

    Hi
    you are very close

    [position[0],position[1],wiggle(10,20)[2]]

  • Mike Clasby

    July 10, 2006 at 5:07 pm

    This earlier post from Dan shows how:

    https://forums.creativecow.net/cgi-bin/new_read_post.cgi?forumid=2&postid=881140

    In your case, without the sliders:

    freq = 20;
    amp = 30;
    w = wiggle(freq,amp);
    [value[0],value[1],w[2]]

    and with sliders on a null named “freq” and “amp”:

    freq = thisComp.layer(“Null 1”).effect(“freq”)(“Slider”);
    amp = thisComp.layer(“Null 1”).effect(“amp”)(“Slider”);
    w = wiggle(freq,amp);
    [value[0],value[1],w[2]]

    or for a different wiggle for x,y and z, this:

    xFreq = 7;
    xAmp = 50;
    yFreq = 3;
    yAmp = 100;
    zFreq = 20;
    zAmp = 30;

    wX = wiggle(xFreq,xAmp);
    wY = wiggle(yFreq,yAmp);
    wZ = wiggle(zFreq,zAmp);
    [wX[0],wY[1],wZ[2]]

    To connect these for sliders:
    Layer>New>Null Object
    then on the Null
    Effect>Expression Controls>Slider Control
    then select the “Slider Control” in the Effect Window, hit “Enter” and rename, “xFreq”,
    select the “7” in the position expression (timeline window) then pickwhip (little box in the middle, looks like an “@” below the now red position numbers, drag it) to the Slider (“xFreq”) stopwatch. to get that line of the expression changed to;

    xFreq = thisComp.layer(“Null 1”).effect(“xFREQ”)(“Slider”);

    now the slider controls the xFrequency, 0 means no wiggle, so you can turn it on or off with keyframes on the slider.

    Have fun.

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