Capítulo 44 de 411

Chapter 44: Timeline.currentLabel()

Core Idea

currentLabel() gets the closest label at or before the playhead, or (as a setter) jumps the playhead to a named label.

Reference Tables

ParameterTypeDefaultDescription
valueStringnullomit to get current label; pass a name to jump there

Returns: String (getter) or self (setter).

Code Examples

tl.currentLabel(); // "scene2"
tl.currentLabel("scene1"); // jump playhead to "scene1"

Connects To

  • Timeline.addLabel() / labels: how labels get created and inspected.