# Animation

class Animation.Animation()

  Structure encapsulating a specific animation

Constructors

- `constructor()`

Properties

- `cameraChannels`

- `name`

- `nodeChannels`

- `pivotPoints`

Methods

- `createCameraChannel()`

- `createNodeChannel()`

- `deleteChannel()`

## Constructors

Animation.constructor(name)
  Arguments

    - name (`string()`) – friendly name for the animation

  Creates a new, empty Animation

  Return type

    Animation

## Properties

Animation.cameraChannels
  Type

    [CameraChannel]

Animation.name
  Type

    string

  friendly name for the animation

Animation.nodeChannels
  Type

    [NodeChannel]

Animation.pivotPoints
  Type

    Map <number, Point3>

## Methods

### createCameraChannel

Animation.createCameraChannel(name, property, sampler)
  Arguments

    - name (`string()`) – friendly name for the channel.

    - property (`CameraProperty()`) – the property that will be animated by this channel.

    - sampler (`Sampler()`) – sampler describing the buffer and interpolation type used.

  Creates a new camera animation channel.

  Return type

    CameraChannel

### createNodeChannel

Animation.createNodeChannel(name, target, property, sampler)
  Arguments

    - name (`string()`) – friendly name for the channel.

    - target (`number()`) – id of node that will receive interpolated values.

    - property (`NodeProperty()`) – the node property that will be animated.

    - sampler (`Sampler()`) – sampler describing the buffer and interpolation type.

  Creates a new node animation channel.

  Return type

    NodeChannel

### deleteChannel

Animation.deleteChannel(channel)
  Arguments

    - channel (`NodeChannel | CameraChannel()`) – None

  Removes a channel from this animation.

  Call [[Player.reload]] on any players that are referencing this animation.

  Return type

    void