-
$evalfile, Stylizing external text on the same line.
I am creating Lower 3rds by pulling text from an external file and am successfully pulling four variables via:
myPath = “/Volumes/PFH2014_01/_WW MASTER/01 PROJECTS/02 AE/L3source.txt” ;
$.evalFile(myPath);
try{
eval(thisComp.name) [0] ;
}catch (err){
“Missing”;
}I would like to style two variables on a single “line” of text but position the text dynamically like so:
(var0) FirstName LastName (var1) Title of this person
(var2)SomeOtherPertinentInfo (var3) SomeMoreInfoor
(var0)AReallyReallyImpossiblyLongNameForExample (var1) Title of this
(var3)InfoHereBecauseVAR2isEmptyCan anybody point me in the right direction of how to do this?
I know you could do this on the same line if they were stylized the same because you could just print it in the expression field of the text layer with the two variables, but different styling would require different text layers, no?I have to delve into scripting to get exact text width of var0 in order to position var1 a certain amount of pixels to the right of it…….or could I position both var1 and var2 at the same location, pull the text length in integer numbers from var 1, and then somehow add that number of spaces before I print var2?
Any help would be appreciated.
Thanks!