@motion-script/core / layerAppliesTo
Function: layerAppliesTo()
layerAppliesTo(
config,sceneIndex,sceneName):boolean
Defined in: runtime/globals.ts:102
Whether a configured layer appears on the scene at sceneIndex named
sceneName.
Exported because the player's timeline draws each layer's bar over exactly the scenes it is active on, and a second implementation of the matching rule would sooner or later disagree with the one that decides what actually renders. Takes the raw config entry, so a caller needs no live LayerStack.
Parameters
config
sceneIndex
number
sceneName
string
Returns
boolean