pymel.core.animation.buildBookmarkMenu

buildBookmarkMenu(*args, **kwargs)

This command handles building the dynamicBookmark menu, to show all bookmarks (sets) of a specified type (sets -text) menuName is the string returned by the menucommand.

Flags:

Long Name / Short Name Argument Types Properties
editor / ed unicode ../../../_images/create.gif
  Name of the editor which this menu belongs to
type / typ unicode ../../../_images/create.gif
  Type of bookmark (sets -text) to display Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.buildBookmarkMenu

Example:

import pymel.core as pm

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