Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Parse Counting up Source text use for scaling a shape layer

  • Parse Counting up Source text use for scaling a shape layer

    Posted by Lukasz Pason on June 12, 2015 at 12:29 am

    ok… I have a layer that has numbers counting up. I’d like to read those numbers and turn them into a 0-100 scale on value on X. I’m not sure what I’m missing out here. Tips would be helpful!

    txt = thisComp.layer(" |- 22,166,576").text.sourceText;
    sText = parseInt(txt);
    xScale = linear(sText, 30000000, 50000000, 0, 100);
    yScale = 100;

    [xScale, yScale]

    Motion Designer / DJ / Father
    http://www.lukaszpason.com
    http://www.krop.com/lukasz

    Dan Ebberts
    replied 10 years, 10 months ago
    2 Members · 5 Replies
  • 5 Replies

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