A drawing app built for agent/human collaboration
Rust
Bones are a preview
Indicode BV7c019c7c78f7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 97ce89f..edd48e9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -20,6 +20,7 @@ The first builds, and klad's licences.- Bones: a bones layer holds a skeleton (`klad bone`, the bone tool J), weights from the bones or painted (`klad weights`), and poses that bend the drawing (`klad pose`, pose mode); in-betweens of two poses turn the bones. The bone tool lists the skeleton, picks a bone in every mode, and moves ends, joints and whole bones with their children (`klad bone --move` with `--by`).- Transform a whole layer or group: cmd T puts handles round it, and a drag moves, turns or scales every drawing on it, its shapes, and its bones and poses (`klad transform --layer`).- Bones live on a bones layer (Layer > New bones layer, or the first bone you draw makes one; `klad add <file> layer bones`). Any paint layer in the drawing joins it: attached to a bone it moves with that bone alone, as a cut-out, so a character drawn in pieces needs no weights; or it bends with the skeleton by the weights (`klad attach`, the picked bone's layers menu, or the bone button on a layer's row). Pose mode shows the drawing posed as you drag; "make this pose a drawing" keeps it.+- Bones are a preview: the bone tool, Layer > New bones layer, the bones guide and the help of `klad bone`, `attach`, `pose` and `ik` say so. Posing may still change; drawings keep their rigs when it does.- Bones are drawn as chains: letting go of a bone starts the next one from its end, each click adds one, shift fans them from one joint, Esc ends the chain (`klad bone --chain`).- IK: a bone and its parent become a limb (or a bone alone an aim) that reaches for a target, bending the way it is drawn, with softness so knees do not snap straight (`klad ik`, the bone tool's options). In pose mode, drag a limb's end and the limb follows; move the whole by a root bone's head and planted feet stay where they are (`klad pose --target`, `--mix`); in-betweens keep them planted. Exports to Godot carry the solved turns.- A first start: the start window welcomes, offers first steps (draw a shape, fill it, hand the drawing to an agent, ticked off as you go; Help > First steps opens them again) and six sample drawings that open as copies (`klad samples` lists and copies them).diff --git a/crates/app/src/commands.rs b/crates/app/src/commands.rsindex 2061c54..a7800c8 100644--- a/crates/app/src/commands.rs+++ b/crates/app/src/commands.rs@@ -1850,7 +1850,7 @@ impl Cmd {G::Layers,T::None,R::No,- "a skeleton of its own above the active layer: draw its bones with the bone tool, then attach layers to them",+ "a skeleton of its own above the active layer: draw its bones with the bone tool, then attach layers to them. Bones are a preview: posing may still change",),Cmd::DuplicateLayer => spec("layer.duplicate",diff --git a/crates/app/src/editor/bones.rs b/crates/app/src/editor/bones.rsindex 60c1460..5810066 100644--- a/crates/app/src/editor/bones.rs+++ b/crates/app/src/editor/bones.rs@@ -11,6 +11,9 @@ use klad_core::rig::{target_for_end, tips, weights_for,};use std::collections::BTreeMap;++pub(crate) const PREVIEW: &str =+ "Bones are a preview: posing may still change in later versions. Drawings keep their rigs when it does.";use std::path::PathBuf;#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]@@ -1137,7 +1140,8 @@ impl Editor {self.bones.posing = None;}});- ui.separator();+ ui.label(RichText::new("preview").small().color(theme::WEAK))+ .hint(PREVIEW);if let Some(later) = self.skeleton_list(ui) {run = Some(later);}@@ -1194,7 +1198,14 @@ impl Editor {)),};if let Some((hint, more)) = said {- ui.label(RichText::new(hint).color(theme::WEAK)).hint(more);+ let room = ui.available_size_before_wrap().x;+ if room > 48.0 {+ ui.add_sized(+ [room, ui.spacing().interact_size.y],+ egui::Label::new(RichText::new(hint).color(theme::WEAK)).truncate(),+ )+ .hint(more);+ }}}Mode::Weights if !self.bends() => {@@ -1202,17 +1213,22 @@ impl Editor {.hint("weights are for a layer drawn in one piece across a joint; detach one (draw mode, the picked bone's layers menu, or the bone in its layers row) to paint its weights");}Mode::Weights => {+ ui.spacing_mut().slider_width = 56.0;ui.add(egui::Slider::new(&mut self.bones.radius, 4.0..=200.0).logarithmic(true).text("size"),).hint("the weight brush's radius in px");- ui.add(egui::Slider::new(&mut self.bones.strength, 0.0..=1.0).text("weight"))- .hint("the weight a dab paints; alt paints 0");+ ui.add(+ egui::Slider::new(&mut self.bones.strength, 0.0..=1.0)+ .fixed_decimals(2)+ .text("weight"),+ )+ .hint("the weight a dab paints; alt paints 0");if ui- .button("automatic weights")- .hint("start again from the bones, by distance")+ .button("automatic")+ .hint("automatic weights: start again from the bones, by distance").clicked(){run = Some(Box::new(|e| {@@ -1244,17 +1260,9 @@ impl Editor {})}));}- ui.label(- RichText::new(- self.bones- .selected- .as_deref()- .map_or("pick a bone: cmd click it, or pick it in the list".to_string(), |b| {- format!("painting {b}")- }),- )- .color(theme::WEAK),- );+ if self.bones.selected.is_none() {+ ui.label(RichText::new("pick a bone: cmd click it, or pick it in the list").color(theme::WEAK));+ }}Mode::Pose => {if ui@@ -1299,7 +1307,7 @@ impl Editor {}}if let Some(r) = self.bones.reach.get_mut(&end) {- ui.spacing_mut().slider_width = 70.0;+ ui.spacing_mut().slider_width = 56.0;ui.add(egui::Slider::new(&mut r.mix, 0.0..=1.0).text("mix")).hint("0: the limb's own turns; 1: it reaches the target");}diff --git a/crates/app/src/editor/ui_tests.rs b/crates/app/src/editor/ui_tests.rsindex d954245..aa82b2b 100644--- a/crates/app/src/editor/ui_tests.rs+++ b/crates/app/src/editor/ui_tests.rs@@ -3695,14 +3695,18 @@ fn the_bone_options_stay_one_row_whatever_is_picked() {h.key_press(Key::J);h.run_steps(3);let top = h.state().canvas_rect.min.y;- ["thigh", "shin"].into_iter().for_each(|bone| {- h.state_mut().pick_bone(Some(bone.into()));- h.run_steps(3);- assert_eq!(- h.state().canvas_rect.min.y,- top,- "{size:?}: picking {bone} keeps the canvas where it is"- );+ use super::bones::Mode;+ [Mode::Draw, Mode::Weights, Mode::Pose].into_iter().for_each(|mode| {+ h.state_mut().bones.mode = mode;+ ["thigh", "shin"].into_iter().for_each(|bone| {+ h.state_mut().pick_bone(Some(bone.into()));+ h.run_steps(3);+ assert_eq!(+ h.state().canvas_rect.min.y,+ top,+ "{size:?}: picking {bone} in {mode:?} keeps the canvas where it is"+ );+ });});});let _ = std::fs::remove_dir_all(&path);@@ -3723,6 +3727,14 @@ fn a_bones_layer_takes_any_layers_in_the_drawing() {);h.key_press(Key::J);h.run_steps(2);+ assert!(+ h.query_by_label("preview").is_some(),+ "the bone tool says bones are a preview"+ );+ assert!(+ Cmd::NewBonesLayer.spec().about.contains("preview"),+ "and so does Layer > New bones layer"+ );let (a, b) = (canvas_at(&h, 60.0, 60.0), canvas_at(&h, 200.0, 120.0));drag(&mut h, a, b);h.run_steps(2);diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rsindex 4b09586..202d3e3 100644--- a/crates/cli/src/main.rs+++ b/crates/cli/src/main.rs@@ -1171,7 +1171,7 @@ enum Command {},#[command(about = "Add, remove, rename, move or reparent a bone of a layer's or group's skeleton",- long_about = "Bones go on a paint layer or a group (a group's skeleton poses every paint layer in it together). A bone has a name, an optional parent, a head and a tail in canvas px; a child usually starts where its parent ends. --chain adds several bones at once, each the child of the one before and starting where it ends, through one more point than bones (the editor's bone tool draws chains the same way). Removing a bone removes its children (and the IK on them, its poses keeping their look). Moving a tail takes the heads of the children that start there along; --by moves a bone with all its children.\n\n klad bone art.klad body --add hip --head 400,500 --tail 400,420\n klad bone art.klad body --add thigh --parent hip --head 400,500 --tail 410,620\n klad bone art.klad body --chain thigh,shin,foot --through '400,500 410,620 405,740 440,745' --parent hip\n klad bone art.klad body --rename thigh --as femur\n klad bone art.klad body --move femur --tail 420,630\n klad bone art.klad body --move femur --by 12,-4\n klad bone art.klad body --reparent femur --parent pelvis\n klad bone art.klad body --rm femur\n\nAlso a bone op: {\"op\":\"bone\",\"layer\":\"body\",\"add\":\"thigh\",\"parent\":\"hip\",\"head\":[400,500],\"tail\":[410,620]}, or {\"op\":\"bone\",\"layer\":\"body\",\"chain\":[\"thigh\",\"shin\"],\"through\":[[400,500],[410,620],[405,740]],\"parent\":\"hip\"}."+ long_about = "Bones are a preview: these commands may still change in later versions, and drawings keep their rigs when they do.\n\nBones go on a bones layer (klad add <bundle> layer bones, or Layer > New bones layer), which draws nothing; klad attach rigs paint layers to them. A bone has a name, an optional parent, a head and a tail in canvas px; a child usually starts where its parent ends. --chain adds several bones at once, each the child of the one before and starting where it ends, through one more point than bones (the editor's bone tool draws chains the same way). Removing a bone removes its children (and the IK on them, its poses keeping their look). Moving a tail takes the heads of the children that start there along; --by moves a bone with all its children.\n\n klad bone art.klad body --add hip --head 400,500 --tail 400,420\n klad bone art.klad body --add thigh --parent hip --head 400,500 --tail 410,620\n klad bone art.klad body --chain thigh,shin,foot --through '400,500 410,620 405,740 440,745' --parent hip\n klad bone art.klad body --rename thigh --as femur\n klad bone art.klad body --move femur --tail 420,630\n klad bone art.klad body --move femur --by 12,-4\n klad bone art.klad body --reparent femur --parent pelvis\n klad bone art.klad body --rm femur\n\nAlso a bone op: {\"op\":\"bone\",\"layer\":\"body\",\"add\":\"thigh\",\"parent\":\"hip\",\"head\":[400,500],\"tail\":[410,620]}, or {\"op\":\"bone\",\"layer\":\"body\",\"chain\":[\"thigh\",\"shin\"],\"through\":[[400,500],[410,620],[405,740]],\"parent\":\"hip\"}.")]Bone {bundle: PathBuf,@@ -1212,7 +1212,7 @@ enum Command {},#[command(about = "Add, change or remove an IK on a bone: a limb (the bone and its parent) or an aim reaches for a target set per pose",- long_about = "An IK turns bones so the end of a limb reaches a target, instead of turning each bone by hand. A limb (--chain 2, when the bone has a parent) turns the bone and its parent so the bone's tail lands on the target, the joint between them bending --bend clockwise or counterclockwise on screen (by default the way it bends in the rest drawing; flip turns it over); out of reach it points straight at the target. An aim (--chain 1) turns the bone to point at the target. --softness (px) eases the limb into full stretch so a knee does not snap straight: it starts slowing that far before full reach and is straight that far past it. Targets are set per pose (klad pose --target), in canvas px, and stay put when the root moves, so a foot stays planted while the body moves; a pose without a target for an IK leaves that limb to its turns. IKs are solved parent first: a foot's aim after its leg's limb.\n\n klad ik art.klad body --add shin\n klad ik art.klad body --add shin --chain 2 --bend counterclockwise --softness 8\n klad ik art.klad body --add foot --chain 1\n klad ik art.klad body --set shin --bend flip\n klad ik art.klad body --rm shin\n\nAlso an ik op: {\"op\":\"ik\",\"layer\":\"body\",\"add\":\"shin\",\"chain\":2,\"bend\":\"clockwise\",\"softness\":8}. Removing an IK (or its bone) keeps every pose as it looks, as turns."+ long_about = "Bones are a preview: these commands may still change in later versions, and drawings keep their rigs when they do.\n\nAn IK turns bones so the end of a limb reaches a target, instead of turning each bone by hand. A limb (--chain 2, when the bone has a parent) turns the bone and its parent so the bone's tail lands on the target, the joint between them bending --bend clockwise or counterclockwise on screen (by default the way it bends in the rest drawing; flip turns it over); out of reach it points straight at the target. An aim (--chain 1) turns the bone to point at the target. --softness (px) eases the limb into full stretch so a knee does not snap straight: it starts slowing that far before full reach and is straight that far past it. Targets are set per pose (klad pose --target), in canvas px, and stay put when the root moves, so a foot stays planted while the body moves; a pose without a target for an IK leaves that limb to its turns. IKs are solved parent first: a foot's aim after its leg's limb.\n\n klad ik art.klad body --add shin\n klad ik art.klad body --add shin --chain 2 --bend counterclockwise --softness 8\n klad ik art.klad body --add foot --chain 1\n klad ik art.klad body --set shin --bend flip\n klad ik art.klad body --rm shin\n\nAlso an ik op: {\"op\":\"ik\",\"layer\":\"body\",\"add\":\"shin\",\"chain\":2,\"bend\":\"clockwise\",\"softness\":8}. Removing an IK (or its bone) keeps every pose as it looks, as turns.")]Ik {bundle: PathBuf,@@ -1237,7 +1237,7 @@ enum Command {},#[command(about = "Rig a layer: attach it to a bone, let it bend with a skeleton, or unrig it",- long_about = "Bones live on bones layers (klad add <bundle> layer bones, or Layer > New bones layer); a bones layer draws nothing. Any paint layer in the drawing can be rigged to one: attached to a bone (--bone), it moves rigidly with that bone when posed, the way a cut-out arm follows its upper arm, so a character drawn in pieces (upper arm, forearm, hand on their own layers) needs no weights; set to bend (--bend), each of its points moves by the skeleton's weights, for a layer drawn in one piece across a joint. --off unrigs it: posing leaves it as it is. --skeleton names the bones layer when the drawing has more than one (with --bone, the one that has that bone is found).\n\n klad attach art.klad forearm --bone fore\n klad attach art.klad sleeve --bend --skeleton bones\n klad attach art.klad forearm --off\n\nAlso an attach op: {\"op\":\"attach\",\"layer\":\"forearm\",\"bone\":\"fore\"}; {\"op\":\"attach\",\"layer\":\"sleeve\",\"skeleton\":\"bones\"} bends; without either it unrigs. Renaming a bone keeps its layers on it; removing it unrigs them."+ long_about = "Bones are a preview: these commands may still change in later versions, and drawings keep their rigs when they do.\n\nBones live on bones layers (klad add <bundle> layer bones, or Layer > New bones layer); a bones layer draws nothing. Any paint layer in the drawing can be rigged to one: attached to a bone (--bone), it moves rigidly with that bone when posed, the way a cut-out arm follows its upper arm, so a character drawn in pieces (upper arm, forearm, hand on their own layers) needs no weights; set to bend (--bend), each of its points moves by the skeleton's weights, for a layer drawn in one piece across a joint. --off unrigs it: posing leaves it as it is. --skeleton names the bones layer when the drawing has more than one (with --bone, the one that has that bone is found).\n\n klad attach art.klad forearm --bone fore\n klad attach art.klad sleeve --bend --skeleton bones\n klad attach art.klad forearm --off\n\nAlso an attach op: {\"op\":\"attach\",\"layer\":\"forearm\",\"bone\":\"fore\"}; {\"op\":\"attach\",\"layer\":\"sleeve\",\"skeleton\":\"bones\"} bends; without either it unrigs. Renaming a bone keeps its layers on it; removing it unrigs them.")]Attach {bundle: PathBuf,@@ -1303,7 +1303,7 @@ enum Command {},#[command(about = "Pose a drawing with its bones: a new drawing at --to, bent from the rest drawing at --from",- long_about = "A pose is a turn per bone (degrees from its rest angle, children follow their parent), a move of the whole (--root), and a target per IK (--target, canvas px; see klad ik): the IK's limb turns so its end reaches the target, and the target stays put when the root moves. --mix blends an IK's limb from its turns (0) to reaching the target (1, the default). Every paint layer under the skeleton gets a new drawing at --to: a layer attached to a bone (klad attach) moves with that bone alone; in the others each stroke point and fill moves by its bones' weighted blend, the same way Godot's Skeleton2D bends a Polygon2D. The pose is kept on the drawing; posing that frame again re-poses it from the same rest drawing, and posing from a posed drawing starts from its rest drawing. klad inbetween between two poses of one rest drawing turns the bones instead of matching strokes, and moves the targets in straight lines, so a foot planted in both keys stays planted.\n\n klad pose art.klad body --from 0 --to 4 --bone thigh=25 --bone shin=-40 --root 0,6\n klad pose art.klad body --from 0 --to 8 --target shin=410,740 --root 20,6\n klad pose art.klad body --from 0 --to 12 --target shin=430,700 --mix shin=0.5 --bone shin=-20\n\nAlso a pose op: {\"op\":\"pose\",\"layer\":\"body\",\"from\":0,\"to\":4,\"bones\":{\"thigh\":25,\"shin\":-40},\"root\":[0,6],\"ik\":{\"shin\":{\"target\":[410,740],\"mix\":1}}}."+ long_about = "Bones are a preview: these commands may still change in later versions, and drawings keep their rigs when they do.\n\nA pose is a turn per bone (degrees from its rest angle, children follow their parent), a move of the whole (--root), and a target per IK (--target, canvas px; see klad ik): the IK's limb turns so its end reaches the target, and the target stays put when the root moves. --mix blends an IK's limb from its turns (0) to reaching the target (1, the default). Every paint layer rigged to the skeleton (klad attach) gets a new drawing at --to: a layer attached to a bone moves with that bone alone; in a layer set to bend each stroke point and fill moves by its bones' weighted blend, the same way Godot's Skeleton2D bends a Polygon2D. The pose is kept on the drawing; posing that frame again re-poses it from the same rest drawing, and posing from a posed drawing starts from its rest drawing. klad inbetween between two poses of one rest drawing turns the bones instead of matching strokes, and moves the targets in straight lines, so a foot planted in both keys stays planted.\n\n klad pose art.klad body --from 0 --to 4 --bone thigh=25 --bone shin=-40 --root 0,6\n klad pose art.klad body --from 0 --to 8 --target shin=410,740 --root 20,6\n klad pose art.klad body --from 0 --to 12 --target shin=430,700 --mix shin=0.5 --bone shin=-20\n\nAlso a pose op: {\"op\":\"pose\",\"layer\":\"body\",\"from\":0,\"to\":4,\"bones\":{\"thigh\":25,\"shin\":-40},\"root\":[0,6],\"ik\":{\"shin\":{\"target\":[410,740],\"mix\":1}}}.")]Pose {bundle: PathBuf,@@ -3947,6 +3947,26 @@ mod tests {assert!(text == written, "docs/cli.md is out of date: just reference");}+ #[test]+ fn the_rig_commands_say_bones_are_a_preview_once() {+ std::thread::Builder::new()+ .stack_size(64 << 20)+ .spawn(|| {+ let cli = Cli::command();+ ["bone", "attach", "pose", "ik"].into_iter().for_each(|name| {+ let help = cli+ .find_subcommand(name)+ .and_then(|c| c.get_long_about())+ .map(|t| t.to_string())+ .unwrap_or_default();+ assert_eq!(help.matches("Bones are a preview").count(), 1, "klad {name} --help");+ });+ })+ .unwrap()+ .join()+ .unwrap();+ }+#[test]fn every_command_parses_its_flags() {std::thread::Builder::new()diff --git a/docs/cli.md b/docs/cli.mdindex 3c89b12..5f65838 100644--- a/docs/cli.md+++ b/docs/cli.md@@ -2122,7 +2122,9 @@ Options:## klad bone```text-Bones go on a paint layer or a group (a group's skeleton poses every paint layer in it together). A bone has a name, an optional parent, a head and a tail in canvas px; a child usually starts where its parent ends. --chain adds several bones at once, each the child of the one before and starting where it ends, through one more point than bones (the editor's bone tool draws chains the same way). Removing a bone removes its children (and the IK on them, its poses keeping their look). Moving a tail takes the heads of the children that start there along; --by moves a bone with all its children.+Bones are a preview: these commands may still change in later versions, and drawings keep their rigs when they do.++Bones go on a bones layer (klad add <bundle> layer bones, or Layer > New bones layer), which draws nothing; klad attach rigs paint layers to them. A bone has a name, an optional parent, a head and a tail in canvas px; a child usually starts where its parent ends. --chain adds several bones at once, each the child of the one before and starting where it ends, through one more point than bones (the editor's bone tool draws chains the same way). Removing a bone removes its children (and the IK on them, its poses keeping their look). Moving a tail takes the heads of the children that start there along; --by moves a bone with all its children.klad bone art.klad body --add hip --head 400,500 --tail 400,420klad bone art.klad body --add thigh --parent hip --head 400,500 --tail 410,620@@ -2200,6 +2202,8 @@ Options:## klad ik```text+Bones are a preview: these commands may still change in later versions, and drawings keep their rigs when they do.+An IK turns bones so the end of a limb reaches a target, instead of turning each bone by hand. A limb (--chain 2, when the bone has a parent) turns the bone and its parent so the bone's tail lands on the target, the joint between them bending --bend clockwise or counterclockwise on screen (by default the way it bends in the rest drawing; flip turns it over); out of reach it points straight at the target. An aim (--chain 1) turns the bone to point at the target. --softness (px) eases the limb into full stretch so a knee does not snap straight: it starts slowing that far before full reach and is straight that far past it. Targets are set per pose (klad pose --target), in canvas px, and stay put when the root moves, so a foot stays planted while the body moves; a pose without a target for an IK leaves that limb to its turns. IKs are solved parent first: a foot's aim after its leg's limb.klad ik art.klad body --add shin@@ -2259,6 +2263,8 @@ Options:## klad attach```text+Bones are a preview: these commands may still change in later versions, and drawings keep their rigs when they do.+Bones live on bones layers (klad add <bundle> layer bones, or Layer > New bones layer); a bones layer draws nothing. Any paint layer in the drawing can be rigged to one: attached to a bone (--bone), it moves rigidly with that bone when posed, the way a cut-out arm follows its upper arm, so a character drawn in pieces (upper arm, forearm, hand on their own layers) needs no weights; set to bend (--bend), each of its points moves by the skeleton's weights, for a layer drawn in one piece across a joint. --off unrigs it: posing leaves it as it is. --skeleton names the bones layer when the drawing has more than one (with --bone, the one that has that bone is found).klad attach art.klad forearm --bone fore@@ -2418,7 +2424,9 @@ Options:## klad pose```text-A pose is a turn per bone (degrees from its rest angle, children follow their parent), a move of the whole (--root), and a target per IK (--target, canvas px; see klad ik): the IK's limb turns so its end reaches the target, and the target stays put when the root moves. --mix blends an IK's limb from its turns (0) to reaching the target (1, the default). Every paint layer under the skeleton gets a new drawing at --to: a layer attached to a bone (klad attach) moves with that bone alone; in the others each stroke point and fill moves by its bones' weighted blend, the same way Godot's Skeleton2D bends a Polygon2D. The pose is kept on the drawing; posing that frame again re-poses it from the same rest drawing, and posing from a posed drawing starts from its rest drawing. klad inbetween between two poses of one rest drawing turns the bones instead of matching strokes, and moves the targets in straight lines, so a foot planted in both keys stays planted.+Bones are a preview: these commands may still change in later versions, and drawings keep their rigs when they do.++A pose is a turn per bone (degrees from its rest angle, children follow their parent), a move of the whole (--root), and a target per IK (--target, canvas px; see klad ik): the IK's limb turns so its end reaches the target, and the target stays put when the root moves. --mix blends an IK's limb from its turns (0) to reaching the target (1, the default). Every paint layer rigged to the skeleton (klad attach) gets a new drawing at --to: a layer attached to a bone moves with that bone alone; in a layer set to bend each stroke point and fill moves by its bones' weighted blend, the same way Godot's Skeleton2D bends a Polygon2D. The pose is kept on the drawing; posing that frame again re-poses it from the same rest drawing, and posing from a posed drawing starts from its rest drawing. klad inbetween between two poses of one rest drawing turns the bones instead of matching strokes, and moves the targets in straight lines, so a foot planted in both keys stays planted.klad pose art.klad body --from 0 --to 4 --bone thigh=25 --bone shin=-40 --root 0,6klad pose art.klad body --from 0 --to 8 --target shin=410,740 --root 20,6diff --git a/docs/guide/bones.md b/docs/guide/bones.mdindex ecc8d9a..ec1861b 100644--- a/docs/guide/bones.md+++ b/docs/guide/bones.md@@ -4,6 +4,8 @@ _Last updated: 2026-11-08_Draw a character once, give it a skeleton and pose it on each frame instead of redrawing it. The skeleton goes on a bones layer of its own, and you tell each drawing layer which bone moves it.+Bones are a preview: posing may still change in later versions, and your drawings keep their rigs when it does.+## Draw a skeleton@@ -26,7 +28,7 @@ Draw each part that stays stiff, like an upper arm, a forearm or the head, on itOptional, for a part drawn in one piece over a joint, like a sleeve or a tail.1. In the layers panel, click the layer's bone button and pick **bends with bones**.-2. Pick **weights** in the bar and click **automatic weights**.+2. Pick **weights** in the bar and click **automatic**.3. Cmd click a bone, then paint where it should move the drawing. Alt paints weight away.## Pose it