mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
23 lines
589 B
Python
23 lines
589 B
Python
from maya import cmds
|
|
from app.api import (
|
|
Templates
|
|
)
|
|
|
|
import pyblish.api
|
|
|
|
|
|
class CollectTemplates(pyblish.api.ContextPlugin):
|
|
"""Inject the current working file into context"""
|
|
|
|
order = pyblish.api.CollectorOrder
|
|
label = "Collect Templates"
|
|
|
|
def process(self, context):
|
|
"""Inject the current working file"""
|
|
templates = Templates(
|
|
type=["anatomy"]
|
|
)
|
|
context.data['anatomy'] = templates.anatomy
|
|
for key in templates.anatomy:
|
|
self.log.info(str(key) + ": " + str(templates.anatomy[key]))
|
|
# return
|