// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // // // Creation Date: 11 June 2014 // // Description: // This implements the "Visualize" menu on the Animation Menu Set. // // Procedure Name: // AniKeyMenu // // Description: // Create the ANIMATION->Visualize menu // // Input Arguments: // The parent control for the menu. // // Return Value: // None. // global proc AniVisualizeMenu ( string $parent ) { setParent -menu $parent; if( `menu -q -ni $parent` != 0 ) { // // Menu is built already - just return // return; } // Editors menuItem -divider true -dividerLabel (uiRes("m_AniVisualizeMenu.kTimeEditors")); $cmd = "CreateMotionTrail" ; menuItem -rtc $cmd -dragMenuCommand("performMotionTrail 2") createMotionTrailItem; $cmd = "CreateMotionTrailOptions"; menuItem -optionBox true -command $cmd -annotation (getRunTimeCommandAnnotation($cmd)) -image "motionTrail.png" createMotionTrailOptionItem; menuItem -rtc "AnimationTurntable" animTurntableItem; menuItem -optionBox true -annotation (getRunTimeCommandAnnotation("AnimationTurntableOptions")) -command "AnimationTurntableOptions" animTurntableDialogItem; // Ghost menuItem -divider true -dividerLabel (uiRes("m_AniVisualizeMenu.kTimeGhost")); $cmd = "CreateGhost"; menuItem -ltVersion "2016" -rtc $cmd -dragMenuCommand("performGhost 2") createGhostItem; $cmd = "CreateGhostOptions"; menuItem -optionBox true -command $cmd -annotation (getRunTimeCommandAnnotation($cmd)) -image "ghost.png" createGhostOptionItem; $cmd = "DoUnghost"; menuItem -ltVersion "2016" -rtc $cmd -dragMenuCommand("performUnghost 2") UnghostItem; $cmd = "DoUnghostOptions"; menuItem -optionBox true -command $cmd -annotation (getRunTimeCommandAnnotation($cmd)) -image "ghostOff.png" unghostOptionItem; menuItem -ltVersion "2016" -rtc "UnghostAll" unghostAllItem; // Snapshot menuItem -divider true -dividerLabel (uiRes("m_AniVisualizeMenu.kTimeSnapshot")); $cmd = "AnimationSnapshot"; menuItem -rtc $cmd -dragMenuCommand "performSnapshot 2" snapshotItem; $cmd = "AnimationSnapshotOptions"; menuItem -optionBox true -image "animateSnapshot.png" -command $cmd -annotation (getRunTimeCommandAnnotation($cmd)) snapshotDialogItem; menuItem -rtc "UpdateSnapshot" updateMotionTrailItem; $cmd = "AnimationSweep"; menuItem -rtc $cmd -dragMenuCommand "performAnimSweep 2" animsweepItem; $cmd = "AnimationSweepOptions"; menuItem -optionBox true -image "animateSweep.png" -command $cmd -annotation (getRunTimeCommandAnnotation($cmd)) animsweepDialogItem; }