SetNodeAnimationKeyFrameRotation()

Syntax

SetNodeAnimationKeyFrameRotation(#NodeAnimation, KeyFrame, x, y, z [, w, Mode])
Description
Changes the keyframe rotation for the #NodeAnimation.

Parameters

#NodeAnimation The node animation to use.
#Keyframe The node animation keyframe index. The first keyframe index is zero. If the keyframe doesn't exists, this function has no effect.
x, y, z The keyframe 'x, y, z' rotation in the world. Values depends of the selected mode.
w (optional) The keyframe 'w' rotation in the world (only used for #PB_Orientation_Quaternion and #PB_Orientation_Direction).
Mode (optional) The rotation mode. It can be one of the following value:
  - #PB_Orientation_PitchYawRoll: 'x' (pitch), 'y' (yaw), 'z' (roll), applied in this order (default).
  - #PB_Orientation_Quaternion  : 'x', 'y', 'z', 'w' for quaternion values
  - #PB_Orientation_Direction   : 'x', 'y', 'z' for direction vector, and 'w' for rotation (roll).

Return value

None.

See Also

CreateNodeAnimationKeyFrame(), NodeAnimationKeyFramePitch(), NodeAnimationKeyFrameYaw(), NodeAnimationKeyFrameRoll()

Supported OS

All

<- SetNodeAnimationKeyFramePosition() - NodeAnimation Index - SetNodeAnimationKeyFrameScale() ->