add menu item to OpenPype menu

This commit is contained in:
Allan Ihsan 2022-04-25 09:32:12 +03:00
parent 998eb0ee76
commit 365a6b3990

View file

@ -11,7 +11,7 @@ import avalon.api
from openpype.api import BuildWorkfile
from openpype.settings import get_project_settings
from openpype.tools.utils import host_tools
from openpype.hosts.maya.api import lib
from openpype.hosts.maya.api import lib, lib_rendersettings
from .lib import get_main_window, IS_HEADLESS
from .commands import reset_frame_range
@ -99,6 +99,15 @@ def install():
cmds.menuItem(divider=True)
cmds.menuItem(
"Set Render Settings",
command=lambda *args: lib_rendersettings.set_default_renderer_settings( # noqa
parent=parent_widget
)
)
cmds.menuItem(divider=True)
cmds.menuItem(
"Work Files...",
command=lambda *args: host_tools.show_workfiles(