Object Hierarchy | Related C++ Class: ArrayParameter
ArrayParameter
v4.0
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:
Parameter.Source
Parameter.Sources
Parameter.Value
Parameter.OriginalValue
/* 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 ); |