mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
fix(global): little cleanup
- was used old label `template` were `anatomy` should be - it was getting filled templates as object not as dictionary
This commit is contained in:
parent
66bf8b5bb9
commit
0c64aeb84f
2 changed files with 3 additions and 3 deletions
|
|
@ -9,11 +9,11 @@ from pypeapp import Anatomy
|
|||
import pyblish.api
|
||||
|
||||
|
||||
class CollectTemplates(pyblish.api.ContextPlugin):
|
||||
class CollectAnatomy(pyblish.api.ContextPlugin):
|
||||
"""Collect Anatomy into Context"""
|
||||
|
||||
order = pyblish.api.CollectorOrder
|
||||
label = "Collect Templates"
|
||||
label = "Collect Anatomy"
|
||||
|
||||
def process(self, context):
|
||||
context.data['anatomy'] = Anatomy()
|
||||
|
|
|
|||
|
|
@ -82,5 +82,5 @@ class CollectTemplates(pyblish.api.InstancePlugin):
|
|||
|
||||
# We take the parent folder of representation 'filepath'
|
||||
instance.data["assumedDestination"] = os.path.dirname(
|
||||
(anatomy.format(template_data)).publish.path
|
||||
(anatomy.format(template_data))["publish"]["path"]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue