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

Error trying to import files in startup script

$
0
0

I have a script that I want to put into the Startup folder so that I can launch AE 2017 (Mac), have it perform an automatic render and then shut down.

 

the first part of the script imports some files. I have it loading a JSON file, which works, and then loop through 11 jpgs to import. The code is:

 

for (var i = 1; i <= pictureQty; i++) {

   var picFileName = eval("photo" + i);

  app.project.importFile(new ImportOptions(new File(picFileName.toString())));

}

 

(The Json array has "photo1", "photo2", etc.)

 

When I run this script just manually in AE, it always works fine. But when I put it in startup, I'm getting

 

Unable to execute script at line 303. After Effects error: internal verification failure, sorry! {no current context}

 

The funny thing is that it will randomly get to different points, sometimes it will load 6 images, sometimes it makes it to all 11, but always will show the error. There is no more script code right now after this routine, the script just ends.And I can run it over and over normally, but startup always hits this error. No other scripts are in the Startup folder.


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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