Skip to main content

A 2D skeletal rigging, posing, and animation system

Project description

renpy-rigging

A 2D skeletal rigging, posing, and animation system for Ren'Py — including a full visual editor and a cue-based film production pipeline.

Why renpy-rigging?

Ren'Py games typically display characters as static sprites — a handful of pre-drawn poses swapped in and out. If you want a character to breathe, gesture, walk across a room, or dance with a partner, you're either drawing every frame by hand or leaving it out.

renpy-rigging gives Ren'Py characters a skeleton. Separate PNG body parts connect at joints that rotate, scale, and blend between poses — the same technique 2D game engines use, but designed specifically for Ren'Py's visual novel workflow. You build characters in a visual editor, and the same rendering code runs in your game. No export step, no format conversion, no drift between what you author and what players see.

What you see in the editor is exactly what ships in your game.

What You Can Do

Animate characters from reusable parts

Draw body parts as individual PNGs, connect them at joints, and create a library of named poses. Blend between poses, loop idle animations, layer breathing over walking — all from the same set of art assets. Poses are composable deltas, so a "wave" pose only stores the arm rotation, not the whole body.

Dress and equip characters at runtime

Swap clothing with overlays (a shirt replaces the torso art) or attach independent objects with attachments (a gun docks to a hand joint with its own skeleton and animations). Both use named slots for clean mutual exclusion — equipping a tommy-gun automatically holsters the pistol.

Build complete environments

Compose backgrounds, layered props, placed characters, and ambient sound into scenes. Define named locations and scripted actions (curtain draws, day-to-night transitions) that trigger from your game script.

Direct multi-character sequences

The Film Studio uses a cue-based model inspired by theatrical lighting cues: cues run in sequence, tracks within a cue run in parallel, steps within a track run in sequence. Choreograph synchronized movement, camera pans, title cards, scrolling credits, and soundtracks — then play them in real time in Ren'Py or export to GIF/MP4.

Author everything visually

The Ren'Py Rigging Studio is a Ren'Py app with four screens — rig/pose editing, animation timeline, scene composition, and clip sequencing. Mouse-driven manipulation with keyboard nudging, undo/redo, and live preview. Because the editor uses the same renderer as your game, there's no WYSIWYG gap.

Quick Start

Install the runtime

pip install renpy-rigging

Load and display a character

init python:
    from renpy_rigging import RigRenderer

    vince = RigRenderer.from_directory("characters/vince")
# Static pose
show expression vince.show_pose("neutral") as vince:
    xalign 0.5 yalign 0.7

# Looping animation
show expression vince.play_animation("idle", loop=True) as vince:
    xalign 0.5 yalign 0.7

Use overlays and attachments

vince.add_overlay("broadway-brawlers-shirt")
vince.add_attachment("tommy-gun")
vince.set_attachment_pose("tommy-gun", "firing")

Load a scene

init python:
    from renpy_rigging import SceneManager, register_channels

    register_channels()
    scene_mgr = SceneManager(os.path.join(renpy.config.gamedir, "scenes"))
    scene_mgr.register_images()
$ scene_mgr.show("speakeasy")

See the Ren'Py Integration Guide for full setup and usage.

Asset Directory Layout

game/
  characters/
    vince/
      rig.json           # Skeleton and parts
      poses.json         # Named poses (deltas from neutral)
      animations.json    # Pose sequences with timing
      overlays.json      # Layered clothing/accessories
      attachments.json   # Bound props/weapons
      parts/             # PNG body part images
      overlays/          # Overlay images per set
      sounds/            # Sound effects
  attachments/
    tommy-gun/
      rig.json           # Attachment's own skeleton
      poses.json
      animations.json
      parts/
  scenes/
    speakeasy/
      scene.json         # Background, layers, placed entities
      parts/             # Scene prop images
  clips/
    stage-show/
      clip.json          # Cue-based multi-character sequence

All data is stored as human-readable, hand-editable JSON. See Data Formats for the specification of each file type.

Documentation

For Users

For Editor Users (Studio)

For Developers

  • Architecture — system components, rendering pipeline, and design principles
  • Data Formats — JSON specification for every asset type
  • Demo Overview — sample game and bundled assets

License

MIT License — see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

renpy_rigging-0.5.3.tar.gz (89.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

renpy_rigging-0.5.3-py3-none-any.whl (98.0 kB view details)

Uploaded Python 3

File details

Details for the file renpy_rigging-0.5.3.tar.gz.

File metadata

  • Download URL: renpy_rigging-0.5.3.tar.gz
  • Upload date:
  • Size: 89.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for renpy_rigging-0.5.3.tar.gz
Algorithm Hash digest
SHA256 2db2d725f243365a7cbe3286b5e11a56a9d29fe21699cb1aa98162a19b89203f
MD5 4e06ee4bda645fff2be3745d5dfafc26
BLAKE2b-256 660097ecd76ffe456a46d9d46c723d8b23c241594081c9a622a486e3156b465f

See more details on using hashes here.

File details

Details for the file renpy_rigging-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: renpy_rigging-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 98.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for renpy_rigging-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c09be25baffb16d66c95949cf791b83a7eaddf287957cebebe7511441f9782ba
MD5 44e815017bda7adfc4b112f545f62899
BLAKE2b-256 cc89528c87f6ab93e0ebd46e35cbba8125c6b597c1242c7a887f1a7234a3bf6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page