Skip to content
Roi Horowitz edited this page Nov 23, 2026 · 1 revision

Map painting

Map painting is the GM's bar for making a map with Animater: painting the ground, laying roads and fences, putting down decorations, raising cliffs and hills, and picking up what you laid to move it. Everything it lays is an ordinary Animater region (or, for walls and lifted things, ordinary Foundry walls and tiles), so it reaches every screen and the rest of Animater's engines work on it: shadows, snow, rain, wind, light and breaking.

New in 4.1.0, and grown in every release since. Read from the 4.9.0 code, not tested live.

This page covers the bar and its Select, Ground, Paths, Decorate and Heights tools. Drawing walls, doors, windows, roofs and furnished rooms (the Buildings tool) and laying out a whole map from nothing (Build a map) are on Buildings.

Quick start

  1. In Animater's controls on the left, click Map painting (a paintbrush). The bar opens along the bottom of the map.
  2. Click Ground (or press 2), pick Grass and drag over the meadow. The stroke stops at the colour change, so it leaves the river alone.
  3. Click Paths (3), pick Dirt road, click a few points across the map and press Enter.
  4. Click Decorate (5), pick Oaks, then Ctrl-click Birches to paint a mixed wood. Drag where the trees go.
  5. Made a mistake? Ctrl+Z takes back the last stroke, whichever tool laid it.
  6. Press Esc or click the bar's × to put the brush away. Everything is already saved.

Opening it

The Map painting button sits in Animater's own group of scene controls, beside Build a map. Only a GM sees it. Click it again to put the brush away.

Two switches decide whether the button is there:

  • Map making tools (world, set by a GM) turns the map-making buttons on or off for the whole world. Off, the Map painting and Build a map buttons are gone. What is already painted stays exactly as it is and keeps working. New in 4.6.0.
  • Show the Map painting button (each screen) hides the button on your screen only.

The first time a world loads 4.6.0 or later, the first GM in decides the switch once. A world with a region painted by the brush or made by Floor regions keeps the tools. Any other world starts with them off, and if it already has scenes, the GM is told where to turn them back on. After that the switch is the GM's alone. Choose your immersion also sets it: the Map making and Everything starts turn it on, Animations and Combat drama turn it off.

Floor regions is separate. The experimental Floor regions button has its own switch and is not hidden by Map making tools. Changed in 4.6.3: before, turning Map making tools off hid that button too, even with its own setting ticked. See Floor Regions.

Setting Everyone (GM) My screen Choices or range What it does
Map making tools On — — The Map painting brush in the Animater controls: for drawing floors, decorations and heights onto a map. Off, its button is not there; everything already painted stays exactly as it is, and the settings for it keep working. A world that has built a map with it keeps it on. The experimental Floor regions button (Floor & world) is its own switch and is not hidden by this one.
Show the Map painting button — On — In the Animater controls: a brush for painting floors (water, grass, stone…) and decorations (rocks, trees, crates…) onto the map. A region's Decorations section can still scatter decorations.

Both are under Animater settings → Interface & performance.

The bar

The header

Along the top of the bar, left to right:

  • The tools, in the order a map is usually made: Select, Ground, Paths, Buildings, Decorate and Heights. Keys 1 to 6 switch between them, in that order. The first time you open the bar it starts on Select. After that it opens on the tool you last used.
  • Build a whole map: opens Build a map (see Buildings). The brush is put away while it works.
  • A line saying what is going on. Normally it sums up the level: "On this level: Water · Grass ×2 · 13 decorations", or "Nothing painted yet". Each tool uses it for its own news too: what is under the pointer on Ground, how many points a path has, what is picked on Select, or the smart model's progress.
  • Undo and Redo, greyed out when there is nothing to take back or put back.
  • ×: put the brush away.

Changed in 4.5.8: the line and the undo buttons now update in place, so dragging a slider while the pointer is over the map no longer sticks after one notch.

On this map

Beside the tools, a list names every part of this level the map-making tools laid: the ground under the whole map, each water, path, fence or row, furnished room, patch of decorations and floor. Click a name to pick that part up (see Select). Double-click it to rename it. Its × takes it off the map, and Ctrl+Z puts it back.

The rest of the bar

Under the header, each tool shows its choices: a row of picture tiles, then its main sliders, and More ▾ for the choices most strokes don't need. A tool with nothing more shows no More button.

Under that, one line says what a click or a drag does with this tool. The ? at its end shows every key and wheel for the tool.

The bar keeps its choices while the page is open, for you alone.

The brush

Ground, Decorate and Heights (raising ground, and ramps and bridges) all paint with one round brush. A white ring follows the pointer and shows its size.

Input What it does
Click or drag Paint
Shift-drag Rub out (the ring turns red). On Ground, only the floor picked on the bar.
Brush slider, Ctrl+wheel, or [ and ] Brush size, from a quarter of a square to 6 squares, in quarter-square steps. Usually 1.5.
Wheel Zoom the map, as usual
Right-drag Pan the map, as usual
Ctrl+Z Undo the last stroke
Ctrl+Shift+Z or Ctrl+Y Redo
Esc Put the brush away. On Select it first lets go of what is picked, and on Paths it first drops a line half drawn.
1 to 6 Switch tools

Changed in 4.5.7: the brush goes down to a quarter of a square (it stopped at half). It is for the narrow places where two zones meet. It goes no finer because the map is read at 1024 pixels along its longest side, so a smaller dab would be finer than the brush can see.

Saved as you go. Every stroke is saved when it ends. There is no save button.

One history. Undo and redo cover every tool's strokes together, the last 30 on your screen in this scene. The history is forgotten when the scene changes. While the brush is out, Foundry's own Ctrl+Z waits, so it won't undo a token move by mistake.

Keys and the bar. Keys typed into the search box go to the search. A tick box or a slider you just clicked doesn't keep the keyboard: Enter, Backspace and Esc go to the map. Changed in 4.8.0. While the brush is out, 1 to 6 switch tools instead of Foundry's macro bar. On a Mac, Cmd works in place of Ctrl.

The ring and the ghost of what the next click lays leave the map when the pointer goes over the bar. Changed in 4.5.8: they used to stay where the pointer last was, and every change on the bar drew them there again.

Select

New in 4.8.0.

Select picks up what the map-making tools laid by hand: decorations painted with the brush, paths, and what Build a map laid. It does not pick up decorations a region scatters by itself, or walls (use Buildings for those).

  • Click a decoration to pick it up. Shift-click adds another. Drag on open ground to pick everything in a box.
  • Drag what is picked to move it. It is shown moving with the pointer. Shift while dragging keeps it on the grid.
  • The round handle turns it, and the square handle sizes it. Alt while turning turns it freely.
  • Arrow keys nudge it a tenth of a square, or a whole square with Shift.

Beside what is picked, a small row of buttons offers the rest:

Button Key What it does
Mirror F Left for right. Several picked together become their mirror image.
Copy Ctrl+D A copy beside it, picked in its place.
Pick all of its kind here Ctrl+A Everything of the same kind in the same region: a whole fence, every tree of a wood.
Keep as a prefab Saves what is picked under a name.
Take off the map Delete Removes it.

Ctrl+wheel turns what is picked, and Alt+wheel makes it bigger or smaller.

Prefabs

A prefab is a group of decorations kept as they stand to each other: a furnished bedroom, a market corner. Pick the pieces, click Keep as a prefab and give it a name.

Prefabs are kept with you (your own user in this world), so they are there on every scene and no other GM's list changes. The Select tool then shows Prefab: pick one, click Set down, and click the map where it goes (Shift keeps it to the grid). Forget takes it off your list. What was set down from it stays on the maps. You can keep up to 60.

Ground

New in 4.1.0. Earlier versions called this tool Floors.

Map painting bar on the Ground tool, with floor swatches, Brush and Edges

The Ground tool, on a scene with no map picture, which is why its line says there's nothing to paint floors on. Taken on Animater 4.9.0.

Ground paints floor regions straight onto the map. It reads the level's map picture once, so the map must sit where the scene puts it (not moved, scaled or rotated in its configuration). While the tool is open, the level's floor regions show tinted in their floor's colour.

  • Pick a floor from the tiles: Water, Stone, Pebbles, Wood, Dirt, Grass, Sand, Snow, Ice, Mud, Glass, Metal, Lava, and Cave. Each tile shows the floor's own painted texture.
  • Drag. A stroke grows the region of that floor it touches, and joins any others of that floor it bridges. On open ground it makes a new region named after its floor and numbered on ("Grass 3"). It keeps off other floors' regions.
  • Shift-drag rubs out only the floor picked on the bar: rubbing out grass across a riverbank leaves the water whole. To rub out another floor, pick it first. A region rubbed out entirely is removed. Changed in 4.1.3.

Edges

Edges decides where a dab stops:

  • Colour: fills only what matches the colour where the stroke began, so water stops at its bank and grass leaves the rocks out. How alike (under More, or Alt+wheel) sets how close a colour must be.
  • Model: fills only inside the outline the smart model sees under the pointer (SAM 2.1, the same model as Floor regions' Smart selection). It traces by shape, so a stone bridge is not the pool under it and a shadowed bank is still grass.
  • Off: fills the whole ring.

The smart model. The first time anything needs it, it asks before a one-time download of about 456 MB, which the browser keeps. One yes covers Map painting and Floor regions. It runs on your computer in the background, so Foundry keeps drawing while it loads and reads the map. Without WebGPU it is slower, and the header says so. Loading it again from the browser says "Loading", not "Downloading". If it can't load, or you say no, Edges goes back to Colour.

Changed in 4.1.1: once this browser already holds the model, Ground opens on Model by itself. If you pick Edges yourself, your choice stays for the session.

What is under the pointer

Hovering the map shows exactly what the next dab would take. The header names what is under the pointer and what a dab there would do:

  • "Over: no floor yet · a dab adds Grass"
  • "Over: Grass · a dab grows it, Shift-drag rubs it out"
  • "Over: Water · Grass keeps off it (pick Water to rub it out)"

New in 4.1.2. Off the map, the header goes back to summing up the level.

The stroke shows as you paint, in the floor's colour, or in its texture as the scene will draw it when the floor will be painted.

Water

With Water picked, a Water menu sets what new water is: Still pool, River, Rapids, Waterfall or Sea. Which way it flows is set later in the region's panel (see Water).

Each kind of water is its own floor to the brush. A stroke grows only water of the kind picked, keeps off the other kinds, and rubs out only its own kind. So a waterfall painted against a lake stays a waterfall, and to rub out the lake you pick its kind. Changed in 4.5.8: before, the brush knew only one water, and a waterfall touching a lake was folded into it.

Cave

The Cave tile paints cave growth over whatever floor is there, in regions of its own, as the region panel's Cave kind does. Holds picks what it is (with its colour and Stage where it has them). Under More: Size, How many, and Any growth for the rest (glowing fungus, crystals, mist on the floor, cobwebs, wet walls, steam vents, bad air). See Caves and Underground.

More

Choice What it does
How alike How close a colour must be to count, for Edges: Colour. 5 to 80, usually 32. Also Alt+wheel.
Texture Whether new regions paint their floor: As the scene says, Paint it or Don't paint it.
Style The floor's texture pattern, when it paints.
Soft edge How far a new region's painted texture fades past its line, 0 to 3 squares, usually 1. 0 is a hard edge.
Over water For a floor standing over water: a deck, a jetty, a bridge. Not offered for water, lava or Cave.
Read the whole map… Opens the Floor regions window. Shown only while Experimental: floor regions from the map is on.

Regions painted here are ordinary floor regions. The Floor regions window lists them, and the region's right-click panel changes them. What they do in play is on Region Steps and Painted Floors.

Paths

New in 4.8.0.

Map painting bar on the Paths tool, with Line, Area, Box, Whole map and the path kinds

The Paths tool. Taken on Animater 4.9.0.

Paths lays a line as what it is. Each path is saved as a region of its own, so Foundry's Region tools can drag a whole road or fence somewhere else. Paths read nothing from the map's picture, so they work on a scene with no map at all.

Draw picks what a click does: Line, Area, Box, Whole map or Edit a path.

Line

Click along the map point by point, or drag to draw freehand. Enter or a double-click lays it. Backspace takes the last point back, Esc starts again, and Shift puts a point on the grid. The line shows as wide as it will lie.

Sort Kinds
Ground Dirt road, Forest track, Cobbled street, Gravel path, Boardwalk or bridge (stands over water)
Water Stream, River (moving water)
Laid Fence, Stake fence, Cart rails, Pier, Hedge, Stepping stones, Row of rocks, Paving
  • A ground or water path is a painted floor as wide as Width says (half a square to 8 squares), following the line with a soft edge.
  • A laid path is its decoration set piece after piece along the line, each turned to it. A fence, stake fence, cart rails or pier is set end on end along each straight leg and turns only at your corners. Each piece is turned back by the lean its own picture was painted with, so the run lines up. Size sets how big each piece is (50% to 200%).
  • Smooth (on by default) rounds the corners off, so a road winds and a hedge curves. Off, it turns sharply where you clicked. Fences, stake fences, rails and piers are always straight between corners.
  • Blocks movement, for Fence and Stake fence: lays a wall along the fence that stops movement and nothing else. Sight, light and sound pass over it. The wall keeps in step as the fence is moved or taken away.

Ground filled in

Area, Box and Whole map fill ground instead of laying a line. Pick any floor from the tiles, its Style, and its Soft edge.

  • Area: click round its outline. Enter or a double-click fills it. Backspace takes a point back.
  • Box: drag from corner to corner.
  • Whole map: the button Lay … under the whole map lays that floor under all of it. Laying it again replaces the last one.

Edit a path

Click a road, stream or fence laid here to take hold of its points. Drag a point to move it, click the line between two to add one, and Backspace takes away the point you last touched. Enter lays the path again along its new line, and Esc leaves it as it was. Paths laid before 4.8.0 don't remember how they were drawn and must be drawn again.

Decorate

Decorate has two modes: Lay decorations paints Animater's own decorations, and Lift from map cuts a thing out of the map's picture.

Lay decorations

This is the decorations brush, described in full on Decorations: what each kind is, and how decorations take shadows, light, snow, wind and breaking. In short:

Map painting bar on the Decorate tool, with the place, search and kind thumbnails

The Decorate tool laying decorations, with the Outdoors kinds. Taken on Animater 4.9.0.

  • The place (a drop-down): Outdoors, Town, Indoors, Waterside or Underground. Each offers its own kinds.
  • Search kinds… hides the kinds that don't match. "tree" finds every tree.
  • The kinds, a small picture each. A click picks one kind. Ctrl-click or Shift-click adds a kind to the mix, or takes it out again, and the brush then lays a mix of them: a wood of oak and birch, a market's crates and barrels. Up to 8 at once. New in 4.8.0.
  • Brush and Density, and under More: Decoration size, Decoration height, Rotation and the kind's break options.

A stroke paints into the region it starts in, if that region has decorations, or makes a new region round the stroke on open ground. It is saved when you let go.

New in 4.8.0: 24 kinds that were already painted but never offered on the bar are offered: Carts, Signposts, Hitching posts, Water pumps, Washing lines, Kennels, Firewood stacks, Chopping blocks, Beehives, Rubbish heaps, Weapon racks, Candles, Chains, Bird nests, Burrows, Anthills, Carcasses, Feathers, Tracks, Old bloodstains, Mine carts, Ore veins, Hanging roots and Drip spots. Decorations lists which place offers each.

Lift from map

New in 4.8.4.

Map painting bar on Lift from map, with the It stands choices

Lift from map, with It stands set to Waist. Taken on Animater 4.9.0.

A battlemap is one picture: its bushes, rocks and barrels are paint on the same sheet as the grass. Lift from map turns one of them into a tile of its own.

  1. On Decorate, switch to Lift from map.
  2. Choose how it stands (below).
  3. Click the thing on the map.

It is outlined, cut out of the map's picture, and set on the map as a tile exactly over where it was painted. As a tile, Animater's engines work on it: it throws a shadow that turns with the sun, takes snow and rain, and can be given a material and broken in Tile configuration (see Breakable Props and Sun Moon and Shadows).

It stands says how tall it is, which is how long its shadow is: Flat (no shadow, for a hollow, a stain or a rug), Low, Waist, Tall, A bush or A tree.

A bush or a tree is lifted as a tree tile, not an object. Kind says which: Broadleaf, Pine, Spruce, Palm, Birch, Blossom, Bare or Willow. Its shade is dappled in that kind's pattern with moving flecks of sun, and its crown sways with the wind. A bush stands 6 ft and a tree 25 ft (on a 5 ft grid). Its leaves and height can be changed later in Tile configuration → Animater. Changed in 4.8.5: before, there was one A tree choice, which made a taller object with a hard shadow. A tile lifted that way in 4.8.4 stays an object: set its Sunlight to Tree in Tile configuration, or take it back and lift it again.

Never a great part of the map. A lifted thing may cover at most 12% of the map. If the model's best answer is bigger, a smaller one is used, or nothing is lifted. So a click on grass no longer lifts the whole meadow. Changed in 4.9.0. A click that finds nothing says so: click nearer the middle of the thing.

Things to know:

  • The map's picture isn't changed. The thing stays painted underneath. Move the tile away and its painted copy shows.
  • Ctrl+Z takes a lifted thing back off the map, and Ctrl+Shift+Z lifts it again.
  • The cut pictures are saved as WebP files in the world's own folder, animater-lifted. Taking a lift back doesn't delete its file.
  • The outline comes from the smart model, the same one as Ground's Edges: Model. It asks before its one-time download and reads the map on your computer. While it is still loading, a click says so: click the thing again in a moment.
  • The level needs a map picture to lift from.

Heights

New in 4.2.0. Read from the code, not tested live.

Map painting bar on the Heights tool, with Raise, Crossing, Brush and Edges

The Heights tool. Taken on Animater 4.9.0.

Heights paints raised ground (clifftops, mesas, hills) and the ways between heights. Each raised part and each crossing is a region of its own, so it reaches every screen. Walking tokens take the height of the ground they step onto.

Raise

Raise paints raised ground with the brush. Edges keeps it to what is under the pointer, as on Ground, and How alike is under More.

  • A stroke on a raised part grows it. On lower ground it raises a new part a step above it, joining any part of that height it touches.
  • The plain wheel over a raised part raises or lowers it, a grid's distance at a time (usually 5 ft), up to 500.
  • Shift-drag rubs out.
  • Alt-drag along a raised part's edge opens that stretch: no cliff and no wall there, the ground rising as a slope does. Alt+Shift-drag closes it again. So a part can be a cliff on one side only.

Crossing

Crossing lays a way between heights. Pick Ramp, Ladder, Rope or Bridge, then drag:

  • A ramp, ladder or rope: drag from the lower ground up across a raised edge. A ramp is as wide as the brush.
  • A bridge: drag from one raised part to another. It is as wide as the brush, and walked only by those already at its height. Tokens can walk under it.

Shift-click removes a crossing. Tokens climb crossings step by step. Ladders and ropes reach from the rim to the foot of the face, with a rung a foot.

The scene's choices (More)

These three are kept on the scene, not on the bar:

Tick Usually What it does
Cliff edges block movement On Walls along the clifftops and the foot of each rock face, where no crossing meets them. They stop movement, not sight, so nothing walks up a cliff or onto its face.
Draw raised ground On An inked rim round each raised part, a painted cliff face below it, its shadow, and its ladders, ropes and bridges.
Top-down cliffs Off For a map drawn straight from above: each cliff shows as an inked rim with a stepped band of rock, a ring every 5 ft, instead of a rock face hanging down the map. New in 4.2.1.

A raised part's panel

Right-click a raised part for its panel (see Region Steps and Painted Floors). It has:

  • Height: typed, or stepped with − and +.
  • Edge: Cliff (a sheer drop drawn as rock, with walls) or Hill (a slope on every side, walked up and down, no walls, its flank shaded and crossed by contour lines). Hill is new in 4.2.1.
  • Cliff look, for a cliff: Rock, Earth or None (still raised, nothing drawn).
  • Cliff walls (Block or Open) and Cliff view (Side or Top-down): the same scene choices as the ticks above.
  • Add crossing: opens Map painting on Heights with that crossing picked.

In the world

  • Sight. From below a clifftop or hilltop you can't see past its rim. Standing as high or higher, you can. From a bridge you see along it. Hills, crossings, and parts with their cliff walls off still hide what lies past them without blocking movement. New in 4.2.1.
  • Light over short walls. A light reaches raised ground and bridge decks past walls no taller than they are. Walls count their height from the ground they stand on.
  • Shadows. A cliff throws its shadow away from the sun, longer when the sun is low, and shorter over lower raised ground. Faces turned from the sun lie in shade. Crossings shadow from their own planks, rails, rungs and rope. A token on a bridge or a raised top keeps its shadow there.
  • Weather. Cliffs, bridges, ladders and ropes take the ground's lying snow and wetness: wet rock and wood darker, snow on rims, ledges, planks and rungs. See Snow and Wet Ground.
  • Wind. Bridges and climbing ropes sway with the scene's wind. Ladders stay put.
  • Animals on foot never step up or down a cliff or onto its face. See Wildlife and Town Life.
  • PF2e Visioner. With Visioner active, each clifftop wall is also a Visioner ledge at the top's height, so creatures on either side get cover by how much the edge hides. Only the rims count, not the foot of the face. See Integrations.

Your own art

New in 4.8.0.

Animater can lay pictures you own (from an asset pack, say) and still work on them: it reads from the picture what its engines need, such as its outline for shadows, where it shines, and whether it is something that grows. Nothing of anyone's art is shipped with Animater or copied into it. A picture is read from wherever you keep it.

The Yours row

Wherever the bar offers Animater's own materials (decorations on Decorate, ground on Paths, and walls, doors, windows and roofs on Buildings), a Yours row follows them with the pictures you have picked, each with its own thumbnail. Click one to use it. Right-click one to take it off the row: what is already on maps keeps it.

The row is kept with you (your user flags), up to 16 pictures of each sort, newest first. At its end:

  • Pick in Nexus opens the FA Nexus asset browser on the right tab. Click an asset there and it joins the row instead of being set down on the map. Esc: not now. This button shows only while the FA Nexus module is active. FA Nexus is optional.
  • From a file opens Foundry's file browser for a picture kept anywhere else.

The choice beside each picture

A picture can't say what it is made of or how it behaves, so one choice beside it says so. It starts guessed from the picture's name, and you can change it:

Where Choice What it says
Decorate Stands: Flat, Low, Waist, Tall How tall it stands, which is how long its shadow is.
Paths Laid as: one of the ground paths Which of our roads it is laid as, which gives its usual width and how soft its edge is.
Buildings: walls and roofs Weathers as Which of our materials it weathers like (how moss, snow and the years sit on it).
Buildings: windows Opens as Which of our windows it behaves as: whether it opens, and what comes through it.

See Buildings for walls, doors, windows and roofs in your own pictures.

What gets refused

A piece that can't work is refused, and the message says why:

  • A wall wants a long strip of wall (its name usually ends "Path"). A corner, joint or end piece is refused, because the corners are cut here at any angle. So is a picture less than three times as long as it is wide.
  • A door wants the leaf, seen from above: not its frame, a broken door or a trapdoor. A picture whose name doesn't say door or gate is refused.
  • A window wants the window itself: not its sill or frame alone, or a broken one.
  • A roof wants roofing: a tile, slate, shingle or thatch texture, square rather than a strip.
  • Ground wants a texture that repeats: not a strip, and not one small thing (lay that as a decoration).
  • An asset locked in your asset browser is refused. Pick one you have.

Decorations take any picture.

Pictures as decorations

Pick one of your pictures on Decorate and the brush lays it like any other decoration: its ghost under the pointer, its size and rotation, picked up, moved, mirrored and kept in prefabs with Select. It is laid at the size it was painted for (from FA Nexus, its longer side at 200 pixels to the square), with what a painted decoration gets: shadows, glints, snow, rain and the season.

Roads and ground from your textures

On Paths, a ground texture of yours can be laid as a road, or as ground filled in. The picture takes the place of the painted tile for that floor and nothing else: the shape, the width, the soft edge and the light on it stay as they were.

Tiles placed with other tools

Tiles you place with any tool can stand as objects, with shadows from the sun and from lamps, snow and rain, seasons and glints. That is a scene switch, covered on Sun Moon and Shadows.

See also

Technical details

For developers and the curious. Read from the 4.9.0 code, not run or measured.

Source. scripts/shell/map-painting.mjs is the brush itself: the pointer, the ghost, the undo stack and the writes to the scene (moved out of main.mjs in 4.7.0). scripts/ui/decor-brush-bar.mjs is the bar, which only holds the choices. The thinking is in the engines: engines/regions/floor-brush.mjs (Ground strokes and the hover line), engines/regions/heights.mjs, height-look.mjs, height-crossings.mjs, crossing-sway.mjs and light-spill.mjs (Heights), engines/mapbuild/path-lay.mjs (Paths), decor-select.mjs (Select, prefabs and the parts list), map-lift.mjs (Lift from map) and own-art.mjs (Yours). The control button is registered in scripts/main.mjs under getSceneControlButtons, for GMs only.

Switches. The button shows while toolDecorate (client) and mapMaking (world) are both on. The first active GM to load a world with mapMakingAsked false sets it true, and sets mapMaking false unless some scene has a region with flags.animater.decor or flags.animater.floor.

Undo. One stack per screen per scene, 30 steps, shared by every tool. A lift is stored as a tile step with the tile's data, so undo deletes the tile and redo creates it again.

What it writes. Ground, Paths, Heights and decorations are regions with Animater flags: floor for floors, decor for decorations (up to 600 painted entries a region), height and openEdges for raised parts, ramp for crossings, and path, pathWide, pathSmooth and the drawn line for a path. A fence path that blocks movement carries blocks: true and gets movement-only walls. Ground under the whole map carries wholeMap: true. Cliff walls are marked flags.animater.cliffOf. With PF2e Visioner active, clifftop walls also carry Visioner's ledgeElevation. The scene's Heights ticks are flags.animater.cliffWalls, heightShadows and cliffView (side or topdown).

Kept with the GM. Your own pictures are in your user flag animater.ownArt (16 of each sort: wall, door, roof, window, decor, ground). Prefabs are in animater.prefabs (up to 60).

Lift from map. The map is read at up to 1024 pixels on its long side. The model is asked at the click, and of its answers the one it scores highest that covers between 0.03% and 12% of the map is kept. The cut is taken from the map's full picture over that box plus a small margin, at most 2048 pixels a side, with a soft edge read smoothly from the coarser mask. It is uploaded as WebP (quality 0.95) to worlds/<world id>/animater-lifted/. The tile gets flags.animater.sunlight prop (or tree with sunTree for a bush or a tree), sunHeight in the scene's units (Low 0.3, Waist 0.6, Tall 1, A bush 1.2, A tree 5 squares) and lifted: true.

The smart model is shared with Floor regions: one worker per page, one download, and the consent kept in localStorage under animater.floorRegions.

Clone this wiki locally