Go to: Synopsis. Return value. Flags. Python examples. 
      
       gradientControlNoAttr(
[string]
    , [asString=string], [changeCommand=string], [currentKey=int], [currentKeyChanged=script], [currentKeyColorValue=[float, float, float]], [currentKeyCurveValue=boolean], [currentKeyInterpValue=int], [dragCommand=script], [optionVar=string], [rampAsColor=boolean], [valueAtPoint=float])  
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
      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 have multiple arguments, passed either as a tuple or a list. | 
		
import maya.cmds as cmds
# Create a window with a gradient control for an optionVar
#
cmds.window( title='Gradient Control For OptionVar' )
cmds.optionVar(stringValueAppend=['falloffCurveOptionVar', '0,1,2'])
cmds.optionVar(stringValueAppend=['falloffCurveOptionVar', '1,0,2'])
cmds.columnLayout()
cmds.gradientControlNoAttr( 'falloffCurve', h=90)
cmds.gradientControlNoAttr( 'falloffCurve', e=True, optionVar='falloffCurveOptionVar' )
cmds.showWindow()
# Query for the value on the curve at a given position.
#
cmds.gradientControlNoAttr( 'falloffCurve', q=True, valueAtPoint=0.5 )