About Rigby2d
Rigby2d is an MCP server published by jaisurya-dev-art in the Blockchain category: open-source 2D skeletal animation editor for games and film. AutoRig layered PSDs, animate with meshes, IK and physics, lip-sync from audio, render video, export JSON/.skel. JavaScript, Rust, Godot, Unity and more runtimes. Built-in MCP server for AI assistants. Docs: rigby2d.com/docs. Conduid read 31 tools from its source: add_animation, add_bone, add_constraint, autorig, batch_edit, breathe and 25 more. No package is published for it, so it installs from a source checkout.
The repository has 432 stars and 49 forks, is licensed Apache-2.0, and its last commit was on 1 Dec 2026. The latest release is v0.6.1 (24 Nov 2026): Rigby2D 0.6.1 builds on Mammoth with the fixes and requests from its first days: hide and lock parts while you work, a Tree that reads like a hierarchy, weights you can… It follows v0.6.0 (20 Nov 2026), and the 5 most recent releases go back to v0.4.3 (31 Oct 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include 2d-animation, animation, animation-editor, film, game-development and game-runtime.
Install
git clone https://github.com/jaisurya-dev-art/rigby2dTools (31)
add_animationAdd an empty animation. Its duration grows as keys are set later. Saves the project.| Parameter | Type | Description |
|---|---|---|
| duration | number | Initial duration in seconds (default 0). |
| name * | any |
add_boneAdd a bone as a child of an existing bone, with its setup pose relative to the parent (x, y, rotation in degrees, length). Saves the project.| Parameter | Type | Description |
|---|---|---|
| length | number | |
| name * | any | |
| parent * | any | |
| rotation | number | |
| x | number | |
| y | number |
add_constraintAdd a constraint, applied after the existing ones. ik: 'bones' is the chain (1 or 2 bones), 'target' the target bone. transform: 'bones' follow 'target' (the source bone); by default every property is mapped and offsets keep the current pose (nothing jumps). path: 'bones' along the path attachment in slot 'target'. physics: one constraint per bone in 'bones' (names get a number), with rotate 1 unless 'settings' say otherwise. slider: 'settings.animation' is the animation it plays; optional 'target' is the bone that drives it. Saves the project.| Parameter | Type | Description |
|---|---|---|
| bones | array | Constrained bones (see the description per type). |
| keepPose | boolean | Transform only: set offsets so the bones stay where they are (default true). |
| name * | string | Constraint name (must be new). |
| settings | any | |
| target | string | IK target bone, transform source bone, path slot, or the bone driving a slider. |
| type * | string |
autorigRigby AutoRig: rig layered artwork in one step. Identifies body parts from layer names (or positions), places joints where parts meet, builds the skeleton (hip, chest, neck, head, arms, legs, face, hair, ears, tail, wings), attaches every layer to its bone, turns parts that bend across bones into weighted meshes (a single arm layer gets an elbow) and adds IK for arms and legs. From psd_file it writes a new .rigby work file to 'output'; from path it rigs an unrigged .rigby work file. The result is ordinary, editable rig data.| Parameter | Type | Description |
|---|---|---|
| ik | boolean | IK for two-bone arms and legs (default true). |
| meshes | string | 'deforming' (default): meshes for parts that bend across bones; 'all': every part; 'none'. |
| output | any | Where to save. Required with psd_file (a new .rigby file). |
| overwrite | any | |
| path | any | |
| psd_file | any | |
| roles | any | |
| sides | any |
batch_editApply many edits in one call, loading and saving the project once, atomically: all of them are saved, or none. Each operation is { op, ...arguments } where op is one of ${names.join(', ')} and the arguments are that tool's (without path, output and overwrite). Operations run in order, so later ones can use what earlier ones created (add_animation, then its keys). Much faster than one call per key for building animations. Curves can be presets or a custom bezier [cx1, cy1, cx2, cy2].| Parameter | Type | Description |
|---|---|---|
| operations * | array | The edits, in order: { op, ...that tool's arguments } with op one of ${names.join(', ')}. |
| output | any | |
| overwrite | any | |
| path * | any |
breatheThe upper body breathes (selected bones, or the chest, spine or torso)convert_projectWrite a project as skeleton JSON (format 3.8, 4.2 or 4.3) or binary .skel (4.3). Reads .rigby, .json or .skel (4.2 or 4.3). Writes skeleton data only; atlas and images are not repacked. Refuses to replace an existing file unless overwrite is true.| Parameter | Type | Description |
|---|---|---|
| input * | any | |
| output * | string | Output file ending in .json or .skel, inside the workspace. Its folder must exist. |
| overwrite | boolean | Replace the output file if it exists (default false). |
| version | string | Skeleton JSON format version (default 4.3; .skel is always 4.3). |
delete_bone_keyDelete the key of a bone channel at a time in an animation. Saves the project.| Parameter | Type | Description |
|---|---|---|
| animation * | any | |
| bone * | any | |
| channel * | string | |
| time * | number |
delete_constraintDelete a constraint with its animation keys and skin memberships. Saves the project.| Parameter | Type | Description |
|---|---|---|
| constraint * | string | Constraint name. |
describe_animationShow one animation: its duration, the key times of every bone, slot, deform, IK and draw-order timeline, its events, and other timelines it holds.| Parameter | Type | Description |
|---|---|---|
| animation * | string | Animation name (see inspect_project). |
| path * | any |
describe_rigList the bone hierarchy with setup-pose transforms (Y up, degrees), the slots in draw order with their attachments, and the attachments of each extra skin.| Parameter | Type | Description |
|---|---|---|
| path * | any |
detect_partsPreview Rigby AutoRig on layered artwork: which body part each layer is (head, torso, upperarm, forearm, hand, arm, thigh, shin, foot, leg, eye, mouth, hair, tail, ...), its side and whether that came from the layer name or its position. Nothing is saved. Use the roles and sides arguments of autorig to correct it.| Parameter | Type | Description |
|---|---|---|
| path | any | |
| psd_file | any | |
| roles | any | |
| sides | any |
export_defold_modelWrite a Rigby2D model for Defold from a character (.rigby work file, or .skel / .json with its atlas or images): the skeleton (<name>.rigbyskel), its images unpacked into images/ with a Defold atlas (<name>.atlas), the component (<name>.rigbymodel) and a game object holding it (<name>.go). With the rigby2d library, the Defold editor plays the model live in the scene view and the game plays it natively. The output folder path in the Defold project is found from the game.project above it, or given as folder.| Parameter | Type | Description |
|---|---|---|
| animation | string | Animation the model plays from the start (its default_animation; default none). |
| folder | string | The output folder path in the Defold project, such as "/assets/hero" (default: found from game.project). |
| input * | any | |
| name | string | Base name of the files (default: the input file name). |
| output_folder | string | Folder to write into, inside the workspace (default: the input file folder). Created files go here and in its images/ subfolder. |
| overwrite | boolean | Replace files from an earlier export (default false). |
| skin | string | Skin to show (default: the default skin). |
export_sprite_sheetRender animations frame by frame into a sprite sheet for engines that play frames: 'json' writes <name>.png and <name>.json (a JSON hash as TexturePacker writes it, read by Phaser, PixiJS and others, with Aseprite frameTags, durations and a pivot at the skeleton's origin); 'defold' writes <name>/<animation>_<n>.png frames and <name>.atlas; 'frames' writes the frames only. Physics settles into loops first. Reads .rigby, or .json / .skel with its atlas. Refuses to replace files unless overwrite is true.| Parameter | Type | Description |
|---|---|---|
| animations | array | Animations to include (default: all). |
| dedupe | boolean | Store identical frames once (json; default true). |
| defold_folder | string | Project path the Defold atlas lists frames under (default '/<name>'). |
| format | string | 'json' (default), 'defold' or 'frames'. |
| fps | number | Frames per second (default 30). |
| input * | any | |
| layout | string | Sheet layout for 'json' (default packed). |
| loop | boolean | Animations loop: leave out the last frame, which repeats the first (default true). |
| max_width | integer | Largest side of each sheet in pixels (default 4096); frames that don't fit go on more sheets (name-0.png + name-0.json …, and name.json as a Phaser multi-atlas). |
| name | string | Base name of the files (default: the input file name). |
| output_folder * | string | Existing folder inside the workspace to write into. |
| overwrite | boolean | Replace existing files (default false). |
| padding | integer | Pixels between frames (default 2). |
| power_of_two | boolean | Round each sheet up to power-of-two sides (json; default false). |
| scale | number | Pixels per skeleton unit (default 1). |
| skin | string | Skin to show (default: the default skin). |
| trim | boolean | Trim empty space around frames (json; default true). |
import_asepriteTurns an Aseprite file (.aseprite / .ase) into a new .rigby work file, like the editor's File > Import > Aseprite: every image layer becomes a slot on the root bone where it was drawn, with one image per different picture it shows; each tag (or the whole timeline) becomes an animation that swaps the images at Aseprite's frame durations. Hidden layers become variant animations. Pixel art stays sharp. Rig it afterwards with autorig or the edit tools.| Parameter | Type | Description |
|---|---|---|
| aseprite_file * | string | The Aseprite file (.aseprite or .ase) inside the workspace. |
| output * | any | The new .rigby work file to write. |
| overwrite | any |
inspect_projectSummarize a Rigby2D project file: format and version, counts of bones, slots, skins, constraints, events and images, the animations with their durations, and any read warnings.| Parameter | Type | Description |
|---|---|---|
| path * | any |
lint_animationsCheck animations for common motion problems. Warnings: frame_jump (a bone moves more than 'jump_threshold' world units or turns more than 'rotation_threshold' degrees between frames), loop_seam and loop_attachment (a looping animation's last frame doesn't match its first; animations named idle, breath, walk, run or loop count as loops unless 'loop' says otherwise), missing_attachment (a key shows an attachment the slot doesn't have), overridden_keys (rotate keys on bones a full-mix IK constraint moves). Advisory only.| Parameter | Type | Description |
|---|---|---|
| animation | string | One animation (default all). |
| fps | number | |
| jump_threshold | number | |
| loop | boolean | |
| path * | any | |
| rotation_threshold | number |
map_bonesPreview how retarget_animation matches the bones of a source character to a target character: by name, similar name ("L_Arm" and "arm.l"), body part ("UpperArm_Left" and "upperarm_l") or your mapping. Lists unmatched bones.| Parameter | Type | Description |
|---|---|---|
| mapping | any | |
| path * | any | Character to retarget to. |
| source * | any | Character the animation comes from. |
mirror_bonesFlip the selected bones' setup across X = 0reportLists possible problems in View > Logretarget_animationCopy animations from one character to another (any format): bones are matched automatically (see map_bones; override with mapping), movement is scaled to the target's size (scale 'auto') and rotated into its bones' frames, curves are kept, and slot, event and IK keys follow by name. mode 'relative' (default) keeps the target's own rest pose; 'world' makes bones point the way the source's do, compensating for different rest poses. Saves the target.| Parameter | Type | Description |
|---|---|---|
| animation | string | Source animation. |
| animations | array | Several source animations, instead of animation. |
| mapping | any | |
| mode | string | |
| name | string | Name in the target (single animation only; default: the same name). |
| output | any | |
| overwrite | any | |
| path * | any | Character to retarget to (saved). |
| replace | boolean | Replace target animations with the same name. |
| scale | number | Movement scale (default: target height / source height). |
| source * | any | Character the animations come from. |
run_scriptRun a Python script against a project with the Rigby2D scripting API (`import rigby`: bones, slots, animations, keys, selection, time; see https://rigby2d.com/docs/scripting.html), then save the project. The script runs in a sandbox (CPython 3.14 on Pyodide, standard library only). print() output is returned. If the script raises, nothing is saved and the traceback is returned. dry_run: true runs it without saving (for queries). 'animation' and 'time' set what rigby.current_animation() and rigby.time() return; 'selection' sets rigby.selected_bones().| Parameter | Type | Description |
|---|---|---|
| animation | string | Animation open while the script runs (Animate mode). Default: none (Setup mode). |
| dry_run | boolean | Run without saving. |
| output | any | |
| overwrite | any | |
| path * | any | |
| script | string | Python source. |
| script_file | string | A .py file inside the workspace, instead of script. |
| selection | array | Selected bone names. |
| time | number |
sample_poseEvaluate the skeleton with the Rigby2D runtime: the setup pose, or an animation at a time. Returns world transforms of every bone, the visible attachment of each slot, the draw order, events up to that time and the bounds of everything drawn.| Parameter | Type | Description |
|---|---|---|
| animation | string | Animation to apply. Omit for the setup pose. |
| path * | any | |
| skin | string | Skin to show (default 'default'). |
| time | number | Time in seconds (default 0). |
set_attachment_keyShow an attachment in a slot from a time on in an animation (an image swap), or hide the slot's attachment with hide: true. The attachment must belong to the slot. Saves the project.| Parameter | Type | Description |
|---|---|---|
| animation * | any | |
| attachment | string | Attachment to show (see describe_rig). |
| hide | boolean | Hide the attachment instead. |
| slot * | any | |
| time * | number |
set_bone_keySet a key on a bone in an animation (replacing a key at the same time). Values are relative to the setup pose: rotate takes value (degrees added); translate and shear take x/y (added); scale takes x/y (multiplied). curve shapes the motion to the next key. The animation grows to include the key. Saves the project.| Parameter | Type | Description |
|---|---|---|
| animation * | any | |
| bone * | any | |
| channel * | string | |
| curve | any | |
| time * | number | Seconds. |
| value | number | rotate: degrees added to the setup rotation. |
| x | number | translate/shear: added to the setup value; scale: factor. |
| y | number | translate/shear: added to the setup value; scale: factor. |
set_bone_setupChange a bone's setup (rest) pose relative to its parent: x, y, rotation, scaleX, scaleY, shearX, shearY (degrees for angles) and length. Only the given fields change. Saves the project.| Parameter | Type | Description |
|---|---|---|
| bone * | any | |
| length | number | |
| rotation | number | |
| scaleX | number | |
| scaleY | number | |
| shearX | number | |
| shearY | number | |
| x | number | |
| y | number |
set_constraintChange a constraint's settings (skeleton JSON 4.3 spelling; null removes one), rename it, or move it in the application order. IK also takes 'target' in settings. Saves the project.| Parameter | Type | Description |
|---|---|---|
| constraint * | string | Constraint name. |
| order | integer | New position in the application order (0 = first). |
| rename | string | New name (keys and skins follow). |
| settings | any |
set_event_keyFire an event at a time in an animation (games receive it during playback). Creates the event definition if it does not exist; int, float and string override its default values. Saves the project.| Parameter | Type | Description |
|---|---|---|
| animation * | any | |
| event * | any | |
| float | number | |
| int | integer | |
| string | string | |
| time * | number |
swap_namesarm_l <-> arm_r, hand.L <-> hand.R, left <-> rightvalidate_projectCheck a project for problems: structure, images missing from its work file, atlas or images folder, animations without keys, whether skeleton JSON 4.3 round-trips the data exactly, and whether binary .skel export is possible.| Parameter | Type | Description |
|---|---|---|
| path * | any |
world_to_localConvert a world point (Y up) into a bone's local coordinates, in the setup pose or at a time in an animation. Useful to place keys or attachments at a world position.| Parameter | Type | Description |
|---|---|---|
| animation | any | |
| bone * | any | |
| path * | any | |
| point * | array | |
| time | number |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.6K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and 2 more.
- ✓No dynamic code executionScanned 95 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 1.6K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README