Searches for animated parameters locally but doesn't recursively visit the children objects. The function stops as soon as an animated parameter is found. If you need to get the animated parameters from the children objects as well, use ProjectItem.AnimatedParameters2 instead.
oBoolean = X3DObject.IsNodeAnimated( [sourceType], [Local] ); |
Boolean (true)
Parameter | Type | Description |
---|---|---|
sourceType | siSourceType | Animation source type
Default Value: siAnySource |
Local | Boolean | Specifies whether the animation to check is local to the object
or not. If true then all animated parameters that come from
propagated properties or from intermediate nodes are ignored.
Intermediate nodes are nested under the object but are not
necessary owned by the object itself. For instance, the camera
object nested under a Texture_Projection_Def property is not
considered unless the target object is the projection property
itself. When the flag is set to false (default), all parameters are
considered.
Default Value: False |
NewScene , false set oRoot = Application.ActiveProject.ActiveScene.Root set oGrid = oRoot.AddGeometry("Grid","MeshSurface") vals = 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 = oGrid.posx.AddFCurve2(vals) Application.LogMessage "IsNodeAnimated( siFCurveSource )" & oGrid.IsNodeAnimated( siFCurveSource) Application.LogMessage "IsNodeAnimated( siExpressionSource )" & oGrid.IsNodeAnimated( siExpressionSource ) Application.LogMessage "IsNodeAnimated( siMixerSource )" & oGrid.IsNodeAnimated( siMixerSource ) Application.LogMessage "IsNodeAnimated( siConstraintSource )" & oGrid.IsNodeAnimated( siConstraintSource ) Application.LogMessage "IsNodeAnimated( siScriptedOperatorSource )" & oGrid.IsNodeAnimated( siScriptedOperatorSource ) Application.LogMessage "IsNodeAnimated( siShapeAnimationSource )" & oGrid.IsNodeAnimated( siShapeAnimationSource ) Application.LogMessage "IsNodeAnimated( siAnySource )" & oGrid.IsNodeAnimated( siAnySource ) Application.LogMessage "Number of node animated parameters : " & oGrid.NodeAnimatedParameters.Count ' Expected results: 'INFO : IsNodeAnimated( siFCurveSource )True 'INFO : IsNodeAnimated( siExpressionSource )False 'INFO : IsNodeAnimated( siMixerSource )False 'INFO : IsNodeAnimated( siConstraintSource )False 'INFO : IsNodeAnimated( siScriptedOperatorSource )False 'INFO : IsNodeAnimated( siShapeAnimationSource )False 'INFO : IsNodeAnimated( siAnySource )True 'INFO : Number of node animated parameters : 1 |