ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Add 30px to position every X frames

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Javier GilAdd 30px to position every X frames
by on Jan 1, 2017 at 11:06:51 pm

Hello everybody!

I have a shape in a comp with no keyframes in it's position, and I want to add 30px (for example) to the PositionY value every 3 (for example again) frames.

I'm sure there's an expression to do that, but after hours looking for it I canĀ“t figure it out!

Thank you very much in advance!

JG


Return to posts index

Dan EbbertsRe: Add 30px to position every X frames
by on Jan 1, 2017 at 11:50:17 pm

Something like this:

y = Math.floor(timeToFrames(time)/3)*30;
value + [0,y]


Dan



Return to posts index

Javier GilRe: Add 30px to position every X frames
by on Jan 2, 2017 at 1:21:02 am

That's exactly what I need, thank you very very much!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]