spotblend
spotblend
get/set the softness of the spotlight edge.
Type: float from 0.0 to 1.0
Sample Code
######################## get softness of spotlight edge
# get the current scene
scene = GameLogic.getCurrentScene()
# get a list of the lights in the scene
lightList = scene.lights
# get the spotlight named Spotlight
light = lightList["OBSpotLight"]
# get softness of spotlight edge
softness = light.spotblend
###################### set softness of spotlight edge
# get the current scene
scene = GameLogic.getCurrentScene()
# get a list of the lights in the scene
lightList = scene.lights
# get the spotlight named Spotlight
light = lightList["OBSpotLight"]
# set the softness
light.spotblend = 0.15
|