// =========================================================================== // 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: 28 June 1996 // // Description: // This procedure adds property sheet controls for // a new int attribute. This is for internal // use only. // // Input Arguments: // The name of the plug for the attribute // The name of the attribute // // Return Value: // The name of the newly-created control. /// global proc string AEnewInt ( string $plugName, string $attrName, string $changedCommand ) { string $createdControl; $createdControl = `attrFieldSliderGrp -l $attrName -attribute $plugName`; if ( $changedCommand != "") { string $buffer[]; tokenize($plugName,".",$buffer); string $cmd = $changedCommand+" \""+$buffer[0]+"\""; scriptJob -p $createdControl -rp -ac $plugName $cmd; } return $createdControl; }