mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
use dynamic product name in created Houdini ROPs
This commit is contained in:
parent
bb31dc3a69
commit
5667ee014c
16 changed files with 23 additions and 23 deletions
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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(".")
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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", "")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue