Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions scaling on a slider

  • scaling on a slider

    Posted by Sean Kimber on December 16, 2009 at 9:00 pm

    Hi,

    I apologize if this has already been covered, but I haven’t been able to find any information while scouring the archives. I’m just starting in the (scary) world of expressions, so I know this is a simple question but I can’t figure it out. I’m trying to attach a wiggle to the scale property of a layer, but have the wiggle’s amplitude affected by a slider. I’ve tried many different ideas, but nothing seems to be working. (I did just have success doing the same idea with the y value of a position property. Here’s my latest expression attempt. What am I doing wrong?

    Thanks!

    x=value[0]+wiggle(thisComp.layer("Null 1").effect("Slider Control")("Slider"),10);
    y=value[1]+wiggle(thisComp.layer("Null 1").effect("Slider Control")("Slider"),10);
    [x,y]

    Sean Kimber replied 16 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Xinlai Ni

    December 16, 2009 at 10:21 pm

    try this instead:
    value + wiggle(val1, val2)

    because wiggle returns a vector of the same dimension as the property it applies to.

    Xinlai Ni
    Software Engineer, Google Inc.

  • Sean Kimber

    December 17, 2009 at 2:05 pm

    Thanks for the suggestion. I ended up figuring it out before reading this. I copied and pasted the expression below. It worked exactly as I wanted. Thanks for the help!

    x= wiggle(thisComp.layer("Null 1").effect("Slider Control")("Slider"),10);
    [x[0],x[0]]

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