mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
celaction is using product name and type
This commit is contained in:
parent
8f03290193
commit
d19a9cc24c
2 changed files with 16 additions and 13 deletions
|
|
@ -46,17 +46,17 @@ class CollectCelactionInstances(pyblish.api.ContextPlugin):
|
||||||
shared_instance_data.update(celaction_kwargs)
|
shared_instance_data.update(celaction_kwargs)
|
||||||
|
|
||||||
# workfile instance
|
# workfile instance
|
||||||
family = "workfile"
|
product_type = "workfile"
|
||||||
subset = family + task.capitalize()
|
product_name = product_type + task.capitalize()
|
||||||
# Create instance
|
# Create instance
|
||||||
instance = context.create_instance(subset)
|
instance = context.create_instance(product_name)
|
||||||
|
|
||||||
# creating instance data
|
# creating instance data
|
||||||
instance.data.update({
|
instance.data.update({
|
||||||
"subset": subset,
|
|
||||||
"label": scene_file,
|
"label": scene_file,
|
||||||
"family": family,
|
"productName": product_name,
|
||||||
"families": [],
|
"productType": product_type,
|
||||||
|
"families": [product_type],
|
||||||
"representations": []
|
"representations": []
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -76,17 +76,18 @@ class CollectCelactionInstances(pyblish.api.ContextPlugin):
|
||||||
self.log.info('Publishing Celaction workfile')
|
self.log.info('Publishing Celaction workfile')
|
||||||
|
|
||||||
# render instance
|
# render instance
|
||||||
subset = f"render{task}Main"
|
product_name = f"render{task}Main"
|
||||||
instance = context.create_instance(name=subset)
|
product_type = "render.farm"
|
||||||
|
instance = context.create_instance(name=product_name)
|
||||||
# getting instance state
|
# getting instance state
|
||||||
instance.data["publish"] = True
|
instance.data["publish"] = True
|
||||||
|
|
||||||
# add assetEntity data into instance
|
# add assetEntity data into instance
|
||||||
instance.data.update({
|
instance.data.update({
|
||||||
"label": "{} - farm".format(subset),
|
"label": "{} - farm".format(product_name),
|
||||||
"family": "render.farm",
|
"productType": product_type,
|
||||||
"families": [],
|
"families": [product_type],
|
||||||
"subset": subset
|
"productName": product_name
|
||||||
})
|
})
|
||||||
|
|
||||||
# adding basic script data
|
# adding basic script data
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,14 @@ class CollectRenderPath(pyblish.api.InstancePlugin):
|
||||||
anatomy = instance.context.data["anatomy"]
|
anatomy = instance.context.data["anatomy"]
|
||||||
anatomy_data = copy.deepcopy(instance.data["anatomyData"])
|
anatomy_data = copy.deepcopy(instance.data["anatomyData"])
|
||||||
padding = anatomy.templates.get("frame_padding", 4)
|
padding = anatomy.templates.get("frame_padding", 4)
|
||||||
|
product_type = "render"
|
||||||
anatomy_data.update({
|
anatomy_data.update({
|
||||||
"frame": f"%0{padding}d",
|
"frame": f"%0{padding}d",
|
||||||
"family": "render",
|
"family": product_type,
|
||||||
"representation": self.output_extension,
|
"representation": self.output_extension,
|
||||||
"ext": self.output_extension
|
"ext": self.output_extension
|
||||||
})
|
})
|
||||||
|
anatomy_data["product"]["type"] = product_type
|
||||||
|
|
||||||
anatomy_filled = anatomy.format(anatomy_data)
|
anatomy_filled = anatomy.format(anatomy_data)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue