mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
replace render settings workaround with function call
This commit is contained in:
parent
79d7700541
commit
fb424f6726
1 changed files with 3 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from maya import cmds, mel
|
||||
from maya import cmds
|
||||
from mtoa.core import createOptions
|
||||
|
||||
from openpype.api import (
|
||||
get_project_settings,
|
||||
|
|
@ -96,11 +97,7 @@ 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")
|
||||
|
||||
createOptions()
|
||||
cmds.setAttr("defaultResolution.width", width)
|
||||
cmds.setAttr("defaultResolution.height", height)
|
||||
img_ext = settings["image_format"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue