GetInstanceValue (Parameter)

Introduced

5.0

Description

Returns instance value for specified object. Instance values can only be applied to Property objects that can be shared or Shader objects connected under shared Material objects. For example, the ImageShader.tspace_id parameter is an instance value.

They cannot be animated, so this method doesn't take a time argument. If you attempt to bind to the instance value then the object represented by the String value will be returned. If the object could not be found then an empty variant will be returned.

Scripting Syntax

Parameter.GetInstanceValue( Object, [Bind] )

C# Syntax

Object Parameter.GetInstanceValue( Object in_obj, Boolean );

Parameters

Parameter

Type

Description

Object

Object such as a X3DObject

Object nesting the shared property

Bind

Boolean

If the parameter supports object binding then attempt to bind to object specified by the instance value and return the object as the value.

Default Value: False

Return Value

Variant

See Also

Parameter.HasInstanceValue

Parameter.IsSupportedInstanceValue

Parameter.SetInstanceValue

Examples

• See Parameter.GetInstanceValue.1.js



Autodesk Softimage 2011