ObjectsByMaterialSource

Returns the identifiers of all objects based on the objects' material source. An object's material source can be obtained using ObjectMaterialSource.

Syntax

Rhino.ObjectsByMaterialSource (intMaterialSource [, blnSelect])

Parameters

intMaterialSource

Required.  Number.  The material source to query, where:

Value

Description

0

Material from layer

1

Material from object

2

<unused>

3

Material from parent

blnSelect

Optional.  Boolean.  Select the objects.  If omitted, the objects are not selected (False).

Returns

Array

An array of strings identifying the objects if successful.

Null

If not successful, or on error.

Example

Dim arrObjects

arrObjects = Rhino.ObjectsByMaterialSource(1, True)

Also See

ObjectsByMaterialIndex

ObjectMaterialSource