NodeFire Library

animation  1.0.6

NodeFire Library > animation > NF.anim.timeline
Search:
 
Filters

Class NF.anim.timeline

A timeline may include multiple tracks, each with multiple clips. When playing the timeline, the clip animations in each track for the current frame are simultaneously rendedered.

Constructor

NF.anim.timeline ( clip , hook )
Parameters:
clip <object || object Array> Optional - A clip or array of clips to include in the new timeline object. A new track including the clips is created.
hook <string> Optional hook to use when adding the timeline to a widget as a transtion. When the widget plays the timeline only clips with matching hooks will be rendered.

Properties

hook - String

The timelines optional hook.

tracks - Array

Array of track objects belonging to the timeline.

Methods

addTrack

object addTrack ( track )
Adds a track to the timeline.
Parameters:
track <object | object array> A track, clip, or array of clips. If passing this method clips a new track will be created containing the clip or clips and returned.
Returns: object
The added track object.

removeTrack

Array removeTrack ( track )
Removes a track from the timeline.
Parameters:
track <object> A track object to be removed from the timeline.
Returns: Array
Array of remaining track objects.


Copyright © 2012 OpenCube: Inc. All rights reserved.