Skip to content

Using Presets

Presets are named particle/filter compositions with optional normal and Top Down versions. They provide a stable entry point without requiring every effect option to be repeated in a macro.

await FXMASTER.api.presets.play("blizzard");

Playing the same preset again updates its API-managed rows rather than affecting Scene effects created through the management windows.

await FXMASTER.api.presets.stop("blizzard");

Only rows created for that named preset are removed.

const enabled = await FXMASTER.api.presets.toggle("blizzard", {
topDown: true
});

The return value is the new state: true when enabled and false when disabled.

switch() stops all presets created through the Preset API on the target Scene before applying the requested name.

await FXMASTER.api.presets.switch("gravewind", {
direction: "west",
soundFx: true
});

Use a falsy name to clear Preset API rows without applying a replacement:

await FXMASTER.api.presets.switch(null);
Option Accepted value
topDown Boolean
direction Compass string or numeric degrees
color Hex color
speed / density very-low, low, medium, high, very-high, or a number
belowTokens / belowTiles / belowForeground Boolean
background Boolean
tokenTrails Boolean
splash Boolean
darknessActivationEnabled Boolean
darknessActivationMin / Max Number from 0 to 1
soundFx Boolean; requires supported FXMaster+ rules
windPainting Boolean
levels Level id/name or an array
scene Scene document or Scene UUID
silent Boolean
skipFading Boolean

Some preset families have a Free definition and an enhanced FXMaster+ definition. Resolution considers the active module tier and whether every referenced effect type is registered.

Use listValid() before exposing a preset in another module’s interface:

const validPresets = new Set(
FXMASTER.api.presets.listValid({ topDown: true })
);

Calendaria uses the FXMaster Presets API to activate named FXMaster presets for its Weather system. It’s a practical (and impressive) example of a module using the presets API directly instead of manually building FXMaster effects from scratch.

Open the Preset Catalog to browse each preset family in one card. Free and FXMaster+ versions use separate sections so their effect lists and Top Down availability remain clear.

For every override and return behavior, open the Preset API reference.