class counterpart of mel function spotLight
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.
Retrieves the value of the barn door angle for the specified barn door. The barn door angles are represented by the “leftBarnDoor”, “rightBarnDoor”, “topBarnDoor”, and “bottomBarnDoor” attributes. This function retrieves the value of the appropriate attribute.
Parameters : |
|
---|---|
Return type: | float |
Derived from api method maya.OpenMaya.MFnSpotLight.barnDoorAngle
Retrieves the value of the “barnDoors” attribute of a light node. This attribute determines whether or not the light uses barn doors.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnSpotLight.barnDoors
Derived from mel command maya.cmds.spotLight
Retrieves the value of the “coneAngle” attribute of a light node. This attribute represents the angle that the spotlight cone makes with the spotlight direction vector.
Return type: | float |
---|
Derived from api method maya.OpenMaya.MFnSpotLight.coneAngle
radius of the disc around the light
Derived from mel command maya.cmds.spotLight
Retrieves the value of the “dropOff” attribute of a light node. This attribute represents the degree to which intensity of the light decreases with increasing angular distance from the light direction vector. Higher values represent more rapid intensity dropoff.
Return type: | float |
---|
Derived from api method maya.OpenMaya.MFnSpotLight.dropOff
Retrieves the value of the end distance for the specified decay regions. The end distances for the spotlight’s 3 decay regions are represented by the “endDistance1”, “endDistance2”, and “endDistance3” attributes. This function retrieves the value of the appropriate attribute.
Parameters : |
|
---|---|
Return type: | float |
Derived from api method maya.OpenMaya.MFnSpotLight.endDistance
Derived from mel command maya.cmds.spotLight
Derived from mel command maya.cmds.spotLight
Retrieves the value of the “penumbraAngle” attribute of a light node. This attribute represents the extra angle beyond the cone angle used in soft shadow computations.
Return type: | float |
---|
Derived from api method maya.OpenMaya.MFnSpotLight.penumbraAngle
color of the light (0-1)
Derived from mel command maya.cmds.spotLight
Derived from mel command maya.cmds.spotLight
dither the shadowFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
Derived from mel command maya.cmds.spotLight
number of shadow samples.
Derived from mel command maya.cmds.spotLight
soft shadow
Derived from mel command maya.cmds.spotLight
Retrieves the value of the start distance for the specified decay regions. The start distances for the spotlight’s 3 decay regions are represented by the “startDistance1”, “startDistance2”, and “startDistance3” attributes. This function retrieves the value of the appropriate attribute.
Parameters : |
|
---|---|
Return type: | float |
Derived from api method maya.OpenMaya.MFnSpotLight.startDistance
Derived from mel command maya.cmds.spotLight
Retrieves the value of the “useDecayRegions” attribute of a light node. This attribute determines whether or not the light uses decay regions.
Return type: | bool |
---|
Derived from api method maya.OpenMaya.MFnSpotLight.useDecayRegions
Sets the value of the appropriate barn door angle attribute of a light node.
Parameters : |
|
---|
Derived from api method maya.OpenMaya.MFnSpotLight.setBarnDoorAngle
Sets the value of the “barnDoors” attribute of a light node.
Parameters : |
|
---|
Derived from api method maya.OpenMaya.MFnSpotLight.setBarnDoors
Derived from mel command maya.cmds.spotLight
Sets the value of the “coneAngle” attribute of a light node.
Parameters : |
|
---|
Derived from api method maya.OpenMaya.MFnSpotLight.setConeAngle
radius of the disc around the light
Derived from mel command maya.cmds.spotLight
Sets the value of the “dropOff” attribute of a light node.
Parameters : |
|
---|
Derived from api method maya.OpenMaya.MFnSpotLight.setDropOff
Sets the value of the appropriate decay region end distance attribute of a light node.
Parameters : |
|
---|
Derived from api method maya.OpenMaya.MFnSpotLight.setEndDistance
Derived from mel command maya.cmds.spotLight
Derived from mel command maya.cmds.spotLight
Sets the value of the “penumbraAngle” attribute of a light node.
Parameters : |
|
---|
Derived from api method maya.OpenMaya.MFnSpotLight.setPenumbraAngle
color of the light (0-1)
Derived from mel command maya.cmds.spotLight
Derived from mel command maya.cmds.spotLight
Derived from mel command maya.cmds.spotLight
dither the shadowFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
Derived from mel command maya.cmds.spotLight
number of shadow samples.
Derived from mel command maya.cmds.spotLight
soft shadow
Derived from mel command maya.cmds.spotLight
Sets the value of the appropriate decay region start distance attribute of a light node.
Parameters : |
|
---|
Derived from api method maya.OpenMaya.MFnSpotLight.setStartDistance
Derived from mel command maya.cmds.spotLight
Sets the value of the “useDecayRegions” attribute of a light node.
Parameters : |
|
---|
Derived from api method maya.OpenMaya.MFnSpotLight.setUseDecayRegions