mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
add build workfile in menu
This commit is contained in:
parent
a5a3685f2b
commit
f2ae0ffa59
1 changed files with 17 additions and 1 deletions
|
|
@ -6,7 +6,13 @@ from Qt import QtWidgets, QtGui
|
|||
import maya.utils
|
||||
import maya.cmds as cmds
|
||||
|
||||
from openpype.api import BuildWorkfile
|
||||
from openpype.api import (
|
||||
BuildWorkfile,
|
||||
# build_workfile_template
|
||||
# update_workfile_template
|
||||
)
|
||||
|
||||
from openpype.lib.build_template import build_workfile_template, update_workfile_template
|
||||
from openpype.settings import get_project_settings
|
||||
from openpype.pipeline import legacy_io
|
||||
from openpype.tools.utils import host_tools
|
||||
|
|
@ -158,6 +164,16 @@ def install():
|
|||
parent=builder_menu,
|
||||
command=lambda *args: update_placeholder()
|
||||
)
|
||||
cmds.menuItem(
|
||||
"Build Workfile from template",
|
||||
parent=builder_menu,
|
||||
command=lambda *args: build_workfile_template()
|
||||
)
|
||||
cmds.menuItem(
|
||||
"Update Workfile from template",
|
||||
parent=builder_menu,
|
||||
command=lambda *args: update_workfile_template()
|
||||
)
|
||||
|
||||
cmds.setParent(MENU_NAME, menu=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue