Character Studio & Rigging Editors

PinePaper’s character rigging workflow combines the Character Studio modal (CharacterStudioModal.js), three dark-themed refinement <dialog> editors (CharacterBoundaryEditor.js, CharacterArmEditor.js, CharacterProjectionEditor.js), the floating Rigging Tools panel (#riggingControlsOverlay), and RiggingSystem / VisionPuppeteer.

Character Studio (#characterStudioBtn)

Click Characters (#characterStudioBtn) in the left tool rail — or Open Character Studio (#openCharacterStudioFromRigBtn) inside the Rigging panel — to open #characterStudioModal. It organizes workflows across four tabs:

  1. Library & Presets (library): Choose a skin palette (#csSkinSelect: explorer, shadow, astronaut, ranger, automaton, scarlet), toggle heart/brain glow accents (#csCelGlowToggle), and click Insert onto Canvas ([data-cs-insert]) or Insert + Drive with Camera ([data-cs-insert-cam]). Includes the 19-bone cel_skeleton preset alongside person, cat, bird, and more.
  2. Upload & Auto-Rig (upload): Stage a single PNG/JPG/WebP/SVG (#csSingleFileInput) or a layered character folder containing info.json + layer PNGs (#csFolderInput, handled by LayeredCharacterImport). Run Offline Click-to-Rig ([data-cs-offline-rig]) on-device (ClientCharacterBuilder for PNGs, GuidedRigBuilder for SVGs/canvas items) or Cloud Auto-Rig ([data-cs-cloud-rig]) with graceful offline fallback.
  3. Refine Parts & Rig (refine): Direct launchers for Character Boundary Editor, Arm, Wrist & Garment Editor, Projection & Mirror Editor, and Guided Rig Builder. When launched from Character Studio, modals cleanly dismiss the studio backdrop (onExitStudio) so canvas interactions are unobstructed.
  4. Animate & Live Puppet (animate):
    • Live Puppeteer: Select 'camera', 'sample', 'file', or 'canvas-video' in #csPuppetSourceSelect, optionally enable hand tracking (#csPuppetHandsToggle), and toggle [data-cs-live-puppet] with mounted #csPuppetPreview + #csPuppetOverlay.
    • Pose Presets: Apply [data-cs-pose] presets (idle, walk_00, walk_04, wave, jump, crouch) through RiggingSystem.
    • Keyboard Test Mode: Toggle [data-cs-test-mode] (CharacterController walk/jump/crouch via Arrow keys) and optionally hide the modal ([data-cs-hide-canvas]) to view the canvas.
    • Sprite Sheet: Generate, preview (#csSpriteSheetImg), play on canvas ([data-cs-sprite-play]), and export PNG + JSON ([data-cs-sprite-export]).

Refinement <dialog> Editors

All three editors use the dark editor palette (#1e293b / #0f172a slate surfaces, #475569 borders, #f8fafc text) and remain accessible both from Character Studio Tab 3 and from #characterEditorsSection in #riggingControlsOverlay:

Editor ID Capabilities
CharacterBoundaryEditor #character-boundary-editor Edits clip masks on clipped Group or unclipped Raster parts. Validates minimum 3 points, enclosed area, duplicate points, and non-crossing polygon edges. Provides actionable empty-state CTAs when no raster parts exist.
CharacterArmEditor #character-arm-editor Adjusts active rig limb angles/lengths (RiggingSystem), provides direct PNG/SVG upload into Click-to-Rig / Guided Rig Builder, and edits KG-corrected arm, wrist, foot, and garment geometry with validation and undo.
CharacterProjectionEditor #character-projection-editor Adjusts depth projection scaleX/scaleY (0.2–3.0) and horizontal flip (mirror) across items referenced by bone.attachedItemIds, syncing FK, relations, overlay, and undo history.

Floating Rigging Panel (#riggingControlsOverlay)

Opened via #riggingToolBtn, the panel provides bone overlay/show-all/move toggles, skeleton selector, Create Character from Image (#characterBuilderSection), quick-start rig presets, Attach Items Wizard (#rigWizardContainer), bone properties & constraints (#boneConstraintDetails), item attachment & path skinning (#attachItemBtn, #detachItemBtn, #skinSelectedChainBtn, #quickAttachBtn), poses & pose stitching, shape keys, sprite sheet generation (#spriteSheetSection), and embedded Vision Puppeteer controls (#visionPuppeteerSourceSelect, #visionPuppeteerToggleBtn, #visionPuppeteerRecordBtn, #visionPuppeteerMappingBlock).