Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle uniform scale of a flipped/non squared ratio layer

  • Wiggle uniform scale of a flipped/non squared ratio layer

    Posted by Tal Arbiv on December 3, 2016 at 4:02 pm

    I want to wiggle a layer with scale aspect like -23,111 or 23,111 and wiggle keeping the ratio. (like if it was parented to a null that is wiggled)

    of course when i use the [0] on both axis the result is squared. and if i use 2 wiggles i dont get synced values.

    i guess i need to someway multiply the wiggle result with the scale aspect ratio, but what how can i get the per axis value of that ratio? if there is such thing…

    thanks.

    w = wiggle(1,5);
    x = transform.scale[0]/100;
    y = transform.scale[1]/100;
    [w[0]*x,w[0]*y]

    Tal Arbiv replied 9 years, 9 months ago 2 Members · 4 Replies
  • 4 Replies
  • Xavier Gomez

    December 3, 2016 at 10:54 pm

    Like this?

    w = wiggle(1,5);
    [w[0], value[1] + (w[0]-value[0])];

    Xavier

  • Xavier Gomez

    December 3, 2016 at 11:08 pm

    Hum, seems that i missread the question.
    The above wiggles by the same amount to scale[0] and scale[1], but does not preserve the ratio.
    This should be better:

    w = wiggle(1,5);
    if (value[0]===0){[0, w[1]];}
    else{[w[0], w[0]*value[1]/value[0]];};

  • Tal Arbiv

    December 3, 2016 at 11:13 pm

    Thanks a lot, but no, this changes the ratio.

    lets say you have a layer and its scale is something like [-30 , 100] if you parent it to a null you can wiggle it uniformly with [w[0],w[0]] .
    i’m looking for that same result with a single expression without using a null….

  • Tal Arbiv

    December 3, 2016 at 11:14 pm

    YES! great!
    that seem to work.
    thank you!

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