ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Text linked to scale property - Scaling by whole numbers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
ryanvii
Text linked to scale property - Scaling by whole numbers
on Jan 30, 2008 at 8:32:30 pm

Is there an expression I can put in the scale property of a null so that over time it scales only by whole numbers?

I have Text layer linked to the scale property of a Null. I want the Null object to scale only in whole numbers, no decimal places. Any ideas?


Return to posts index

ryanvii
Re: Text linked to scale property - Scaling by whole numbers
on Jan 30, 2008 at 8:57:01 pm

never mind. i figured it out. i found this piece of of code.

s = thisComp.layer("zero control").transform.scale[0];

Math.round(s)


the Math.round(value) rounds the value (whatever is in parenthesis) to the nearest whole number.





Return to posts index

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