Skip to content

StringChannel

rech edited this page Jun 15, 2026 · 1 revision

Description

Class for creating string channels.

Remarks

A string channel returns a string value for any given timing. It is used for properties like sorting layer names.

Methods


create()

Description

Creates an empty keyframe string channel.

Parameters

_

Return types

KeyStringChannel

Remarks

Returns a keyframe string channel that can have keys added to it.

Example

local layerChannel = StringChannel.create()
layerChannel.addKey(0, "Default")
layerChannel.addKey(1000, "Overlay")

constant(val)

Description

Creates a constant string channel.

Parameters

Name Type Description
val string The constant string value

Return types

StringChannel

Remarks

_

Example

local layer = StringChannel.constant("Default")

Clone this wiki locally