mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
Redshift function cleanup.
This commit is contained in:
parent
b5004aeaa5
commit
05ed9c5c53
1 changed files with 3 additions and 7 deletions
|
|
@ -106,18 +106,14 @@ class RenderSettings(object):
|
|||
if renderer == "redshift":
|
||||
self._set_redshift_settings()
|
||||
|
||||
def _set_redshift_settings(self):
|
||||
def _set_redshift_settings(self, width, height):
|
||||
"""Sets settings for Redshift."""
|
||||
|
||||
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)
|
||||
cmds.setAttr("defaultResolution.width", width)
|
||||
cmds.setAttr("defaultResolution.height", height)
|
||||
|
||||
def _set_vray_settings(self, aov_separator, width, height):
|
||||
# type: (str, int, int) -> None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue