Docs

Modules & plugins

Modules extend the studio without touching its core. They plug into fixed extension points and load from modules/<id>/ in the studio folder.

PLUGINS.md in the studio folder explains how to write one.

What a module can add

A module can add four kinds of things.

Assistant tools

These are functions the studio assistant can call.

  • A tool that spends GPU time or credits always asks you on its own card first. Examples are a Wan animation or a module's own renders.
  • An approved Wan animation goes into the Render queue, like Animate now.

Scenario presets

These are script styles in the Style picker of the AI draft panel.

Editor panels

A module can add a panel behind Modules on the tool rail. The panel is declared by the module, not coded into the studio.

  • Panels number scenes the way the filmstrip does, whatever order the scenes were made in. Examples: "Map & Battle — scene 4", "Copy map from scene 3".
  • A long list, such as a big topic bank or many proposals, shows its first few buttons and Show N more for the rest, with a filter. Nothing is cut off.
  • A panel's counts match the studio's own. For example, a topic bank's unused topics are the number the Topics tab shows.
  • A panel button that starts a render keeps the panel fresh until the render is done. So a button the module hides during the render comes back by itself.

Art Director lenses

A lens teaches the Art Director its visual vocabulary.

  • The lens's instructions join the Art Director's prompt.
  • Its notes carry the module badge.
  • An optional tool binding makes the note's Apply run the module's own action. It uses the same approval flow as panel buttons.

The Map & Battle panel

Map & Battle is a module panel that paints maps for scenes. This section describes how it behaves.

Planning a new map

A scene with no map yet shows a short brief instead of a map.

  • Kind of map: Route A to B, Last known route, Campaign march, Battle, Siege, At sea, Territory over time or Free.
  • What should this map show?: describe the map, or click Draft to write it from the scene's narration and its neighbours.
  • Map look: Golden parchment, Expedition chart or Campaign atlas. The channel's own look is marked.
  • Build map with the assistant sends the brief to the assistant as your message. It finds the places and asks before painting the map, which costs an image.

A channel sets its defaults with mapKind and mapStyle in its channel.json.

How the map is drawn

  • The map is painted on the real geography around the scene's places.
  • A route across an ocean or a continent gets a wide (landscape) map that the camera follows along. So the far north never swallows the sheet.
  • A saved route must put each named place where it really is, and end on a named place.
  • A journey there and back is drawn as two lines with a stop between.

Setting the route

  • Click Set route — click waypoints, then click on the map to add points.
  • New points go before the destination, never after it.
  • Drag a point to move it.

Snake timing

Snake timing sets when the route line moves. It appears on map scenes only, and shows the scene as a bar with the spoken words under it.

  1. Drag the first handle to when the route line sets off.
  2. Drag the second handle to when it reaches the destination. After that, the map holds on the destination until the scene ends.
  3. Click Save timing. This also fits the clip to the scene's length.
  4. Click Render map clips to see it.

Auto proposes a start at once and an arrival as the voice says the destination's name. If the name is not spoken, the arrival is at three quarters of the scene.

Word positions are estimated from the text until the reel has been rendered once.

Finished map renders

  • A finished map render attaches itself. The clip lands on its scene and in the scene's background library (Map v1, Map v2…).
  • The open reel reloads to show it, even when the assistant's turn ended before the render did.
  • The Attach rendered clips to their scenes button is hidden during a render and comes back by itself afterwards.
  • Attach stays for a render that finished while the studio restarted. It reloads the editor too.
  • When the assistant uses a finished map as a scene's still picture, the scene's previous picture stays in its background library. It shows as Image v1 · before map next to the map (Map v1), so Gallery can switch back.

Built in: Wan animation

Wan animation (modules/wan-animate) comes with every install. It is what Animate and the Render queue run.

  • It renders on your GPU through ComfyUI (npm run setup:comfyui) or on Replicate, whichever Settings › Motion clips says.
  • Leave it in place. Updates replace it with the current version.

Safety

These rules keep modules from changing or breaking the studio without you.

  • The assistant can write a module only with Developer mode on (Settings › Advanced).
  • Even then, it writes only after you approve the card that shows the files it wants to write.
  • A broken module never takes the app down. Its card on the Modules page turns red with failed to load and the error itself.
  • Updates never touch modules/.

Hand-off: the assistant asks you to click

Some module steps need your click, such as placing points or an outline on a map, or picking among images.

  1. The assistant opens the module's panel for you, often straight into the picker.
  2. It says what to click and ends its turn.
  3. When you click Done, the result goes back to the assistant as a [studio] … message.
  4. The assistant continues the workflow on its own. You never have to re-explain where you were.

The same happens when a background job the assistant started finishes, such as a render or a map generation. A render you start yourself (Animate now, the Render queue) only tells you when it is done. It does not start the assistant.