Skip to main content
Inspiring
Aug 29, 2023 3:59 PM UTC
Answered

How To Create EXR Output Module Template (Scripting)?

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 is closed to new replies. Start a new post to keep the conversation going.
ConstantinMaier
ConstantinMaierCorrect answer
Inspiring
Aug 31, 2023 3:44 PM UTC

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.

3 replies

ConstantinMaier
ConstantinMaierCorrect answer
Inspiring
Aug 31, 2023 3:44 PM UTC

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.

Translate
Inspiring
Aug 31, 2023 10:23 PM UTC

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?

Translate
ConstantinMaier
Inspiring
Sep 1, 2023 1:26 PM UTC

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 )

Translate