mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
change placement of redshift settings function
This commit is contained in:
parent
3f488594be
commit
0bc8ad9694
2 changed files with 13 additions and 13 deletions
|
|
@ -113,6 +113,19 @@ class RenderSettings(object):
|
|||
|
||||
self._set_global_output_settings()
|
||||
|
||||
def _set_redshift_settings(self):
|
||||
"""Sets settings for Arnold."""
|
||||
|
||||
img_ext = self.redshift_renderer.get("image_format")
|
||||
self._set_global_output_settings()
|
||||
# Resolution
|
||||
resWidth = self.attributes.get("resolutionWidth")
|
||||
resHeight = self.attributes.get("resolutionHeight")
|
||||
|
||||
cmds.setAttr("redshiftOptions.imageFormat", img_ext)
|
||||
cmds.setAttr("defaultResolution.width", resWidth)
|
||||
cmds.setAttr("defaultResolution.height", resHeight)
|
||||
|
||||
def _set_vray_settings(self, aov_separator, width, height):
|
||||
# type: (str, int, int) -> None
|
||||
"""Sets important settings for Vray."""
|
||||
|
|
|
|||
|
|
@ -413,19 +413,6 @@ class CreateRender(plugin.Creator):
|
|||
if renderer == "redshift":
|
||||
self._set_redshift_settings()
|
||||
|
||||
def _set_redshift_settings(self):
|
||||
"""Sets settings for Arnold."""
|
||||
|
||||
img_ext = self.redshift_renderer.get("image_format")
|
||||
self._set_global_output_settings()
|
||||
# Resolution
|
||||
resWidth = self.attributes.get("resolutionWidth")
|
||||
resHeight = self.attributes.get("resolutionHeight")
|
||||
|
||||
cmds.setAttr("redshiftOptions.imageFormat", img_ext)
|
||||
cmds.setAttr("defaultResolution.width", resWidth)
|
||||
cmds.setAttr("defaultResolution.height", resHeight)
|
||||
|
||||
def _set_vray_settings(self, asset):
|
||||
# type: (dict) -> None
|
||||
"""Sets important settings for Vray."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue