Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (37 sloc) 1.15 KB

Tag

Represents a tag in the timeline.

Tag.sprite

Returns the sprite to which this tag belongs.

Tag.fromFrame

Returns the first Frame object where this tag starts.

Note: Old versions (Aseprite v1.2.10-beta2) returned a frame number instead of a Frame object.

Tag.toFrame

Returns the last Frame object where this tag ends.

Note: Old versions (Aseprite v1.2.10-beta2) returned a frame number instead of a Frame object.

Tag.frames

Returns the number of frames that this tag contain. Equal to:

local frames = tag.toFrame.frameNumber - tag.fromFrame.frameNumber + 1

Tag.name

local name = tag.name
tag.name = name

Gets or sets the name of the tag (a string).

Tag.aniDir

local aniDir = tag.aniDir
tag.aniDir = AniDir.FORWARD
tag.aniDir = AniDir.REVERSE
tag.aniDir = AniDir.PING_PONG

Gets or sets the Animation Direction property of the tag.

Tag.color

local color = tag.color
tag.color = color

Gets or sets the user-defined color of this tag in the timeline.

You can’t perform that action at this time.