// =========================================================================== // 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: March 20 1997 // // Description: // Global function to make sure the options for point curve Constraint are set. // // Input Arguments: // Force the factory setting or not. // // Return Value: // None. // global proc pointCurveConstraintSetOptionVars( int $forceFactorySettings ) { // keepOriginal(0|1). // Default is 0. ie replace it // if( $forceFactorySettings || ! `optionVar -exists pointCurveConstraintKeepOriginal`) { optionVar -intValue pointCurveConstraintKeepOriginal 0; } // weight for constraint. // Default is 1.0. // if( $forceFactorySettings || ! `optionVar -exists pointCurveConstraintWt` ) { optionVar -floatValue pointCurveConstraintWt 1.0; } }