// =========================================================================== // 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: Jan 31, 2007 // // Procedure Name: // AEnewFilename // // Description: // This procedure adds property sheet controls for // a new filename 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 AEnewFilename( string $plugName, string $attrName, string $changedCommand ) { string $createdControl; setUITemplate -pst attributeEditorTemplate; $createdControl = `rowLayout -nc 3`; text -label $attrName; textField textureNameField; symbolButton -image "navButtonBrowse.png" browser; setParent ..; setUITemplate -ppt; AEreplaceFilename( $createdControl, $plugName, $changedCommand ); return $createdControl; }