mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
template_name is 100% per representation now
This commit is contained in:
parent
fe7a677621
commit
d9686af193
1 changed files with 6 additions and 3 deletions
|
|
@ -88,6 +88,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
"project", "asset", "task", "subset", "version", "representation",
|
||||
"family", "hierarchy", "task", "username"
|
||||
]
|
||||
default_template_name = "publish"
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
@ -260,7 +261,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
# Each should be a single representation (as such, a single extension)
|
||||
representations = []
|
||||
destination_list = []
|
||||
template_name = 'publish'
|
||||
|
||||
if 'transfers' not in instance.data:
|
||||
instance.data['transfers'] = []
|
||||
|
||||
|
|
@ -287,8 +288,10 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
files = repre['files']
|
||||
if repre.get('stagingDir'):
|
||||
stagingdir = repre['stagingDir']
|
||||
if repre.get('anatomy_template'):
|
||||
template_name = repre['anatomy_template']
|
||||
|
||||
template_name = (
|
||||
repre.get('anatomy_template') or self.default_template_name
|
||||
)
|
||||
if repre.get("outputName"):
|
||||
template_data["output"] = repre['outputName']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue