mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Add Maya window function call to initalize render objects.
This commit is contained in:
parent
7a63e52a3f
commit
14a34836b7
1 changed files with 7 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from maya import cmds
|
||||
from maya import cmds, mel
|
||||
|
||||
from openpype.api import (
|
||||
get_project_settings,
|
||||
|
|
@ -94,12 +94,16 @@ class RenderSettings(object):
|
|||
|
||||
def _set_Arnold_settings(self, settings, width, height):
|
||||
"""Sets settings for Arnold."""
|
||||
mel.eval('unifiedRenderGlobalsWindow;')
|
||||
|
||||
if cmds.window("unifiedRenderGlobalsWindow", exists=True):
|
||||
cmds.deleteUI("unifiedRenderGlobalsWindow")
|
||||
|
||||
cmds.setAttr("defaultResolution.width", width)
|
||||
cmds.setAttr("defaultResolution.height", height)
|
||||
img_ext = settings["image_format"]
|
||||
self._set_global_output_settings()
|
||||
cmds.setAttr("defaultArnoldDriver.ai_translator", img_ext, type="string")
|
||||
cmds.setAttr("defaultResolution.width", width)
|
||||
cmds.setAttr("defaultResolution.height", height)
|
||||
|
||||
def _set_redshift_settings(self, width, height):
|
||||
"""Sets settings for Redshift."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue