Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects How do I use scripting to select a ‘Render Settings’ template?

  • How do I use scripting to select a ‘Render Settings’ template?

    Posted by Mark Paterson on November 13, 2019 at 7:30 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?

    Mark Paterson replied 6 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Walter Soyka

    November 13, 2019 at 2:31 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   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Mark Paterson

    November 13, 2019 at 6:19 pm

    That did it, thanks!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy