Ligamen

Getting started

Images

Every picture in a Ligamen Studio skeleton comes from a file on disk. The skeleton does not store pixels: it stores the name of an image, relative to the project's images folder, and the editor, the exports and the atlas packer all look the file up by that name. This article shows how the images folder is chosen, what the Images panel offers, how images get into a skeleton, how unused and missing images are marked, and how the editor follows changes to the files on disk.

Images panel

The images folder#

A skeleton has one main images folder, images next to the project file by default. In a project that has been saved, the folder is stored relative to the project file when it lies under the project folder, so a project and its pictures can be moved together. In a project that has never been saved, the folder is stored as an absolute path.

An image name is the path of the file inside that folder, without the extension, so hair/front.png is the image hair/front. Subfolders are allowed, and PNG and JPG files are read. The same name is what a region or mesh attachment keeps as its path; the attachments themselves are described in the Attachments part of this guide, and how a slot holds one in Slots.

A skeleton can also look in additional folders. Names are searched in the main folder first and then in the additional ones in order, and the first file found wins. This is useful for a shared library of props that many skeletons use. The folders are set from the Images panel, as described below.

The Images panel#

The Images panel shows the whole library: every image in the folders, whether any attachment uses it or not. It is off by default; turn it on in the Panels menu. The header holds a switch with three views, Grid, Tiles and List, and the path of the main folder on its right. When additional folders are set, the path is followed by +2, +3 and so on; rest the cursor on it to see every folder that was resolved.

Images lie under their folder rows, one row for each subfolder, with the name below each thumbnail. The folder button at the right end of the header opens a menu with Change Images Folder…, Add Images Folder… and, when there are additional folders, Remove followed by the folder, one item for each. Each choice is one undo step, and a change takes effect at once in the viewport, the Tree and the panel.

The panel is a library to pick from. Drag a thumbnail into the viewport to bring that image in as a new attachment, in the same way as dragging a file from the file manager.

Adding images to a skeleton#

The quickest way is to drag PNG or JPG files from Finder or Explorer onto the viewport. Each file becomes a new slot with a region attachment, placed on the selected bone, or on the root bone when none is selected. A file that lies outside the images folder is copied into it, and a drop that fails part-way leaves no half-copied files behind.

File → Import… brings in a whole folder of images in one step, and also a layered PSD. For every file the importer makes a bone, a slot and a region attachment, named after the file, and nothing in the rig needs further setup. The result is one undo step.

An existing slot can take another image from Properties. Choose Add image… in the Attachments section of the slot and pick one of the project's images in the small picker, which has a Filter images… field and a Browse files… button for files outside the library. Find and Replace, Edit → Find and Replace… (Ctrl+Shift+F), can rewrite image paths by text across the whole project, which is how a folder that was renamed on disk is brought back in step with the skeleton.

Used, unused and missing#

The Tree has an Images branch under the skeleton. It shows the resolved images folder and every texture in use, and its header carries counts such as 3 unused and 1 missing. An image is unused when no attachment in any skin, and no frame of a sequence, points to it. Unused images are dimmed in the branch and in the Images panel, and their tooltip reads Not used by any attachment. Dimming changes nothing in the data, and an unused file is simply left out when the atlas packs only the images in use.

An image is missing when an attachment names a file that is not found in any of the folders. It is marked missing in the Tree. Typical causes are a renamed or deleted file and a project moved without its folder. Restore the file, or point the skeleton at the right folder with Change Images Folder…, and the picture returns without reopening the project.

Selecting an image file in the Tree opens a compact card with three buttons. Parent selects the file's folder row, Browse opens the containing folder in the file manager, and Open launches the file in its default application, the usual way to repaint a picture. For a missing image, Browse and Open are disabled. The Missing images filter of Find and Replace lists every attachment whose file is not found, with the search field left empty.

Previews and live reload#

Rest the cursor on a slot, a region, a mesh or an image row in the Tree, and its picture appears next to the cursor; it disappears when you move away. F1, Edit → Preview Image, shows the same for the selected node: the slot's current attachment, or the setup frame of a sequence, with the image name and size. When the file is missing, the preview says Image not found. F1, Esc or a click closes it.

The images folder of a saved project is watched while the project is open. A new, deleted or repainted file is picked up within about a third of a second, so you can paint in an external program, save, and see the result in the viewport at once, in the Tree and in the Images panel. A deleted image becomes missing, and the same file returning makes it normal again. The watcher does not change the project, so there is nothing to undo.

When a repainted file has a different size and a mesh uses it, the editor asks Image size changed, listing the meshes with the old and the new size. Yes scales the texture coordinates so the mesh keeps covering the same picture; No only records the new size. The same question appears when you open a project whose images changed since it was saved.

Image settings#

Two options in Settings → General → Images affect how files are read. Limit scanning, on by default, stops scanning a folder after 2000 files, so a folder that was pointed at a huge directory by mistake does not slow the editor. When the limit is reached, the Images branch of the Tree shows limit 2000 reached and the Warnings panel says so; turn the option off to scan everything.

Convert color profiles to sRGB, on by default, converts images that carry another embedded profile, such as Display P3 or Adobe RGB, to sRGB when they are loaded. This is done for the viewport, the thumbnails, the F1 preview and packed atlases, so the pictures look the way a runtime draws them. Images without a profile are treated as sRGB. The change applies to images loaded afterwards; reopen the project to reload the rest.

When the pictures are ready, the exporter packs them into texture pages, which is the subject of Texture packing in the Export part of this guide.