Parameter.AnimatedParameters

説明

特定のアニメーションソースタイプでアニメートされたパラメータを含むParameterオブジェクトのコレクションを戻します。アニメートされたパラメータのコレクションを戻すことができるのは、Compoundパラメータのみです。

スクリプト 構文

oReturn = Parameter.AnimatedParameters( [sourceType] );

戻り値

ParameterCollection

パラメータ

パラメータ タイプ 詳細
sourceType siSourceType アニメーションソースタイプ

デフォルト値: siAnySource

VBScript の例

'
'  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

関連項目

Parameter.IsAnimated X3DObject.IsNodeAnimated X3DObject.NodeAnimatedParameters