Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Move get_workfile_build_placeholder_plugins to NukeHost class as work…
Browse files Browse the repository at this point in the history
…file template builder expects
  • Loading branch information
Fabia Serra Arrizabalaga authored and iLLiCiTiT committed Feb 23, 2023
1 parent 5d9fe60 commit 7c73995
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
3 changes: 0 additions & 3 deletions openpype/hosts/nuke/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
parse_container,
update_container,

get_workfile_build_placeholder_plugins,
)
from .lib import (
INSTANCE_DATA_KNOB,
Expand Down Expand Up @@ -79,8 +78,6 @@
"parse_container",
"update_container",

"get_workfile_build_placeholder_plugins",

"INSTANCE_DATA_KNOB",
"ROOT_DATA_KNOB",
"maintained_selection",
Expand Down
13 changes: 6 additions & 7 deletions openpype/hosts/nuke/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ def workfile_has_unsaved_changes(self):
def get_workfile_extensions(self):
return file_extensions()

def get_workfile_build_placeholder_plugins(self):
return [
NukePlaceholderLoadPlugin,
NukePlaceholderCreatePlugin
]

def get_containers(self):
return ls()

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7c73995

Please sign in to comment.