Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking Source Text to scale value. No decimals

  • Linking Source Text to scale value. No decimals

    Posted by Daniel Sánchez de miguel on April 8, 2015 at 6:23 pm

    Hi there,

    I have a Text Layer with a percentage that is going to be proportional to the scale in the y axis of a rectangle in a shape layer. Basically animating a bar graph with percentages.

    My way of doing it was to parent the Source Text to the shapes scale in y. It works but shows a bunch of decimals which I don’t want. Is there a way to get rid of them or a better approach to this animation?

    Thanks

    thisComp.layer("2011").content("Fill").transform.scale[1]

    Dan Ebberts replied 11 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    April 8, 2015 at 7:32 pm

    Try adding this to the end of your expression:

    .toFixed(0)

    Dan

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