// =========================================================================== // 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: Dec 3, 1996 // // Description: // This is a helper script to perform the setKeyframe command // using the various options that have been set // // Input Arguments: // int action 0 - just execute the command // 1 - show the option box dialog // 2 - return the drag command // // Return Value: // None. // // // Procedure Name: // performSetKeyframe // // Description: // Perform the 'setKeyframe' command using the corresponding // option values. This procedure will also show the option box // window if necessary as well as construct the command string // that will invoke the 'setKeyframe' command with the current // option box values. // // Input Arguments: // 0 - Execute the command. // 1 - Show the option box dialog. // 2 - Return the command. // // Return Value: // None. // global proc string performSetKeyframe (int $action) { string $args[] = {(string) $action, "animationList" }; return (performSetKeyframeArgList ("1", $args)); }