Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Move Layer on Angle

• Move Layer on Angle

3 Members · 5 Posts
• Mark Walczak

November 12, 2014 at 4:53 pm

Hi everyone,

I’m sure Dan knows the immediate answer to this, but just in case someone wants to try beating him to the punch, here’s what I’m trying to achieve:

I need a simple way of moving a layer on an angle. Essentially, I’d like to have two sliders on a footage layer: one for X-position, and one for angle. As I set keyframes and animate the X-position of a layer, I would like the Y-position to automatically increase/decrease in a way that makes the layer appear to be sliding on the defined angle. I’ve tried rigging my own solution by using the tangent of a given angle, but that didn’t seem to work.

Any and all help would be appreciated.

Thank you!

https://vimeo.com/explosivegraffix

• Dan Ebberts

November 12, 2014 at 7:25 pm

Will you be animating the angle? If so, that’s a much more complicated expression because you’ll need to calculate where the layer was at each of the previous keyframes.

Dan

• Mark Walczak

November 12, 2014 at 7:43 pm

Hi Dan,

No, it would be great for the angle to be constant. No animation needed 🙂

Thank you!

https://vimeo.com/explosivegraffix

• Dan Ebberts

November 12, 2014 at 8:32 pm

Play around with this and see if it’s close:

x = effect(“x”)(“Slider”);
a = effect(“angle”)(“Slider”);
value + [x,y]

Dan

• Prakash Gaygaye

November 12, 2014 at 11:31 pm

bounce

prakash123

Viewing 1 - 5 of 5 posts