ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Scaling with Expressions

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Diogo Barros
Scaling with Expressions
on Feb 26, 2018 at 4:03:10 pm

Hey folks.

I'm pretty new to expressions and I'm having a hard time with it.
I want to create random rectangles only scaling the width value from 0% to a number between 85% to 95% and back to 0%. Basically i want them to scale horizontally and going back to 0%.

Am I thinking wrongly and it could be done with some Position expression?

I tried this one for scale but I don't know how to go around the 3 frame change...

Thanks in advance

frame = Math.round(time/thisComp.frameDuration);
seed = Math.floor(frame/3);
s = random(10,95);

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved