mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
adding removeAOVs in setting to allow users to choose whether keeping existing AOVs
This commit is contained in:
parent
1ee5ff6627
commit
7938f843f0
3 changed files with 11 additions and 1 deletions
|
|
@ -108,8 +108,10 @@ class RenderSettings(object):
|
|||
# function to revert render settings does not reset AOVs list in MtoA
|
||||
# Fetch current aovs in case there's any.
|
||||
current_aovs = AOVInterface().getAOVs()
|
||||
remove_aovs = arnold_render_presets["remove_aovs"]
|
||||
if remove_aovs:
|
||||
# Remove fetched AOVs
|
||||
AOVInterface().removeAOVs(current_aovs)
|
||||
AOVInterface().removeAOVs(current_aovs)
|
||||
mel.eval("unifiedRenderGlobalsRevertToDefault")
|
||||
img_ext = arnold_render_presets["image_format"]
|
||||
img_prefix = arnold_render_presets["image_prefix"]
|
||||
|
|
@ -118,6 +120,8 @@ class RenderSettings(object):
|
|||
multi_exr = arnold_render_presets["multilayer_exr"]
|
||||
additional_options = arnold_render_presets["additional_options"]
|
||||
for aov in aovs:
|
||||
if aov in current_aovs and not remove_aovs:
|
||||
continue
|
||||
AOVInterface('defaultArnoldRenderOptions').addAOV(aov)
|
||||
|
||||
cmds.setAttr("defaultResolution.width", width)
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@
|
|||
"image_prefix": "<Scene>/<RenderLayer>/<RenderLayer>_<RenderPass>",
|
||||
"image_format": "exr",
|
||||
"multilayer_exr": true,
|
||||
"remove_aovs": true,
|
||||
"tiled": true,
|
||||
"aov_list": [],
|
||||
"additional_options": []
|
||||
|
|
|
|||
|
|
@ -69,6 +69,11 @@
|
|||
"label": "Multilayer (exr)",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"key": "remove_aovs",
|
||||
"label": "Remove AOVs",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"key": "tiled",
|
||||
"label": "Tiled (tif, exr)",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue