Enables or disables a light object.
rhinoscriptsyntax.EnableLight (object_id, enable=None)
rhinoscript.light.EnableLight (object_id, enable=None)
object_id |
Required. String or Guid. The identifier of the light object |
enable |
Optional. Boolean. The light's enabled status. |
Boolean |
If enable is not specified, then the current enabled status if successful. |
Boolean |
If enable is specified, then the previous enabled status if successful. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select light", rs.filter.light)
if id: rs.EnableLight( id, False )