Skip to content

Commit

Permalink
Add update placeholder to maya menu
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitConnan authored and ClementHector committed Feb 8, 2022
1 parent 004e522 commit 9a76997
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions openpype/hosts/maya/api/menu.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from openpype.hosts.maya.api.lib_template_builder import update_placeholder
import sys
import os
import logging
Expand All @@ -9,7 +10,7 @@
from avalon.maya import pipeline

from openpype.api import build_workfile_template, update_workfile_template
from lib_template_builder import create_placeholder
from lib_template_builder import create_placeholder, update_placeholder
from openpype.settings import get_project_settings
from openpype.tools.utils import host_tools
from openpype.hosts.maya.api import lib
Expand Down Expand Up @@ -56,10 +57,15 @@ def add_build_template_workfiles_item():
)
cmds.menuItem(divider=True)
cmds.menuItem(
"Create Place Holder",
"Create Placeholder",
parent=_builder_menu,
command=lambda *args: create_placeholder()
)
cmds.menuItem(
"Update Placeholder",
parent=_builder_menu,
command=lambda *args: update_placeholder()
)

def add_look_assigner_item():
cmds.menuItem(
Expand Down

0 comments on commit 9a76997

Please sign in to comment.