Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Animating Bar Charts

  • Animating Bar Charts

    Posted by Ed Hecht on February 3, 2012 at 8:17 pm

    I’m using horizontal vector bars (extruded and beveled in Illustrator), x-scaled over time to show their growth. I have a small text box that goes from 0-X% over that same time (using a nice expression I found here). To make the text box follow the end of the bar as it grows, I am parenting the text layer to the bar. Problem is, the text box also x-scales. Is there a way to do this with expressions to avoid the scaling (or even a Null object)? Thanks in advance!
    Ed

    Ed Hecht replied 14 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Paul Roper

    February 3, 2012 at 8:23 pm

    You could un-parent the text box from the bar, but link its position to the scale of the bar like this (adjust the *3 to alter the distance the text box travels to match the bar’s scale). Paste this expression into the position of the text box:

    amount=thisComp.layer("bar").transform.scale[0];
    [value[0]+amount*3,value[1]]

  • Ed Hecht

    February 3, 2012 at 10:31 pm

    Yahoo! Thanks so much, Paul. that did the trick!

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