-
txt file to text layer problems
Hi All,
Two questions:
1. Is there anyway to get a script to read all the text layer values from a txt in advance, rather than on a per layer expression basis?
2. I’m running CS6 on a mac and using expressions I use the following code:
try{
myPath = “~/Desktop/text.txt”;
$.evalFile(myPath);
eval(thisComp.name)[0];
}catch(err){
“MISSING”;
}with text.txt reading:
var comp1=[“Hello World”];Obviously my comp is called comp1.
If I capture the error I get a syntax error line 1.
Any suggestions appreciated. It’s driving me nuts !
Many thanks,
T
try{
myPath = "~/Desktop/text.txt";
$.evalFile(myPath);
eval(thisComp.name)[0];
}catch(err){
"MISSING";
}