Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions minus sign in external data = bug ?

  • minus sign in external data = bug ?

    Posted by Nicolas Elsig on June 1, 2012 at 1:48 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];

    Nicolas Elsig replied 14 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 1, 2012 at 2:58 pm

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

    Dan

  • Nicolas Elsig

    June 2, 2012 at 6:52 am

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy