Skip to content

Lightning

Environmental reference
FXMasterFilter effectAPI type: lightning

Full-scene lightning flashes with timing, tint, duration, and audio-aware controls.

Environmental filters change the Scene surface or atmosphere. They can cover the full Scene, be limited to Regions, and be moved within the effect stack.

Reference Value
Package FXMaster
Effect kind Filter effect
Category Environmental
Runtime type lightning
Exposed parameters 16
  • Period: Sets the approximate time between automatic lightning flashes. Higher values create longer gaps between flashes.
  • Duration: Sets how long each lightning flash remains visible before fading out.
  • Brightness: Controls how strongly each lightning flash brightens the rendered scene.
  • Audio Aware: Allows bass-heavy audio peaks to trigger Lightning. Use Audio Channels to choose what it listens to and Audio Bass Threshold to control sensitivity.
  • Period controls the spacing between automatic events, while Duration controls each flash.
  • Audio Aware can trigger from selected audio channels when the bass threshold is met.
  • Keep Brightness conservative on already bright maps to avoid washing out large portions of the Scene.
Preset API name Availability Variants
Hurricane hurricane FXMaster, FXMaster+ Normal, Top Down
Thunderstorm thunderstorm FXMaster, FXMaster+ Normal, Top Down

The table combines the settings available for this effect in Scene and Region contexts. Scene-only and Region-only badges identify controls limited to one context. Hover or focus an info button to see what the parameter changes on the canvas. Select it to keep the card open. Each card also includes the default, range or choices, context, availability, API key, and control type.

16 exposed parameters1 Scene-only1 Region-onlylightning API type

Hover or focus an info button to see what the parameter changes on the canvas. Select it to keep the card open. Context badges identify Scene-only and Region-only controls; unbadged parameters are available in both. Hover or focus an availability condition to highlight the parameter that controls it.

ParameterControlDefaultRange or choicesAvailability
Below Tokens
belowTokens
checkboxOffAlways
Below Tiles
belowTiles
checkboxOffAlways
Below Foreground
belowForeground
checkboxOffAlways
Levels
levelsScene only
scene-levelsAll LevelsAlways
Tint
color
color#ffffff (disabled)Always
Sound FX
soundFxEnabled
checkboxOffAlways
Sound FX Sounds
soundFxManualSoundIds
multi-selectRule default
Period
frequency
range5000100–30000 · step 100
Duration
spark_duration
range300100–2000 · step 5Always
Brightness
brightness
range1.30–4 · step 0.1Always
Audio Aware
audioAware
checkboxOffAlways
Audio Channels
audioChannels
multi-selectEnvironmentMusic, Environment, Interface
Audio Bass Threshold
audioBassThreshold
range0.750–1 · step 0.01
Darkness Activation
darknessActivationEnabled
checkboxOffAlways
Darkness Activation Range
darknessActivationRange
range-dual{"min":0,"max":1}0–1 · step 0.01
Edge Fade %
fadePercentRegion only
range00–1 · step 0.01Always

The Direct Effect API creates a separate row shown through Manage API Effects. Add a stable apiMacro_…_p or apiMacro_…_f ID when later macro calls need to update or stop the same row.

const created = await FXMASTER.api.effects.play({
filters: [{
"id": "apiMacro_wikilightning_f",
"type": "lightning",
"options": {
"color": {
"apply": false,
"value": "#ffffff"
},
"frequency": 0.5,
"spark_duration": 0.5,
"brightness": 1
}
}],
});
await FXMASTER.api.effects.filters.stop(created.filters);

For complete API behavior, scene targeting, stack ordering, and toggle groups, see the Direct Effect API guide.