Go to: Synopsis. Return value. Python examples.
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.
import maya.cmds as cmds # Set up "myAttributeMenu" as a menu to always # reflect what's currently keyframable. # cmds.buildKeyframeMenu( 'myAttributeMenu' )