Skip to content
rech edited this page Jun 15, 2026 · 1 revision

Description

Scenecontrol event passed to custom scenecontrol type callbacks.

Remarks

When defining a custom scenecontrol type via addScenecontrol, the callback receives an event object with the following properties:

Properties


Name Type Description
timing number The timing of the scenecontrol event
timingGroup number The timing group of the scenecontrol event
args Table The arguments of the scenecontrol event (1-indexed)
type string The scenecontrol type name

Example

addScenecontrol("myType", {"speed", "easing"}, function(cmd)
    log(cmd.timing)
    log(cmd.timingGroup)
    log(cmd.args[1]) -- speed
    log(cmd.args[2]) -- easing
    log(cmd.type)    -- "myType"
end)

Clone this wiki locally