CreateNodeAnimation()

语法

Result = CreateNodeAnimation(#NodeAnimation, NodeID, Length, Interpolation, RotationInterpolation)
概要
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.

参数

#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
RotationInterpolation The type of interpolation to apply between points. It can be one of the following value:
  #PB_NodeAnimation_LinearRotation:    
  #PB_NodeAnimation_SphericalRotation: 

返回值

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

参阅

FreeNodeAnimation()

已支持操作系统

所有

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