mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Add tags on project load.
This commit is contained in:
parent
3e25cc3bfd
commit
acb4cebbf5
1 changed files with 13 additions and 2 deletions
|
|
@ -1,17 +1,19 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
from avalon import api as avalon
|
||||
from pyblish import api as pyblish
|
||||
|
||||
from .. import api
|
||||
|
||||
from .menu import (
|
||||
install as menu_install,
|
||||
_update_menu_task_label
|
||||
)
|
||||
from .tags import add_tags_from_presets
|
||||
|
||||
from pypeapp import Logger
|
||||
|
||||
import hiero
|
||||
|
||||
log = Logger().get_logger(__name__, "nukestudio")
|
||||
|
||||
AVALON_CONFIG = os.getenv("AVALON_CONFIG", "pype")
|
||||
|
|
@ -55,6 +57,15 @@ def install(config):
|
|||
# load data from templates
|
||||
api.load_data_from_templates()
|
||||
|
||||
# Add tags on project load.
|
||||
hiero.core.events.registerInterest(
|
||||
"kAfterProjectLoad", add_tags
|
||||
)
|
||||
|
||||
|
||||
def add_tags(event):
|
||||
add_tags_from_presets()
|
||||
|
||||
|
||||
def uninstall():
|
||||
log.info("Deregistering NukeStudio plug-ins..")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue