Skip to main content
valeria_r
Participant
April 17, 2018
Question

addCompToBatch issues

  • April 17, 2018
  • 1 reply
  • 2950 views

Hi!
I'm trying to add an After Effects project to the AME queue via scripting, but keep getting import errors.

The weirdest thing, is that I can add the same project manually without any problems!

My project has only one Comp on the root, and everything else inside a folder.


When I import it manually I get to choose the comp and it works great.

When I try to import the same project using ExtendScript I get this:

the code I'm testing:

var fend = app.getFrontend();

var ech = app.getEncoderHost();

var exp = app.getExporter();

//Input project file

var cmp = "/Users/valerialaura/Desktop/testingstuff.aep";

//AME preset exported to the desktop for later bundling

var pst = "/Users/valerialaura/Desktop/simple_preset.epr";

//Output files without extensions

var out = "/Users/valerialaura/Desktop/AME_rendering";

fend.addCompToBatch(cmp,pst,out);

Any ideas as to what could be happening here?
I also couldn't find documentation on AME scripting, so building over other forum answers and some poking around on ESTK.

Thanks!!

val.

This topic has been closed for replies.

1 reply

Bruce Bullis
Community Manager
Community Manager
August 5, 2018

Your code works perfectly here, with an extremely boring comp (one animated solid), and a basic H.264 preset.

Odd that the UI would let you add it, and the API wouldn't; anything interesting in testing stuff.aep? Was another process perhaps touching the .aep? [open in AE?]

scottm29310603
Inspiring
July 11, 2019

Did you ever figure this problem out valeria_r​ I'm having the exact same issue.

Kind Regards

Scott

Bruce Bullis
Community Manager
Community Manager
July 11, 2019

If you can provide a project and media that reliably reproduce the problem, we'll take a look.

day job address = b b b at adobe dot com