CreateNodeAnimation()

Syntax

Result = CreateNodeAnimation(#NodeAnimation, NodeID, Length, Interpolation, RotationInterpolation)
Description
Creates a new node animation of the specified length. A node animation doesn't exist physically in the 3D world, it is an virtual track to move a node (and its attached object) easily around the world.

Parameters

#NodeAnimation The number to identify the new node animation. #PB_Any can be used to auto-generate this number.
NodeID The node to move automatically. NodeID() can be use to get a valid node identifier.
Length The length of the new animation (in milliseconds).
Interpolation The type of interpolation to apply between points. It can be one of the following value:
  #PB_NodeAnimation_Linear: each points will be linked together using a straight line, which can result to abrupt direction change
  #PB_NodeAnimation_Spline: each points will be linked together using a spline, which results in smooth direction change, but is also slower.
RotationInterpolation The type of interpolation for the rotation to apply between points. It can be one of the following value:
  #PB_NodeAnimation_LinearRotation:    each points will be linked together using a straight line, which can result to abrupt rotation
  #PB_NodeAnimation_SphericalRotation: each points will be linked together using a curve, which results in smoother rotation, but is also slower.

Return value

Returns zero if the #NodeAnimation can't be created. If #PB_Any is used as '#NodeAnimation' parameter, the new node animation number is returned.

See Also

FreeNodeAnimation()

Supported OS

All

<- AddNodeAnimationTime() - NodeAnimation Index - CreateNodeAnimationKeyFrame() ->