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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
barnDoors (bd) | bool | ||
bottomBarnDoorAngle (bbd) | float | ||
coneAngle (ca) | float | ||
|
|||
decayRate (d) | int | ||
|
|||
discRadius (drs) | float | ||
|
|||
dropOff (do) | float | ||
|
|||
exclusive (exc) | bool | ||
intensity (i) | float | ||
|
|||
leftBarnDoorAngle (lbd) | float | ||
name (n) | unicode | ||
|
|||
penumbra (p) | float | ||
|
|||
position (pos) | float, float, float | ||
rgb (rgb) | float, float, float | ||
|
|||
rightBarnDoorAngle (rbd) | float | ||
rotation (rot) | float, float, float | ||
shadowColor (sc) | float, float, float | ||
|
|||
shadowDither (sd) | float | ||
|
|||
shadowSamples (sh) | int | ||
|
|||
softShadow (ss) | bool | ||
|
|||
topBarnDoorAngle (tbd) | float | ||
useRayTraceShadows (rs) | bool | ||
|
Derived from mel command maya.cmds.spotLight
Example:
import pymel.core as pm
# Create a spot light
light = pm.spotLight(coneAngle=45)
# Change the cone angle value
pm.spotLight( light, e=True, coneAngle=33 )
# Query it
pm.spotLight( light, q=True, coneAngle=True )
# Result: 33.0 #
# Result:33#