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