Skip to content

Lightning Bolts

Environmental reference
FXMaster+Filter effectAPI type: lightningbolts
Preview shows Lightning Bolts with the Horizontal Lightning Mode enabled

Animated horizontal or top-down lightning bolts with branching and flash synchronization.

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 lightningbolts
Exposed parameters 32
  • Lightning Mode: Selects whether the effect creates horizontal bolts, top-down strikes, or both supported presentations.
  • Trigger Chance: Controls the chance that a scheduled lightning event actually produces a visible bolt.
  • Period: Sets the approximate time between automatic lightning events. Higher values create longer gaps.
  • Branchiness: Controls how many secondary branches split away from the main bolt.
  • Sync with Lightning Flash: Triggers the core Lightning flash at the same time as a bolt so the scene brightens with the strike.
  • Audio Aware: Allows bass-heavy audio peaks to trigger Lightning Bolts. Use Audio Channels to choose what it listens to and Audio Bass Threshold to control sensitivity.
  • Above Darkness: Presents the luminous contribution from Lightning Bolts above Foundry scene darkness. This option is available only on compatible luminous filters.
  • Lightning Mode selects the bolt presentation; Top Down controls become available for overhead strikes.
  • Trigger Chance and Period control occurrence, while Line Width, Branchiness, Bolt Length, Jitter, Glow, and Brightness shape each bolt.
  • Sync with Lightning Flash coordinates the bolt with the core Lightning filter.
  • Above Darkness presents the luminous bolt contribution above Foundry scene darkness.
Preset API name Availability Variants
Hurricane hurricane FXMaster+ Normal, Top Down
Thunderstorm thunderstorm 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.

32 exposed parameters1 Scene-only1 Region-onlylightningbolts 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
checkboxOff—Always
Below Tiles
belowTiles
checkboxOff—Always
Below Foreground
belowForeground
checkboxOff—Always
Levels
levelsScene only
scene-levelsAll Levels—Always
Tint
color
color#d6f2ff (enabled)—Always
Sound FX
soundFxEnabled
checkboxOff—Always
Sound FX Sounds
soundFxManualSoundIds
multi-selectRule default—
Lightning Mode
mode
multi-selectHorizontalHorizontal, Top Down, MixedAlways
Sync with Lightning Flash
syncFlash
checkboxOn—Always
Trigger Chance
triggerChance
range10–1 · step 0.05
Variable Bolt Count
topDownBoltsVariable
checkboxOn—
Line Width
thickness
range2.21–3 · step 0.1
Top Down Scale
topDownScale
range0.150.1–1 · step 0.01
Top Down Bolts
topDownBolts
range51–5 · step 1
Branchiness
branches
range10–1 · step 0.01Always
Bolt Length
length
range0.50.1–1 · step 0.01Always
Speed
speed
range0.280.01–1 · step 0.01Always
Jitter
jitter
range0.650.05–1 · step 0.01Always
Brightness
brightness
range1.30–4 · step 0.1Always
Opacity
opacity
range10–1 · step 0.05Always
Glow
glow
range0.650–1 · step 0.01Always
Period
frequency
range5000100–30000 · step 100
Duration
spark_duration
range52080–5000 · step 5Always
Audio Aware
audioAware
checkboxOff—Always
Audio Channels
audioChannels
multi-selectEnvironmentMusic, Environment, Interface
Audio Bass Threshold
audioBassThreshold
range0.750–1 · step 0.01
Above Darkness
aboveDarkness
checkboxOff—Always
Directional Movement
directionalMovement
checkboxOff—
Direction
direction
range00–360 · step 5
Darkness Activation
darknessActivationEnabled
checkboxOff—Always
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_wikilightningbolts_f",
"type": "lightningbolts",
"options": {
"mode": "side",
"thickness": 0.5,
"branches": 0.5,
"brightness": 0.8,
"frequency": 0.5
}
}],
});
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.