Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ New:
- Control the output window by OSC: `/mapmap/output/mode` (`hidden`, `window` or `screen`), `/mapmap/output/screen` (a name, or a number from 1) and `/mapmap/output/window` (`x y width height`).
- Translate MapMap into Arabic, laid out from right to left with numbers written with the digits 0 to 9, into Hindi and into Russian: choose them in Preferences > Interface > Language, or with `--lang ar`, `hi` or `ru`. No speaker of these languages has read them yet.
- See the scene from the projector, with a camera placed next to it: Tools > Auto-Mapping covers the screen of the projector with the output, projects a countdown, then black and white stripes that the camera films, about 15 seconds in all. The scene seen from the projector then shows under the shapes of the output editor, with in red what the camera did not see, to place the shapes on it by hand. Tools > Show Auto-Mapping Image hides it, Tools > Clear Auto-Mapping Image forgets it; it is never saved, and goes with the project. No image of the camera is written to the disk, unless asked with `--auto-mapping-save-images <folder>`. `--auto-mapping-simulation` films a computed scene instead, to try it without a camera or a projector. Placing shapes on the flat faces found comes in a later version.
- Put layers in groups, which fold in the list of layers and show, hide, lock, put in solo or fade their layers together. Edit > Group (Ctrl+G, Cmd+G on macOS) puts the selected layers in a new group named after them, Ungroup (Ctrl+Shift+G) takes them out, and New Group adds an empty one. Drag a layer onto a group to put it in, or between two rows to place it there; drag a group to move it with its layers. The eye, solo, lock and opacity of a group add to those of its layers, and can be linked to a key or a MIDI control. Deleting a group asks first, then deletes its layers. Each of these is one step to undo. The project keeps the groups and their fold; a project without groups is written as before. OSC reaches groups at `/mapmap/group/...` and puts a layer in one with `/mapmap/layer/group`; the MCP tools `list_groups`, `create_group` and `delete_group` manage them.

Improvements:

Expand Down Expand Up @@ -99,6 +100,9 @@ Fix:
- Fix a video racing through its frames at a speed of zero or below: it now stops. A negative speed is kept in the project, for when videos can play backwards again.
- Fix a vertex staying selected in one editor after selecting a vertex in the other.
- Fix the desktop showing through the editors under Wayland, where a translucent image is drawn, when a dialog opens.
- Fix MapMap asking to save on quit when the project had not changed (#605).
- Fix `/mapmap/layer/depth` and the MCP tool `set_property` on `depth`, which changed the number of a layer without moving it in the stack.
- Fix a layer dragged to another row of the list of layers, which could not be undone.

## 1.0.0-beta.1 - 2026-11-23

Expand Down
10 changes: 9 additions & 1 deletion docs/informations/keyboard-shortcuts.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</tr>
<tr>
<td><kbd>Delete</kbd></td>
<td>Delete layer</td>
<td>Delete layer, or the selected group and its layers, after asking</td>
</tr>
<tr>
<td><kbd>F2</kbd></td>
Expand Down Expand Up @@ -117,6 +117,14 @@
<td><kbd>End</kbd></td>
<td>Lower layer to bottom</td>
</tr>
<tr>
<td><kbd>Ctrl</kbd> + <kbd>G</kbd></td>
<td>Put the selected layers in a new group</td>
</tr>
<tr>
<td><kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>G</kbd></td>
<td>Ungroup: the layers stay, the group goes</td>
</tr>
</tbody>
</table>
</div>
Expand Down
4 changes: 3 additions & 1 deletion docs/informations/mapmap-keyboard-shortcuts.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
| <kbd>Ctrl</kbd> + <kbd>Z</kbd> | Undo |
| <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Z</kbd> | Redo |
| <kbd>Ctrl</kbd> + <kbd>D</kbd> | Duplicate layer |
| <kbd>Delete</kbd> | Delete layer |
| <kbd>Delete</kbd> | Delete layer, or the selected group and its layers, after asking |
| <kbd>F2</kbd> | Rename layer |
| <kbd>H</kbd> | Flip horizontally (in the input view: flip the image inside the layer) |
| <kbd>V</kbd> | Flip vertically (in the input view: flip the image inside the layer) |
Expand All @@ -32,6 +32,8 @@
| <kbd>Page Down</kbd> | Lower layer |
| <kbd>Home</kbd> | Raise layer to top |
| <kbd>End</kbd> | Lower layer to bottom |
| <kbd>Ctrl</kbd> + <kbd>G</kbd> | Put the selected layers in a new group |
| <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>G</kbd> | Ungroup: the layers stay, the group goes |

| View | |
| --- | --- |
Expand Down
23 changes: 19 additions & 4 deletions docs/informations/osc.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
General rules:

- Every address starts with `/mapmap`.
- The first argument selects the source or the layer: its id (an integer), or a pattern matched against names (a string).
- The first argument selects the source, the layer or the group: its id (an integer), or a pattern matched against names (a string).
- On/off properties such as *solo*, *visible* and *locked* are set using 1 (on) or 0 (off).
- *opacity* and *volume* are real values in the [0, 1] range.
- "mapping" is still accepted in place of "layer". The former "paint" addresses are now "source" addresses.
Expand Down Expand Up @@ -58,19 +58,34 @@ Adjust opacity: `/mapmap/layer/opacity ,if <id> <opacity>`
Set visibility status: `/mapmap/layer/visible ,ii <id> <visible>`
Set solo status: `/mapmap/layer/solo ,ii <id> <solo>`
Set lock status: `/mapmap/layer/locked ,ii <id> <locked>`
Adjust depth (layer order): `/mapmap/layer/depth ,ii <id> <depth>`
Move to a row of the stack, from 0 at the top (past the bottom, to the bottom): `/mapmap/layer/depth ,ii <id> <depth>`
Move so the centre of the layer is at (x, y): `/mapmap/layer/move/xy ,iff <id> <x> <y>`
Move by (dx, dy): `/mapmap/layer/translate/xy ,iff <id> <dx> <dy>`
Move a vertex of the output shape: `/mapmap/layer/vertex/xy ,iiff <id> <index> <x> <y>`
Move a vertex of the input shape: `/mapmap/layer/vertex/source/xy ,iiff <id> <index> <x> <y>`
Flip the shape: `/mapmap/layer/flip/horizontal ,i <id>` (or `/vertical`)
Rotate the shape by a quarter or half turn: `/mapmap/layer/rotate/cw ,i <id>` (or `/ccw`, `/180`)
Flip the image inside the shape, without moving it: `/mapmap/layer/flip/source/horizontal ,i <id>` (or `/vertical`)
Rotate the image inside the shape, without moving it: `/mapmap/layer/rotate/source/cw ,i <id>` (or `/ccw`, `/180`)
Rotate the image inside the shape, without moving it: `/mapmap/layer/rotate/source/cw ,i <id>` (or `/ccw`, `/180`)
Put a layer in a group, or take it out of its group with 0: `/mapmap/layer/group ,ii <id> <group id>`

A layer put in a group moves next to the other layers of the group, on top of them. Taken out of its group, it goes just above the group. Moving a layer of a group, by its depth or with the MCP tool `move_layer`, keeps it in its group; a layer in no group moves over a whole group, never into it.

## Groups

A group gathers layers that follow one another in the stack. Its state adds to that of each of its layers: a layer is shown when its eye and that of its group are open; a group in solo puts its layers in solo; a locked group locks its layers; the opacity of a layer is multiplied by that of its group.

Rename: `/mapmap/group/name ,is <id> <name>`
Adjust opacity: `/mapmap/group/opacity ,if <id> <opacity>`
Set visibility status: `/mapmap/group/visible ,ii <id> <visible>`
Set solo status: `/mapmap/group/solo ,ii <id> <solo>`
Set lock status: `/mapmap/group/locked ,ii <id> <locked>`

Groups are created and deleted with the MCP tools `create_group` and `delete_group`; `list_groups` gives their ids and the ids of their layers.

## Settings by path

Every setting of a source or a layer can also be written at an address that follows its path: `/mapmap/source/<id>/<path>` or `/mapmap/layer/<id>/<path>`. The source or the layer is given by its id, in the address; every argument is part of the value. A value outside the range of the setting is clamped to it: an opacity of 1.5 becomes 1. A value of the wrong type, such as an invalid color, or a text other than true, false, 1 or 0 for a boolean, is refused with a warning. A boolean takes any finite number: 0 is false, any other number true, like the 127 that controllers send for "on"; a number that is not finite is refused.
Every setting of a source, a layer or a group can also be written at an address that follows its path: `/mapmap/source/<id>/<path>`, `/mapmap/layer/<id>/<path>` or `/mapmap/group/<id>/<path>`. The element is given by its id, in the address; every argument is part of the value. A value outside the range of the setting is clamped to it: an opacity of 1.5 becomes 1. A value of the wrong type, such as an invalid color, or a text other than true, false, 1 or 0 for a boolean, is refused with a warning. A boolean takes any finite number: 0 is false, any other number true, like the 127 that controllers send for "on"; a number that is not finite is refused.

Adjust the opacity of layer 3: `/mapmap/layer/3/opacity ,f 0.5`
Adjust the color of source 2: `/mapmap/source/2/color ,s "#ff0000"`
Expand Down
34 changes: 34 additions & 0 deletions docs/project-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,40 @@ A source or a layer may have an `effects` array: the effects put on it, in order

An effect of a type this version does not know is kept as it was read, written back, and not drawn: the image passes unchanged. An entry that is not an object or has no type is skipped, with a warning; `effects` that is not an array is skipped as a whole.

### Groups

A project may have a `groups` array at the top of the file: the groups of layers, from the top of the stack. It is written only when there is at least one group, and a layer has a `group_id` only when it is in a group, so a project without groups keeps the same bytes. The `layers` array does not change: the layers of a group follow one another in it.

```json
"groups": [
{
"collapsed": false,
"depth": 0,
"id": 2,
"locked": false,
"name": "Camion",
"opacity": 1,
"solo": false,
"type": "mapmap:group",
"visible": false
}
],
"layers": [
{ "id": 1, "group_id": 2, "name": "Camion cabine", … },
{ "id": 4, "group_id": 2, "name": "Camion roue", … },
{ "id": 6, "name": "Maison", … }
]
```

- `id` is unique among the groups; groups have ids of their own, as sources and layers. Their settings are reached at `/mapmap/group/<id>/<setting>` by OSC, with the kind `group` by MCP, and with the element `group` by links.
- `visible`, `solo`, `locked` and `opacity` add to those of each of its layers: a layer is shown when its eye and that of its group are open; it is in solo when it or its group is; it is locked when it or its group is, and so are its shapes, whose own `locked` is written so; its opacity is multiplied by that of its group.
- `depth` is the number of layers above the group. A group takes the place of its topmost layer: `depth` only places a group without layers.
- `collapsed` says whether the group is folded in the list of layers, its layers out of sight. Without it, the group is unfolded.
- A group without layers is kept and written.
- Groups do not contain groups.

A layer whose `group_id` names no group of the project stays in no group, with a warning. A group without an id, or with the id of another one, is skipped, with a warning. A version of MapMap without groups opens the layers in the same order, in no group, and keeps `groups` and the `group_id` of each layer when it saves the project (1.0.0-beta.2 and earlier lose `groups`).

### Links

A project may have a `links` array: what its triggers, such as the keys of the computer keyboard, do to its settings. It is written only when the project has at least one link, so a project without links keeps the same bytes.
Expand Down
Loading
Loading