Move get_workfile_build_placeholder_plugins to NukeHost class as workfile template builder expects

This commit is contained in:
Fabia Serra Arrizabalaga 2023-02-23 00:52:40 +01:00 committed by Jakub Trllo
parent 5d9fe60013
commit 7c73995971
2 changed files with 6 additions and 10 deletions

View file

@ -30,7 +30,6 @@ from .pipeline import (
parse_container,
update_container,
get_workfile_build_placeholder_plugins,
)
from .lib import (
INSTANCE_DATA_KNOB,
@ -79,8 +78,6 @@ __all__ = (
"parse_container",
"update_container",
"get_workfile_build_placeholder_plugins",
"INSTANCE_DATA_KNOB",
"ROOT_DATA_KNOB",
"maintained_selection",

View file

@ -101,6 +101,12 @@ class NukeHost(
def get_workfile_extensions(self):
return file_extensions()
def get_workfile_build_placeholder_plugins(self):
return [
NukePlaceholderLoadPlugin,
NukePlaceholderCreatePlugin
]
def get_containers(self):
return ls()
@ -200,13 +206,6 @@ def _show_workfiles():
host_tools.show_workfiles(parent=None, on_top=False)
def get_workfile_build_placeholder_plugins():
return [
NukePlaceholderLoadPlugin,
NukePlaceholderCreatePlugin
]
def _install_menu():
# uninstall original avalon menu
main_window = get_main_window()