## GetInstances

### Introduced

v3.0

### Description

Returns a list of instances for a master.

### Scripting Syntax

    oReturn = GetInstances( InputObjs );

### Return Value

Returns an XSICollection object that contains the list of instances.

### Parameters

Parameter | Type | Description
--- | --- | ---
InputObjs | String | Model to find instances of. Default Value: Current selection

### Examples

#### VBScript Example

    dim instList
    GetPrim "Cone", "MyCone"
    CreateModel "MyCone"
    Instantiate , , 1, 1, 0, 1
    set instList = GetInstances( "Model" )
    LogMessage "Instance list: " & instList
    InspectObj instList

### See Also

Instantiate SIInstantiate GetMaster