Projects
Project files
A Ligamen project is one file with the extension .ligamen. It holds the whole skeleton in the Spine-compatible form, with the bones, slots, skins, constraints and animations, together with the state of the editor, so that you come back to the project as you left it. This article is about working with that file: opening and saving, what the file contains, the unsaved-changes marker, the list of recent projects, dropping files onto the window, and packaging a project with its images and sounds to move it to another computer. Exporting for a game is a different task, and it has its own article.
Opening and saving#
Cmd+O (Ctrl+O on Windows and Linux) opens the welcome screen with the list of recent projects, from which Open… shows the file dialog. The dialog accepts a native .ligamen project, a Spine JSON file, a Spine binary skeleton and a .zip package made by Package Project. Cmd+S saves the project as .ligamen. The first save of a new project asks for a name, and Cmd+Shift+S, Save As, always asks. Save As makes the new file the current project from then on.
The title bar shows an asterisk while the document differs from the last load or save. Undoing exactly back to the saved state removes the asterisk, and redoing brings it back. When changes are pending, New, Open and Quit ask whether to Save, Don't Save or Cancel. The window that asks is the same for all three, and Cancel always leaves the project as it is.
What the file contains#
The .ligamen file embeds the complete skeleton document, so nothing else is needed to read the rigging and the animations. Besides that it keeps the state of the editor: the mode, the active skins, the display switches, the visibility of the panels, the hidden events and other view settings. The state is saved with the project but does not travel to a game, and it is never part of an export. Paths back to the images that you imported are stored relative to the project whenever it is possible, so a project and its image folder can be moved together. Atlas pages and unused files are not part of the project file.
The file has a format version. A file from a newer version of the editor that the running one does not recognize fails to open with a clear message, and nothing is changed. A file from an older version is converted step by step when it is opened. The project then loads as usual, is marked as changed, and the status bar reports the upgrade, so the next save writes it at the current version. A project that was saved by a previous release of the editor, under its earlier name and with its own legacy file extension, opens too. It is marked as changed, and the next Cmd+S writes a .ligamen file next to it. The original file is never overwritten.
Recent projects and dropping files#
File → Open Recent keeps the ten projects that you opened or saved last, and the welcome screen shows the same list with dates. A project, a Spine .json file or a .skel file that you drop from the file manager anywhere on the window is opened the same way, with the same question about unsaved changes. Images that you drop on the viewport are different: they become slots there (see Images).
Package Project#
File → Package Project… writes one .zip file with the project as it is now, saved or not. Every loose image of the Images panel is copied into images/ and every sound of the audio library into audio/, and the project inside the archive points to those folders, so the package opens anywhere. Atlas pages and files that are missing are not copied, and the status bar tells how many. Use it to send a project to a colleague or to keep a complete copy of a finished character.
Opening such a .zip with Open asks for a folder and unpacks the package into a new subfolder named after the archive, never over an earlier one, and then opens the project inside. An archive that contains an absolute path, a .. segment, a link or an absurdly large file is refused as a whole.
Backups#
Saving does not keep a history of your project, so use a version control system or a synced folder for that. While you work, the editor writes recovery copies on its own, and Settings can also leave the replaced file next to the project as <name>.ligamen.bak. Both are described in Versioning and recovery.