LightLocation

Returns or changes the location of a light object.

Syntax

rhinoscriptsyntax.LightLocation (object_id, location=None)

rhinoscript.light.LightLocation (object_id, location=None)

Parameters

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.

Returns

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.

Example

import rhinoscriptsyntax as rs

id = rs.GetObject("Select a light", rs.filter.light)

if id: rs.AddPoint( rs.LightLocation(id) )

Also See

IsLight

LightDirection