3D Animation (Character)

From Animation
Jump to navigationJump to search

Helpful Mel Scripts

Karl's Key Framer Helper

The MEL script below creates a floating window to help with character animation. global string $select[];

$select = {"placeHolder", "otherPlaceHolder"};

window -resizeToFitChildren 1 KarlsCharacterKeyFramer; columnLayout;

text -label "Make those keyframes";

button - label "Copy keyframes" -command "timeSliderCopyKey";

button - label "Paste keyframes" -command "timeSliderPasteKey false";

button - label "Delete keyframes" -command "timeSliderClearKey";

button - label "Gizmo Object" -command "manipRotateContext -e -mode 0 Rotate; manipMoveContext -e -mode 0 Move";

button - label "Gizmo World" -command "manipRotateContext -e -mode 1 Rotate; manipMoveContext -e -mode 2 Move";

button - label "Graph Editor" -command "GraphEditor";

button - label "Store Selection" -command "$select = `ls -sl`";

button - label "Get Selection" -command "select -r $select";

button - label "SET KEY" -command "setKeyframe";

button - label "SET KEY BLOCK" -command "setKeyframe -itt linear -ott step";

showWindow;