Go to: Synopsis. Return value. Flags. MEL examples. 
      
       gradientControlNoAttr [-asString string] [-changeCommand string] [-currentKey int] [-currentKeyChanged script] [-currentKeyColorValue float float float] [-currentKeyCurveValue] [-currentKeyInterpValue int] [-dragCommand script] [-optionVar string] [-rampAsColor boolean] [-valueAtPoint float] 
[string]
      
      gradientControlNoAttr is undoable, queryable, and editable.
      This command creates a control for editing a ramp (2D control
curve). The control attaches to an optionVar used to store and
retrieve the encoded gradient control points stored in a string.
	  
      
      | string | The name of the port created or modified | 
In query mode, return type is based on queried flag.
      
      
      
    
      asString, changeCommand, currentKey, currentKeyChanged, currentKeyColorValue, currentKeyCurveValue, currentKeyInterpValue, dragCommand, optionVar, rampAsColor, valueAtPoint
      
      
		
		  
			|  Flag can appear in Create mode of command |  Flag can appear in Edit mode of command | 
		  
			|  Flag can appear in Query mode of command |  Flag can be used more than once in a command. | 
		
window -title "Gradient Control For OptionVar";
optionVar -stringValueAppend "falloffCurveOptionVar" "0,1,2";
optionVar -stringValueAppend "falloffCurveOptionVar" "1,0,2";
columnLayout;
gradientControlNoAttr -h 90 falloffCurve;
gradientControlNoAttr -e
       -optionVar "falloffCurveOptionVar"
       falloffCurve;
showWindow;
// Query for the value on the curve at a given position.
//
gradientControlNoAttr -valueAtPoint 0.5 -query falloffCurve;