AME Scripting Help, Please!
@eckiAMETeam not sure if you're the ones to ask, but I have a couple very specific scripting questions that I really need answers to! I posted on here two months ago and have gotten no response.
I've gotten familiar with the scripting docs (https://readthedocs.org/projects/ame-scripting-guide/downloads/pdf/latest/) and have gotten some things to work, namely launching AME command line with a JSX file and getting it to clear the queue, populate it and start rendering the specified file and it's corresponding preset.
But I'm having a few very specific issues:
- I'm using the below function to create an item from an image sequence:
encoderWrapper = app.getFrontend().addFileSequenceToBatch();but I can't get the attributes of frameRate, outputFrameSize or frameRange to work (I also don't see a way to set whether to include alpha).
var frameRate = "24";
encoderWrapper.setFrameRate(frameRate);
var width = 1920;
var height = 1080;
encoderWrapper.setOutputFrameSize(width, height);
//workAreaType: 0-Entire, 1-InToOut, 2-WorkArea, 3-Custom, 4-UseDefault
var workAreaType = 0;
var startTime = 0.0;
var endTime = 1.0;
encoderWrapper.setWorkArea(workAreaType, startTime, endTime);Frame range is by far the most important, it's something I really need to be able to control. I am already able to manage resolution, frame rate and alpha by dynamically creating presets. It works, but it's an unnecessarily heavy lift and creates tons of presets that need to be cleaned up, so I'd love to be able to simplify that as well.
- I can't figure out whether the
writeInprint statements go anywhere...they don't echo in a shell/console I can find and I'd rather log them to a txt file but I can't figure out how to do that either...
- I'd really like AME to quit upon queue completion, most importantly because I have post process cleanup of the JSX I'm dynamically creating as well as all the presets, but also to be able to manage license use. I can't find any sort of flag to pass to the command line function:
<AME Executable> --console es.processFile <JSX File>or for it to return some info from the subprocess so I can trigger a kill of AME myself.
