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
6f65ea4f54
commit
6190e6ba11
1 changed files with 6 additions and 0 deletions
|
|
@ -184,6 +184,12 @@ class RenderSettings(object):
|
|||
enabled = cmds.getAttr("{}.enabled".format(aov))
|
||||
if enabled:
|
||||
cmds.delete(aov)
|
||||
# remove LightSelect
|
||||
lightSelect_aovs =cmds.ls(type='VRayRenderElementSet')
|
||||
for light_aovs in lightSelect_aovs:
|
||||
light_enabled = cmds.getAttr("{}.enabled".format(light_aovs))
|
||||
if light_enabled:
|
||||
cmds.delete(lightSelect_aovs)
|
||||
# Set aov separator
|
||||
# First we need to explicitly set the UI items in Render Settings
|
||||
# because that is also what V-Ray updates to when that Render Settings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue