Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle ony on the Y axis and only positive values

  • Filip Vandueren

    March 24, 2009 at 12:59 pm

    jumpg up is actually going negative in Y,

    so something like this:

    w=wiggle(2,50);
    y=Math.abs(w[1]); // the absolute value of y wiggle

    value-[0,y];

  • Heerko Groefsema

    March 24, 2009 at 1:06 pm

    Thank you for your quick reaction!

    It did seem to the job on the horn linked to the phone! Cool 🙂 But when I paste the code in the position of the phone itself. The phone is suddenly stuck in the top of my screen. Any ideas on what is causing this?

    https://www.heerkogroefsema.nl

  • Filip Vandueren

    March 24, 2009 at 1:14 pm

    No, that’s strange,

    perhaps there is some parenting with scaling going on, but even then…

    the ‘value’ part of the expression should make sure everything stays relative to ‘pre-expression’ position

  • Filip Vandueren

    March 24, 2009 at 1:15 pm

    Is it a 3D layer ?

    this could be better then:

    w=wiggle(2,50);
    y=Math.abs(w[1]); // the absolute value of y wiggle

    value-[0,y,0];

  • Heerko Groefsema

    March 24, 2009 at 1:18 pm

    There is no parenting or scaling goign on, it’s just very plain. Also no 3D layering.

    When I switch of parenting of the horn, this stick to the top of the comp too.

    I also tried your other expression, but this does the same.

    I do also have wiggle expression on the rotation.

    https://www.heerkogroefsema.nl

  • Filip Vandueren

    March 25, 2009 at 1:05 am

    Sorry, my bad! wiggle includes the value, I was confused, use this:

    w=wiggle(2,50)-value;
    y=Math.abs(w[1]); // the absolute value of y wiggle

    value-[0,y];

  • Heerko Groefsema

    March 25, 2009 at 8:33 am

    Ah yes that works as charm! Cool 😀

    Sounds very logical what you say that the value is included in the wiggle, otherwise wiggle would be all over the place. Thank you very much! You made me happy 😀

    https://www.heerkogroefsema.nl

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