Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Control 2D movement on position property with angle control

  • Control 2D movement on position property with angle control

    Posted by Noel Powell on May 26, 2016 at 12:58 pm

    Hi all,

    I thought I’d be able to easily find this one, but I’m not seeing it anywhere. I’m looking for an expression to convert the degree value of an angle control to X and Y movement. Basically, I want to control the direction of the noise (Offset Turbulence property) in a Fractal Noise effect with an angle control to set the direction, and a slider control to set the speed.

    Any help you can give is much appreciated.

    After Effects Templates – digital glitch effects, 80s VHS effects, old film effects, art effects, and more: https://CreationEffects.com

    Noel Powell replied 10 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 26, 2016 at 1:45 pm

    This should work for static controls:

    a = effect(“Angle Control”)(“Angle”);
    spd = effect(“Slider Control”)(“Slider”);
    d = spd*(time-inPoint);
    r = degreesToRadians(a-90);
    x = d*Math.cos(r);
    y = d*Math.sin(r);
    value + [x,y]

    If you need to animate the controls, that’s a whole different story.

    Dan

  • Noel Powell

    May 26, 2016 at 1:54 pm

    Yeah, I assumed it would have to be static. This is very helpful, Dan. Thank you.

    After Effects Templates – digital glitch effects, 80s VHS effects, old film effects, art effects, and more: https://CreationEffects.com

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