flame: add ui to project media panel

This commit is contained in:
Jakub Jezek 2022-09-09 13:54:33 +02:00
parent 3943d74f3e
commit c622eb7a59
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
3 changed files with 17 additions and 4 deletions

View file

@ -52,7 +52,7 @@ from .pipeline import (
from .menu import (
FlameMenuProjectConnect,
FlameMenuTimeline,
FlameMenuBatch
FlameMenuUniversal
)
from .plugin import (
Creator,
@ -132,7 +132,7 @@ __all__ = [
# menu
"FlameMenuProjectConnect",
"FlameMenuTimeline",
"FlameMenuBatch",
"FlameMenuUniversal",
# plugin
"Creator",

View file

@ -203,7 +203,7 @@ class FlameMenuTimeline(_FlameMenuApp):
self.log.info('Rescan Python Hooks')
class FlameMenuBatch(_FlameMenuApp):
class FlameMenuUniversal(_FlameMenuApp):
# flameMenuProjectconnect app takes care of the preferences dialog as well

View file

@ -194,6 +194,7 @@ def get_timeline_custom_ui_actions():
return _build_app_menu("FlameMenuTimeline")
def get_batch_custom_ui_actions():
"""Hook to create submenu in batch
@ -203,4 +204,16 @@ def get_batch_custom_ui_actions():
# install openpype and the host
openpype_install()
return _build_app_menu("FlameMenuBatch")
return _build_app_menu("FlameMenuUniversal")
def get_media_panel_custom_ui_actions():
"""Hook to create submenu in desktop
Returns:
list: menu object
"""
# install openpype and the host
openpype_install()
return _build_app_menu("FlameMenuUniversal")