Your Ad Here

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

Synopsis

buildBookmarkMenu( menuName , [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, queryable, and 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.

Flags

editor, type
Long name (short name) [argument types] Properties
type(typ) string edit
Type of bookmark (sets -text) to display
editor(ed) string edit
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.

Return value


none

Python examples

import maya.cmds as cmds

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

  

Return to Autodesk Index


Your Ad Here