Go to: Synopsis. Return value. Related. Flags. MEL examples. 
      
       directionalLight [-decayRate int] [-discRadius linear] [-intensity float] [-name string] [-rgb float float float] [-shadowColor float float float] [-shadowDither float] [-shadowSamples int] [-softShadow boolean] [-useRayTraceShadows boolean]   
      directionalLight is undoable, queryable, and editable.
      
The directionalLight command is used to edit the parameters
of existing directionalLights, or to create new ones. The
default behaviour is to create a new directionallight.
  
      
      string 
Light name
      
In query mode, return type is based on queried flag.
      
      ambientLight, exclusiveLightCheckBox, lightList, lightListEditor, lightListPanel, lightlink, pointLight, spotLight, spotLightPreviewPort
      
    
      decayRate, discRadius, intensity, name, rgb, shadowColor, shadowDither, shadowSamples, softShadow, useRayTraceShadows
      
      
		
		  
			 
				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
			 | 
		  
		
// Create a directional light
string $light = `directionalLight -rotation 45 30 15`;
// Change the light intensity
directionalLight -e -intensity 0.5 $light;
// Query it
directionalLight -q -intensity $light;
// Result:0.5//