Player

From Silhouette Wiki
Revision as of 22:58, 19 November 2012 by Paul (talk | contribs) (Created page with "The Player is a global object used to control playback, usually using key-binds. === Attributes === {| class="wikitable" ! scope="col" | Name ! scope="col" class="unsortable...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Player is a global object used to control playback, usually using key-binds.

Attributes

Name Description
frame The current frame number (zero-based). Assigning to this attribute results in an instantaneous jump to the specified frame; the same as calling player.setFrame(frame).
playing True if the Player is playing (read-only).

Methods

Name Description
gotoEnd() Jumps to the work range end frame.
gotoHome() Jumps to the work range start frame.
gotoNextEdit() Jump to the next key-frame in the selection.
gotoPrevEdit() Jump to the previous key-frame in the selection.
play(step=1) Begins playback with the desired step. step can be negative, to play backward.
setFrame(frame) Sets the current (zero-based) frame.
stepBackward() Moves to the previous frame.
stepForward() Moves to the next frame.
stop() Stop playback.