Animation
-
class
Animation.Animation() Structure encapsulating a specific animation
Constructors
Properties
-
Animation.Animation.cameraChannels - cameraChannels:
CameraChannel[]
-
Animation.Animation.name - name: string
friendly name for the animation
-
Animation.Animation.nodeChannels - nodeChannels:
NodeChannel[]
-
Animation.Animation.pivotPoints - pivotPoints: Map
Methods
-
Animation.Animation.createCameraChannel() Creates a new camera animation channel.
Parameters
name: string
friendly name for the channel.property:
CameraPropertythe property that will be animated by this channel.sampler:
Samplersampler describing the buffer and interpolation type used.Returns:
CameraChannel
-
Animation.Animation.createNodeChannel() - createNodeChannel(name: string, target: number, property:
NodeProperty, sampler:Sampler):NodeChannelCreates a new node animation channel.
Parameters
name: string
friendly name for the channel.target: number
id of node that will receive interpolated values.property:
NodePropertythe node property that will be animated.sampler:
Samplersampler describing the buffer and interpolation type.Returns:
NodeChannel
-
Animation.Animation.deleteChannel() - deleteChannel(channel: (
NodeChannel|CameraChannel)): voidRemoves a channel from this animation.
Call [[Player.reload]] on any players that are referencing this animation.
Parameters
channel: (NodeChannel|CameraChannel)Returns: void