Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Best way to run a script from a script

$
0
0

Hi everyone,

 

I am looking for executing a script from a After Effects script, up to now, there is aftereffects.executeScript(scriptContent) which use eval to run the script. The problem is that it uses eval so it is not really safe and it is slower. So I would like to know what is actualy used when we do File -> Script -> Run script File.

Saw in the Javascript Tool Guide CC page 168 in the section Corss-DOM API Reference.

 

aftereffects.executeScript(theScriptContent); // Doesn't work with a script which as comments AND the script has access to my scope

 

Moreover, if there is comments like /** */ or /* */ in the script I want to run, it doesn't work anymore.

 

So, what is the best way to run a script from a script ?


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>