// Copyright (C) 1997-2004 Alias Systems Corp.
// 
// The information in this file is provided for the exclusive use of the
// licensees of Alias.  Such users have the right to use, modify,
// and incorporate this code into other products for purposes authorized
// by the Alias license agreement, without fee.
// 
// ALIAS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
// INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
// EVENT SHALL ALIAS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
// CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
// DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
// TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.

//
//  Alias Script File
//
//  Creation Date: 2003 
//
//  Procedure Name:
//	AElineModifierTemplate
//
//  Description Name;
//	Creates the attribute editor controls for the lineModifier Node
//
//  Input Value:
//	nodeName 
//
//  Output Value:
//	None
// 


global proc AElineModifierCheckModifyColor( string $node )
{
	int $on = `getAttr ($node + ".modifyColor")`;
	editorTemplate -dimControl $node "color" (!$on);
}

	
global proc AElineModifierTemplate ( string $nodeName )
{
	editorTemplate -beginScrollLayout;

//		editorTemplate -suppress "useObjectColor";
//		editorTemplate -interruptOptimize;

		// PfxToon Render
		// 
		editorTemplate -beginLayout "Line Modifier Attributes" -collapse 0;
			editorTemplate -addControl "shape";
			editorTemplate -addControl "widthScale";
			editorTemplate -addControl "widthOffset";
			editorTemplate -addSeparator;
			editorTemplate -addControl "opacityScale";
			editorTemplate -addControl "opacityOffset";
			editorTemplate -addSeparator;
			editorTemplate -addControl "surfaceOffset";
			editorTemplate -addControl "lineExtend";
			editorTemplate -addSeparator;
			editorTemplate -addControl "modifyColor"  "AElineModifierCheckModifyColor";
			editorTemplate -addControl "color";
			AEaddRampControl "dropoff";
			editorTemplate -addControl "dropoffNoise";
			editorTemplate -addControl "noiseFrequency";
            // AElocatorCommon $nodeName;
		editorTemplate -endLayout;
		editorTemplate -beginLayout "Brush Tube Attributes" -collapse 1;
			editorTemplate -addControl "force";
			editorTemplate -addControl "directionalForce";
			editorTemplate -addSeparator;
			editorTemplate -addControl "displacement";
			editorTemplate -addControl "directionalDisplacement";
			editorTemplate -addSeparator;
			editorTemplate -addControl "tubeScale";
			editorTemplate -addControl "tubeDropout";
			editorTemplate -addSeparator;
			editorTemplate -addControl "leafScale";
			editorTemplate -addControl "leafDropout";
			editorTemplate -addSeparator;
			editorTemplate -addControl "flowerScale";
			editorTemplate -addControl "flowerDropout";
			editorTemplate -addSeparator;
			editorTemplate -addControl "branchDropout";
			editorTemplate -addControl "twigDropout";
		editorTemplate -endLayout;

		AElocatorInclude $nodeName;

	editorTemplate -addExtraControls;
	editorTemplate -endScrollLayout;

}
