## SetReference

### Introduced

v1.5

### Deprecated

v9.0 (2011)--see SetReference2

### Description

Sets reference parameter values for a shader. Reference parameter values occur only for shaders and are specified with 'type = reference;' in the SPDL file.
Use this command when you need to set a reference to a scene object when applying a shader that uses object references. For example, the Lightning shader defines start and end points that you link to items in the scene explorer.

### Scripting Syntax

    SetReference( Target, Value, [Time] );

### Parameters

Parameter | Type | Description
--- | --- | ---
Target | String | The parameter to set.
Value | SafeArray of IUnknowns | New parameter values.
Time | Integer | Frame at which to set the values. Default Value: Current frame.