mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 17:04:54 +01:00
tweak filepath a little bit
This commit is contained in:
parent
fee69d102d
commit
0ceec686e1
1 changed files with 4 additions and 5 deletions
|
|
@ -13,8 +13,6 @@ class CreateAlembicCamera(plugin.HoudiniCreator):
|
|||
label = "Camera (Abc)"
|
||||
product_type = "camera"
|
||||
icon = "camera"
|
||||
ext = "abc"
|
||||
staging_dir = "$HIP/ayon/{product[name]}/{product[name]}.{ext}"
|
||||
|
||||
def create(self, product_name, instance_data, pre_create_data):
|
||||
import hou
|
||||
|
|
@ -29,9 +27,10 @@ class CreateAlembicCamera(plugin.HoudiniCreator):
|
|||
|
||||
instance_node = hou.node(instance.get("instance_node"))
|
||||
|
||||
filepath = self.staging_dir.format(
|
||||
product={"name": "`chs(\"AYON_productName\")`"},
|
||||
ext=self.ext
|
||||
filepath = "{staging_dir}/{product_name}.abc".format(
|
||||
staging_dir=hou.text.expandString("$HIP/pyblish/"),
|
||||
# keep dynamic link to product name
|
||||
product_name="`chs(\"AYON_productName\")`",
|
||||
)
|
||||
|
||||
parms = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue