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