Skip to main content
Inspiring
August 29, 2023
Answered

How To Create EXR Output Module Template (Scripting)?

  • August 29, 2023
  • 1 reply
  • 704 views

Hello, there's a bit of an issue right now where the format setting in the output module is not settable (which feels like something that should be fixed) - the workaround for this is to take an existing Template and modify the rest of the settings, then save as a custom setting. The problem with this is that there doesn't seem to be an existing Template that has the OpenEXR format that I can rename and modify. So my question is, is there any other way I can get this setting without having it be set manually?

This topic has been closed for replies.
Correct answer ConstantinMaier

You can create an .aep with a render queue object that has your desired preset. Include the .aep as a binary in your script, create the file at some location on the user's computer, then import the .aep into the current project. It will add the contained render queue object to the end of the queue. Now you can grab the output module and do with it whatever you want.

1 reply

ConstantinMaier
ConstantinMaierCorrect answer
Inspiring
August 31, 2023

You can create an .aep with a render queue object that has your desired preset. Include the .aep as a binary in your script, create the file at some location on the user's computer, then import the .aep into the current project. It will add the contained render queue object to the end of the queue. Now you can grab the output module and do with it whatever you want.

Inspiring
August 31, 2023

Thank you so much!!! This fixed my issue and makes life easier so I don't need to pre-install it. Side note - is there a way to turn off the string automatically adding "_[#####]" to the Output File name? Or at least change it?

ConstantinMaier
Inspiring
September 1, 2023

Hey, happy to help. 🙂 

Hm,  I recently dabbled with it but couldn't find a way to remove the ending. If you just want to render one frame, here's what I would do: Simply grab the file after the rendering is done and change the file name using fileObj.rename( newName )