• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

After effects scripting render output but keep "Output To" subfolder setting

Community Beginner ,
Apr 20, 2022 Apr 20, 2022

Copy link to clipboard

Copied

Hi! I'm writing a script to automate render file output locations, but want to keep the output to naming conventions of [comp folder]\[compname] 

you can select a "template" in the drop down list manually, but I can't find anything on whether you can access that through a script? 

TOPICS
How to , Scripting

Views

204

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2022 Apr 20, 2022

Copy link to clipboard

Copied

I'm not sure exactly what your question is, but here's a little snippet that might help (it assumes myCompFolder is file folder object pointing to a folder on your hard drive):

 

var myRQItem = app.project.renderQueue.items.add(myComp);
myRQItem.applyTemplate("Best Settings");
var myOM = myRQItem.outputModule(1);
myOM.applyTemplate("Lossless");
var myOutputFilePath = myCompFolder.path + "/" + myCompFolder.name + "/" + encodeURI(myComp.name);
myOM.file = File(myOutputFilePath);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 20, 2022 Apr 20, 2022

Copy link to clipboard

Copied

LATEST

thank you!! sort of, i was wondering if there was an easy way to generate a sub folder for the render output, since you can load file location templates (i have since found the proper name for what I was looking for)

cherleelynn_1-1650504186599.png

or accessing this through a script so I can add items to the render queue, change the file location but keep this structure that generates a comp folder for the render 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines