
spotblend
- gets/sets the softness of the spotlight edge.
Type:
- float number
Range:
- 0.00 to 1.00
- 0.00 = none
- 1.00 = maximum
Note:
- Spotlights only.

Sample Code
################## get the softness of the spotlight's edge
# import bge
import bge
# get current scene
scene = bge.logic.getCurrentScene()
# get a list of the lights in the scene
lightList = scene.lights
# get light named SearchLight
light = lightList["SearchLight"]
# get the softness of the spotlight's edge
edge= light.spotblend
Sample Code
################## set the softness of the spotlight's edge
# import bge
import bge
# get current scene
scene = bge.logic.getCurrentScene()
# get a list of the lights in the scene
lightList = scene.lights
# get light named SearchLight
light = lightList["SearchLight"]
# set the softness of the spotlight's edge
light.spotblend = 0.5