use dynamic product name in created Houdini ROPs

This commit is contained in:
MustafaJafar 2024-03-04 18:12:19 +02:00
parent bb31dc3a69
commit 5667ee014c
16 changed files with 23 additions and 23 deletions

View file

@ -30,7 +30,7 @@ class CreateAlembicCamera(plugin.HoudiniCreator):
instance_node = hou.node(instance.get("instance_node"))
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext
)

View file

@ -41,7 +41,7 @@ class CreateArnoldAss(plugin.HoudiniCreator):
instance_node.setParmTemplateGroup(parm_template_group)
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext.lstrip(".")
)

View file

@ -40,7 +40,7 @@ class CreateArnoldRop(plugin.HoudiniCreator):
ext = pre_create_data.get("image_format")
filepath = self.render_staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=ext
)
@ -55,7 +55,7 @@ class CreateArnoldRop(plugin.HoudiniCreator):
if pre_create_data.get("export_job"):
ass_filepath = self.ass_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext="ass"
)

View file

@ -31,7 +31,7 @@ class CreateBGEO(plugin.HoudiniCreator):
instance_node = hou.node(instance.get("instance_node"))
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=pre_create_data.get("bgeo_type") or "bgeo.sc"
)

View file

@ -30,7 +30,7 @@ class CreateCompositeSequence(plugin.HoudiniCreator):
instance_node = hou.node(instance.get("instance_node"))
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext
)

View file

@ -62,7 +62,7 @@ class CreateHDA(plugin.HoudiniCreator):
# for consistency I'm using {subset} as it's
# the same key used in other creators
filepath = self.staging_dir.format(
product={"name": node_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext
)

View file

@ -35,17 +35,17 @@ class CreateKarmaROP(plugin.HoudiniCreator):
ext = pre_create_data.get("image_format")
filepath = self.render_staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=ext
)
checkpoint = self.checkpoint_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext="checkpoint"
)
usd_directory = self.usd_dir.format(
product={"name": product_name}
product={"name": "`chs(\"AYON_productName\")`"},
)
parms = {

View file

@ -29,7 +29,7 @@ class CreateMantraIFD(plugin.HoudiniCreator):
instance_node = hou.node(instance.get("instance_node"))
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext
)

View file

@ -37,7 +37,7 @@ class CreateMantraROP(plugin.HoudiniCreator):
ext = pre_create_data.get("image_format")
filepath = self.render_staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=ext
)
@ -50,7 +50,7 @@ class CreateMantraROP(plugin.HoudiniCreator):
if pre_create_data.get("export_job"):
ifd_filepath = self.ifd_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext="ifd"
)

View file

@ -31,7 +31,7 @@ class CreatePointCache(plugin.HoudiniCreator):
instance_node = hou.node(instance.get("instance_node"))
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext
)

View file

@ -39,7 +39,7 @@ class CreateRedshiftProxy(plugin.HoudiniCreator):
instance_node = hou.node(instance.get("instance_node"))
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext
)

View file

@ -60,7 +60,7 @@ class CreateRedshiftROP(plugin.HoudiniCreator):
ext = pre_create_data.get("image_format")
filepath = self.render_staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=ext
)
@ -85,7 +85,7 @@ class CreateRedshiftROP(plugin.HoudiniCreator):
parms["RS_renderCamera"] = camera or ""
rs_filepath = self.rs_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext="rs"
)

View file

@ -32,7 +32,7 @@ class CreateStaticMesh(plugin.HoudiniCreator):
# prepare parms
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext
)

View file

@ -29,7 +29,7 @@ class CreateUSD(plugin.HoudiniCreator):
instance_node = hou.node(instance.get("instance_node"))
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext
)

View file

@ -33,7 +33,7 @@ class CreateVDBCache(plugin.HoudiniCreator):
instance_node = hou.node(instance.get("instance_node"))
filepath = self.staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=self.ext
)

View file

@ -60,7 +60,7 @@ class CreateVrayROP(plugin.HoudiniCreator):
if pre_create_data.get("export_job"):
scene_filepath = self.vrscene_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext="vrscene"
)
# Setting render_export_mode to "2" because that's for
@ -84,7 +84,7 @@ class CreateVrayROP(plugin.HoudiniCreator):
if pre_create_data.get("render_element_enabled", True):
# Vray has its own tag for AOV file output
filepath = self.render_staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=ext
)
@ -103,7 +103,7 @@ class CreateVrayROP(plugin.HoudiniCreator):
else:
filepath = self.render_staging_dir.format(
product={"name": product_name},
product={"name": "`chs(\"AYON_productName\")`"},
ext=ext
).replace(".$AOV", "")