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

Commit

Permalink
Merge pull request #401 from pypeclub/feature/OP-2091_Unreal-Dynamic-…
Browse files Browse the repository at this point in the history
…menu-in-host

Unreal: Dynamic menu created in Python
  • Loading branch information
antirotor authored Dec 22, 2021
2 parents 95ea841 + 11adf77 commit ffe9e91
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions avalon/unreal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
show_manager,
show_project_manager,
show_experimental_tools,
show_tools_dialog,
show_tools_popup,
instantiate,
)

Expand All @@ -37,6 +39,8 @@
"show_manager",
"show_project_manager",
"show_experimental_tools",
"show_tools_dialog",
"show_tools_popup",
"maintained_selection",
"instantiate",
]
20 changes: 20 additions & 0 deletions avalon/unreal/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,26 @@ def imprint(node, data):
unreal.EditorAssetLibrary.save_asset(node)


def show_tools_popup():
"""Show popup with tools.
Popup will disappear on click or loosing focus.
"""
from openpype.hosts.unreal.api import tools_ui

tools_ui.show_tools_popup()


def show_tools_dialog():
"""Show dialog with tools.
Dialog will stay visible.
"""
from openpype.hosts.unreal.api import tools_ui

tools_ui.show_tools_dialog()


def show_creator():
host_tools.show_creator()

Expand Down

0 comments on commit ffe9e91

Please sign in to comment.