// =========================================================================== // 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: 18 April 1997 // // // // Description: // This implements the various global proc and variables needed for NURBS // selectType -isoparm 0; selectType -curveParameterPoint 0; global string $gPropModAnimCurvePrefix = "propModAnimCurve"; global int $gStartWithAutoComplete = 1; global proc toggleCreateNurbsPrimitiveAsTool() { int $val = (!`optionVar -q createNurbsPrimitiveAsTool`); optionVar -intValue createNurbsPrimitiveAsTool $val; if ( `menuItem -ex toggleCreateNurbsPrimitivesAsToolItem` ) menuItem -e -cb $val toggleCreateNurbsPrimitivesAsToolItem; if ( `menuItem -ex toggleNurbsPrimitivesAsToolItemExitOnComplete` ) menuItem -e -enable $val toggleNurbsPrimitivesAsToolItemExitOnComplete; } global proc setCreateNurbsPrimitiveAsTool(int $state) { optionVar -intValue createNurbsPrimitiveAsTool $state; if ( `menuItem -ex toggleCreateNurbsPrimitivesAsToolItem` ) menuItem -e -cb $state toggleCreateNurbsPrimitivesAsToolItem; if ( `menuItem -ex toggleNurbsPrimitivesAsToolItemExitOnComplete` ) menuItem -e -enable $state toggleNurbsPrimitivesAsToolItemExitOnComplete; } global proc toggleNurbsPrimitiveAsToolExitOnComplete() { int $val = (!`optionVar -q nurbsPrimitiveAsToolExitOnComplete`); optionVar -intValue nurbsPrimitiveAsToolExitOnComplete $val; if ( `menuItem -ex toggleNurbsPrimitivesAsToolItemExitOnComplete` ) menuItem -e -cb $val toggleNurbsPrimitivesAsToolItemExitOnComplete; } global proc setNurbsPrimitiveAsToolExitOnComplete(int $state) { optionVar -intValue nurbsPrimitiveAsToolExitOnComplete $state; if ( `menuItem -ex toggleNurbsPrimitivesAsToolItemExitOnComplete` ) menuItem -e -cb $state toggleNurbsPrimitivesAsToolItemExitOnComplete; }