From 00ab5c2be0d21fbca9f3468df571b75e96be6d59 Mon Sep 17 00:00:00 2001 From: Mustafa-Zarkash Date: Thu, 29 Jun 2023 19:19:11 +0300 Subject: [PATCH 1/2] add parm value for RS_outputFileFormat --- .../hosts/houdini/plugins/create/create_redshift_rop.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openpype/hosts/houdini/plugins/create/create_redshift_rop.py b/openpype/hosts/houdini/plugins/create/create_redshift_rop.py index e14ff15bf8..c7d874c492 100644 --- a/openpype/hosts/houdini/plugins/create/create_redshift_rop.py +++ b/openpype/hosts/houdini/plugins/create/create_redshift_rop.py @@ -3,12 +3,12 @@ import hou # noqa from openpype.hosts.houdini.api import plugin -from openpype.pipeline import CreatedInstance from openpype.lib import EnumDef class CreateRedshiftROP(plugin.HoudiniCreator): """Redshift ROP""" + identifier = "io.openpype.creators.houdini.redshift_rop" label = "Redshift ROP" family = "redshift_rop" @@ -57,6 +57,8 @@ class CreateRedshiftROP(plugin.HoudiniCreator): fmt="${aov}.$F4.{ext}".format(aov="AOV", ext=ext) ) + ext_format_index = {"exr": 0, "tif": 1, "jpg": 2, "png": 3} + parms = { # Render frame range "trange": 1, @@ -64,6 +66,7 @@ class CreateRedshiftROP(plugin.HoudiniCreator): "RS_outputFileNamePrefix": filepath, "RS_outputMultilayerMode": "1", # no multi-layered exr "RS_outputBeautyAOVSuffix": "beauty", + "RS_outputFileFormat": ext_format_index[ext], } if self.selected_nodes: @@ -93,8 +96,7 @@ class CreateRedshiftROP(plugin.HoudiniCreator): def get_pre_create_attr_defs(self): attrs = super(CreateRedshiftROP, self).get_pre_create_attr_defs() image_format_enum = [ - "bmp", "cin", "exr", "jpg", "pic", "pic.gz", "png", - "rad", "rat", "rta", "sgi", "tga", "tif", + "exr", "tif", "jpg", "png", ] return attrs + [ From 55c646df82e7ddcfcbbf8309bb69ddcd8ad4bc96 Mon Sep 17 00:00:00 2001 From: Mustafa-Zarkash Date: Fri, 30 Jun 2023 08:33:44 +0300 Subject: [PATCH 2/2] remove the unnecessary comment --- openpype/hosts/houdini/plugins/create/create_redshift_rop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpype/hosts/houdini/plugins/create/create_redshift_rop.py b/openpype/hosts/houdini/plugins/create/create_redshift_rop.py index c7d874c492..4576e9a721 100644 --- a/openpype/hosts/houdini/plugins/create/create_redshift_rop.py +++ b/openpype/hosts/houdini/plugins/create/create_redshift_rop.py @@ -28,7 +28,7 @@ class CreateRedshiftROP(plugin.HoudiniCreator): instance = super(CreateRedshiftROP, self).create( subset_name, instance_data, - pre_create_data) # type: CreatedInstance + pre_create_data) instance_node = hou.node(instance.get("instance_node"))