Capítulo 44 de 411
currentLabel() gets the closest label at or before the playhead, or (as a setter) jumps the playhead to a named label.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | String | null | omit to get current label; pass a name to jump there |
Returns: String (getter) or self (setter).
tl.currentLabel(); // "scene2"
tl.currentLabel("scene1"); // jump playhead to "scene1"