Parameter.AnimatedParameters
 
 
 

Parameter.AnimatedParameters

Description

Returns a collection of Parameter objects containing parameters animated by a specific animation source type. Only Compound parameters can return a collection of animated parameters.

C# Syntax

ParameterCollection Parameter.AnimatedParameters( siSourceType );

Scripting Syntax

oReturn = Parameter.AnimatedParameters( [sourceType] );

Return Value

ParameterCollection

Parameters

Parameter Type Description
sourceType siSourceType Animation source type

Default Value: siAnySource

Examples

VBScript Example

'
'  This example demonstrates how to iterate over the collection of animated 
'  parameters in a cube 
'
NewScene , false
set oRoot = Application.ActiveProject.ActiveScene.Root
set oCube = oRoot.AddGeometry( "Cube", "MeshSurface" )
set param = oCube.Material.Shaders("Phong").Parameters("diffuse")
aValues = Array( 0.00, 5.00, 1.00, 6.00, 2.00, 7.00, 3.00, 8.00, 4.00, 9.00, 5.00, 10.00 )
set f = param.red.AddFCurve2( aValues )
for each p in param.AnimatedParameters( siAnySource )
Application.LogMessage p.FullName & " is animated"
next

See Also

Parameter.IsAnimated X3DObject.IsNodeAnimated X3DObject.NodeAnimatedParameters