Go to: Synopsis. Return value. Python examples.

Synopsis

buildKeyframeMenu( string )

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

buildKeyframeMenu is undoable, NOT queryable, and NOT editable.

This command handles building the "dynamic" Keyframe menu, to show attributes of currently selected objects, filtered by the current manipulator.

menuName is the string returned by the "menu" command. The target menu will entries appended to it (and deleted from it) to always show what's currently keyframable.

Return value

None

Python examples

import maya.cmds as cmds

# Set up "myAttributeMenu" as a menu to always
# reflect what's currently keyframable.
#
cmds.buildKeyframeMenu( 'myAttributeMenu' )