FORUMS: list search recent posts

How do I use scripting to select a 'Render Settings' template?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mark Paterson
How do I use scripting to select a 'Render Settings' template?
on Nov 13, 2019 at 7:30:11 am

I'm trying to write a script that will add the selected comp to the Render Queue, then select a custom 'Output Module' (Multi-Machine Sequence TIFF RGB) and one of the built-in Render Settings templates (Multi-Machine Sequence).

So far though, I've only been able to select the Output Module. I'm using the following…

var comp = app.project.activeItem;
var item = app.project.renderQueue.items.add(comp);
var outputModule = item.outputModule(1);
outputModule.applyTemplate("Multi-Machine Sequence TIFF RGB");
app.project.renderQueue.render();


My problem is, I don't know how to select the built-in 'Render Settings' template "Multi-Machine Sequence". The closest I got was defining a few of the parameters using this snippet from Adobe…

var my_renderSettings = {
"Color Depth":"32 bits per channel",
"Quality":"Best",
"Effects":"All On",
"Time Span Duration":"1.0",
"Time Span Start":"2.0"
};
app.project.renderQueue.item(2).setSettings( my_renderSettings );


…but I don't know how to add 'skip existing frames', and even so, it creates a 'custom' version of the default 'Best Settings', which I don't want.

Surely there's a way to simply pick one of the 'Render Settings' templates with a script?


Return to posts index

Walter Soyka
Re: How do I use scripting to select a 'Render Settings' template?
on Nov 13, 2019 at 2:31:11 pm

[Mark Paterson] "Surely there's a way to simply pick one of the 'Render Settings' templates with a script?"

There is! You use the the applyTemplate method of the render queue item, like this:

var comp = app.project.activeItem;
var item = app.project.renderQueue.items.add(comp);
var outputModule = item.outputModule(1);
item.applyTemplate("Multi-Machine Settings");
outputModule.applyTemplate("Multi-Machine Sequence TIFF RGB");


Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Mark Paterson
Re: How do I use scripting to select a 'Render Settings' template?
on Nov 13, 2019 at 6:19:52 pm

That did it, thanks!



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]