Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Text linked to scale property – Scaling by whole numbers

  • Text linked to scale property – Scaling by whole numbers

    Posted by Ryan Fannon on January 30, 2008 at 8:32 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?

    Ryan Fannon replied 18 years, 3 months ago 1 Member · 1 Reply
  • 1 Reply
  • Ryan Fannon

    January 30, 2008 at 8:57 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.

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