Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

buildBookmarkMenu( string , [editor=string], [type=string])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

buildBookmarkMenu is undoable, NOT queryable, and NOT editable.

This command handles building the "dynamic" Bookmark menu, to show all bookmarks ("sets") of a specified type ("sets -text")

menuName is the string returned by the "menu" command.

Return value

None

Flags

editor, type
Long name (short name) Argument types Properties
type(typ) string create
Type of bookmark (sets -text) to display
editor(ed) string create
Name of the editor which this menu belongs to

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# Update the bookmarkMenu to show animation (bookmarkAnimCurves)
# bookmarks
#
cmds.menu( 'bookmarkMenu' )
cmds.buildBookmarkMenu( 'bookmarkMenu', type='bookmarkAnimCurves' )