Returns or changes the location of a light object.
rhinoscriptsyntax.LightLocation (object_id, location=None)
rhinoscript.light.LightLocation (object_id, location=None)
object_id |
Required. String or Guid. The light object's identifier. |
location |
Optional. List of 3 numbers or Point3d. The new start point, or location. If omitted, the location point is returned. |
Point3d |
If a location point is not specified, the current location if successful. |
Point3d |
If a location point is specified, the previous location point if successful. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select a light", rs.filter.light)
if id: rs.AddPoint( rs.LightLocation(id) )