Properties
Overrides: CommonComponentTable<T>.ComponentType
Number of lights in the light table. Does not include Sun or Skylight.
Overrides: CommonComponentTable<T>.Count
Gets the default light that Rhino uses when no other lights illuminate the scene.
public Skylight Skylight { get; }
Gets the Sun instance that is applied to the document.
If the RDK is loaded, an instance is always returned.
Exceptions:
| RdkNotLoadedException | If the RDK is not loaded. |
Indexers
Methods
Parameters:
| light (Light) | |
| attributes (ObjectAttributes) |
Clear
public void Clear()
Marks all items as deleted.
Parameters:
| item (LightObject) |
Overrides: CommonComponentTable<T>.Delete
FindId
Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/opening operations. This function will not find grip objects.
Retrieves a object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
Parameters:
| index (int) | The index to search for. |
Returns: A object, or null if none was found.
Finds the LightObject with a given name.
Deleted lights have no name.
Parameters:
| name (string) | Name to search. |
Returns: A layer. If no layer is found, null is returned.
Finds a LightObject given its name hash.
Parameters:
| nameHash (NameHash) | The name hash of the LightObject to be searched. |
Returns: A LightObject, or null on error.
Overrides: CommonComponentTable<T>.GetEnumerator