Communicator.Animation

 Animation

Type aliases

ColorMap

ColorMap: ColorPosition[]

RGB color values are specified in the 0-255 range. Positions are specified in the 0-1 range, pre-sorted in ascending order.

KeyframeIndex

KeyframeIndex: number

Functions

exportAnimations

  • exportAnimations(animations: Animation[]): Object
  • Return the given animations and their dependent data in a form suitable for serialization via, e.g., JSON.stringify. The animation objects can be recreated by passing the output to importAnimations.

    Sharing of objects such as keyframe buffers and samplers is preserved.

    The layout of the returned data is subject to change in future releases.

    Parameters

    • animations: Animation[]

    Returns Object

importAnimations

  • importAnimations(exportedObj: Object): Animation[]