# Animation

class `Animation.``Animation`()

  Structure encapsulating a specific animation

  ## Index

  Constructors

  - `constructor`

  Properties

  - `cameraChannels`
  - `name`
  - `nodeChannels`
  - `pivotPoints`

  Methods

  - `createCameraChannel`
  - `createNodeChannel`
  - `deleteChannel`

## Constructors

`Animation.Animation.``constructor`()
  Animation(name: string): `Animation`

  Creates a new, empty Animation

  Parameters

  > name: string

  > > friendly name for the animation

  Returns: `Animation`

## 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`()
  createCameraChannel(name: string, property: `CameraProperty`, sampler: `Sampler`): `CameraChannel`

  Creates a new camera animation channel.

  Parameters

  > 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.

  Returns: `CameraChannel`

`Animation.Animation.``createNodeChannel`()
  createNodeChannel(name: string, target: number, property: `NodeProperty`, sampler: `Sampler`): `NodeChannel`

  Creates a new node animation channel.

  Parameters

  > 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.

  Returns: `NodeChannel`

`Animation.Animation.``deleteChannel`()
  deleteChannel(channel: (`NodeChannel` | `CameraChannel`)): void

  Removes a channel from this animation.

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

  Parameters

  > channel: (`NodeChannel` | `CameraChannel`)

  Returns: void

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...