Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Creative a variable for a looping wiggle in one dimension

  • Creative a variable for a looping wiggle in one dimension

    Posted by Austin Wendenburg on June 19, 2015 at 7:21 am

    I know this probably dead easy, but something just isnt clicking for me.

    Dan Ebberts is the man. I used this looping wiggle expression from him.

    and now I want it to only effect the z dimension, ive tried something like what you see below. But im guessing I have to enclose the string of code in brackets or something, but all my attempts have been futile.

    Thanks in advance for the help!

    w = freq = 1;
    amp = 110;
    loopTime = 3;
    t = time % loopTime;
    wiggle1 = wiggle(freq, amp, 1, 0.5, t);
    wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime);
    linear(t, 0, loopTime, wiggle1, wiggle2)

    [value[0],value[1],w[2]]

    Austin Wendenburg replied 10 years, 11 months ago 2 Members · 3 Replies
  • 3 Replies
  • Austin Wendenburg

    June 19, 2015 at 7:56 am

    In the end i just separated dimensions and added the expression to z only.

    If anyone has other method please share for future

  • Dan Ebberts

    June 19, 2015 at 1:19 pm

    You were close:

    freq = 1;
    amp = 110;
    loopTime = 3;
    t = time % loopTime;
    wiggle1 = wiggle(freq, amp, 1, 0.5, t);
    wiggle2 = wiggle(freq, amp, 1, 0.5, t – loopTime);
    z = linear(t, 0, loopTime, wiggle1[2], wiggle2[2]);
    [value[0],value[1],z]

    Dan

  • Austin Wendenburg

    June 19, 2015 at 6:39 pm

    Thanks for the reply Dan! Much appreciated

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