1 person found this helpful
You use parseInt() and parseFloat() to derive values from text inputs, but such advanced stuff tends to not work inside templates, anyway.
Thank you very much @mylenium!
After flailing around, I was able to get the results I need (without really understanding how JS works)..
For anyone interested, here is how that looks:
In the AE comp, I have a text layer ("Name Here") that is a text field that editors can modify within Premiere.
Above it here, I have a control layer ("line spacing"), which uses entered numeric values via source text, to drive the line spacing animator in the Name Here text layer. (PS you have to add that via the "Animate" toggle down for a text layer)
I thought parseInt() would be lighter on AE, as it only works with whole numbers.
So I option clicked on the tracking amount stopwatch, pasted in parseInt() to the expression field, put my cursor in between the brackets, then pickwiped the source stopwatch, producing in my case:
The default value I entered into the text field is 0.
So then in Premiere, here is how that looks;
I typed in 50 for a line spacing value (for illustration purposes), and it updated the AE comp, producing this image in the premiere timeline:
My next question involves a similarly simple method for adjusting scale values. I'm assuming that parseFloat() will be best for this, as I think folks will want that level of control.
Can Anyone save me and everyone else some time, and write up a simple expression to do this?
If so I can produce a similar walk thru with screen grabs when I get a chance.
Again, I would LOVE to start making a recipe book for these types of workflows to try and save others the ridiculous amount of wasted time I've spent just trying to rig up something so simple.
Any ideas from anyone about the best way to do that?
I got some help from a member of our web team with a comp sci BG
To extract numeric values from the text layer, and drive scale values in another text layer, use this expression:
L1 = thisComp.layer("your text layer").text.sourceText;
This expression gets applied to "scale" animator, using the same process noted in the above thread.
I hope this helps sombody!
Why aren't you using Text Animator Groups for tracking and scaling?