-
Parse Counting up Source text use for scaling a shape layer
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
