FORUMS: list search recent posts

minus sign in external data = bug ?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nicolas Elsig
minus sign in external data = bug ?
on Jun 1, 2012 at 1:48:38 pm

hello I'm loading external data from a text file ... everything is fine with the eval expression taking the data based on the name of the comp

here's the external data

Sion = ["+23°C","+36°C"];
Monthey = ["+1°C","+25°C"];
St-Gingolph = ["-6°C","+21°C"];

the last line St-Gingolf is making AE to say : warning Class "global" has no property or method named "St" Expression disabled

can somebody help please ?

myPath = "/Expressions/";
myPath += "externalData.txt";
$.evalFile (myPath);
eval(thisComp.name)[0];


Return to posts index

Dan Ebberts
Re: minus sign in external data = bug ?
on Jun 1, 2012 at 2:58:51 pm

St-Gingolph is not a valid variable name in JavaScript. St_Gingolph would work.

Dan



Return to posts index

Nicolas Elsig
Re: minus sign in external data = bug ?
on Jun 2, 2012 at 6:52:29 am

Thank you Dan for the precision. I will work with an underscore.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]