Light: shadowClipEnd

shadowClipEnd
  • Returns the distance from the spot/sun that shadows stop

Return Type:
  • float number
Range:
  • 0.00 to 9999.00
Shadows work with Spot and Sun lamps
  • Properties menu >> Object Data  >> Shadow checkbox
Clip End in Blender 3D
  • Properties menu >> Object Data >> Shadow >> Clipping >> Clip End
Sample Code

################## get the shadow stop distance
 
# import bge
import bge

# get current scene
scene = bge.logic.getCurrentScene()

# get a list of the lights in the scene
lightList = scene.lights

# get the spotlight named Spot_Light
light = lightList["Spot_Light"]

# get shadow stop distance
stopShadow = light.shadowClipEnd