change placement of redshift settings function

This commit is contained in:
Allan Ihsan 2022-04-21 00:52:54 +03:00
parent 3f488594be
commit 0bc8ad9694
2 changed files with 13 additions and 13 deletions

View file

@ -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."""

View file

@ -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."""