ItemsByIndex (ClusterElementCollection) *

Description

Sets or returns cluster element values by index.

In the case of a Clusters this provides read-only access to a 1-dimensional Array of the associated geometry indices (Integers) for the requested cluster indices. The size of this array is the same as the number of requested indices.

In the case of a ClusterProperty, this allows you to get or set a 2-dimensional Array containing the data on the requested cluster indices (Doubles). The size of the first dimension depends on the ClusterProperty. For example for a weight map there is only 1 element but for an envelope weight map the size is equal to the number of deformers. The size of the second dimension is the same as the number of requested indices.

C# Syntax

// get accessor
Object ClusterElementCollection.get_ItemsByIndex( Object vIndices );

// set accessor
ClusterElementCollection.set_ItemsByIndex( Object vIndices, Object pVal );

Parameters

Parameter

Type

Description

Indices

Array

Array of element indicies

Examples

• See ClusterElementCollection.ItemsByIndex.1.vbs

• See ClusterElementCollection.ItemsByIndex.2.vbs



Autodesk Softimage 2011