Object Hierarchy | Related C++ Class: ArrayParameter
Inheritance
SIObject
Parameter
ArrayParameter
Introduced
4.0
Description
An Array parameter is a special kind of parameter that can contain a variable number of entries, all of the same type. The array can have entries added (ArrayParameter.Add), removed (ArrayParameter.Remove) or moved around (ArrayParameter.Move) within the array.
Note: The ArrayParameter is zero-based.
Warning: The following properties are unsupported for the ArrayParameter object:
Methods
|
|
|
|
Properties
|
|
|
|
Examples
JScript Example
/* This example creates a cube, applies the XSIColorMixer shader to the material's surface port and adds a new layer. */ NewScene( null, false ); oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" ); oMat = oCube.AddMaterial( "Phong" ); oMixer = oMat.surface.ConnectFromProgid( "Softimage.XSIColorMixer.1" ); oLayers = oMixer.layers; LogMessage( "Before adding: " + oLayers.Count ); oNewLayer = oLayers.Add( ); LogMessage( "After adding: " + oLayers.Count ); oLayers.Remove( 0 ); LogMessage( "Before removing: " + oLayers.Count );
See Also
|
|
|
Autodesk Softimage v7.5