kayforkind/skill-slice/3d-articulated-print-in-place

Claude Code and agent skill by kayforkind/skill-slice

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Engineers FDM print-in-place mechanisms (ball joints, knuckle hinges, flexi walls, gears) with per-side clearances and Bambu P1S slicer knobs. Trigger on PiP toys, living hinges, or fused/broken joint diagnosis. Never treat this folder as a Blender organic-sculpt guide or a shipped OpenSCAD/.3mf pack.

Install

npx vskill@latest install kayforkind/skill-slice/3d-articulated-print-in-place

SKILL.md

The same SKILL.md was published earlier as kayforkind/skill-slice/3d-articulated-print-in-place.

Articulated Print-in-Place Design & Engineering Guide

Complete workflow for designing, calibrating, and printing articulated print-in-place (PiP) mechanisms on FDM printers, focused on the Bambu Lab P1S. Includes tolerance engineering tables, mechanism taxonomies, failure diagnostics, and parametric code in OpenSCAD and Python.


When to Use

Use this skill when the user needs to:

  • Design or generate articulated print-in-place 3D models (dragons, snakes, octopi, fidget toys, chains, gears).
  • Engineer clearances and tolerances for PiP mechanisms on FDM printers.
  • Calibrate a Bambu Lab P1S (or similar CoreXY) for PiP printing.
  • Diagnose PiP failures (fused joints, broken joints, grinding motion, first-layer fusion).
  • Generate parametric ball-and-socket chains via OpenSCAD or Python.
  • Work with TPU living hinges or flexible compliant mechanisms.

Trigger keywords: print-in-place, PiP, articulated, flexi, ball-and-socket, living hinge, knuckle hinge, tolerance test, clearance gap, Bambu P1S, fidget toy, chain mail.


Prerequisites

Hardware
  • Bambu Lab P1S (enclosed CoreXY, direct drive, automatic bed leveling) or equivalent FDM printer.
  • 0.4 mm nozzle (hardened steel or stainless steel) — all tolerance tables assume this.
  • Textured PEI build plate.
Software
  • Bambu Studio slicer (for P1S profile and precision settings).
  • OpenSCAD (for parametric model generation): install from openscad.org.
  • Python 3.10+ with numpy and numpy-stl for the Python STL generator.
powershell
python -m pip install numpy numpy-stl
Filament
  • PLA (recommended default for PiP), PETG (use with caution), or TPU 95A (advanced).
  • Filament must be dried before printing (see Procedure step 3).
Companion files

This folder does not include generator scripts or a Bambu Studio profile. Use the clearance table in Step 2 and the P1S slicer values in Steps 5–6. If a parametric chain is needed, author OpenSCAD or numpy-stl locally from the parameter block in Step 7.


Procedure

Step 1 — Identify the Mechanism Type

Select the mechanism based on the required motion:

MechanismMotionKey Design Rules
Ball-and-socketMulti-axis rotationBall ≥ 8 mm; socket opening = 65–75% of ball dia; clearance 0.3 mm/side (PLA); socket wall ≥ 1.5 mm; print socket opening upward.
Pin hinge (knuckle)Single-axis rotationPin dia 3–5 mm (small) / 6–10 mm (structural); radial clearance 0.2–0.3 mm; odd knuckle count (3 or 5); chamfer knuckle ends 45°; print hinge axis vertical.
GearsRotational meshingModule ≥ 1.0 mm; backlash 0.3–0.5 mm total; ≥ 12 teeth; pressure angle 20°; axle clearance 0.3 mm radial; print flat, gear axis vertical.
Chain linksArticulated chainWire dia 2–4 mm; inner clearance 0.4–0.6 mm; aspect ratio 2:1; chamfer all inner edges; minimum 3 links for test.
Flexi / accordionContinuous flexWall 0.8–1.2 mm (2–3 lines); fold angle 30–60°; fold pitch 2–4 mm; PLA for rigidity or TPU for extreme flex.
Step 2 — Determine Clearances from the Tolerance Table

All values are per-side clearances (total gap is double). Assumes 0.4 mm nozzle, 0.2 mm layer height.

Fit TypePLA (mm)PETG (mm)TPU 95A (mm)Application
Press Fit0.00–0.100.05–0.150.00–0.05Permanent snap-fit caps
Snug Fit0.10–0.200.15–0.250.05–0.15Removable caps, tight pivots
Sliding Fit0.20–0.300.25–0.350.15–0.25Drawer slides, pistons
Loose / Hinge0.30–0.400.35–0.500.25–0.35Hinges, articulated toys
Free Rotation0.40–0.600.50–0.700.30–0.50Bearings, wheels, ball joints

Orientation impacts:

  • XY plane (horizontal): Best accuracy (±0.1 mm). Circles become polygons — add 0.1–0.2 mm compensation.
  • Z axis (vertical): Limited by layer height. Stair-stepping reduces effective clearance. Overhangs > 45° sag and close gaps.
  • First layer (elephant's foot): Lateral expansion 0.1–0.3 mm. Add 0.5 mm chamfer on all bottom edges. Use slicer Elephant Foot Compensation.

Hole compensation (add to diameter):

Hole DiameterAdd to Diameter
< 5 mm+0.3 mm
5–15 mm+0.2 mm
> 15 mm+0.1 mm
Step 3 — Dry Filament and Calibrate the P1S
  1. Dry filament:
  • PLA: 45°C for 4–6 hours.
  • PETG: 65°C for 6–8 hours.
  • TPU: 50°C for 10–12 hours.
  • Use the P1S heatbed or an external dryer.
  1. Run auto-calibration on the P1S: vibration compensation, flow dynamics, flow rate — for each filament spool.
  1. First layer calibration: Print the built-in first-layer test pattern. First layer should be smooth and flat — no gaps, no excessive squish.
  1. Clean build plate: Wash textured PEI with dish soap and warm water. Wipe with isopropyl alcohol (90%+) between prints.
  1. Check nozzle: Inspect for wear. A worn nozzle produces inconsistent extrusion that ruins tight tolerances.
Step 4 — Print a Tolerance Test Coupon

Before printing any PiP model:

  1. Download a tolerance test from MakerWorld or Printables (search "print in place tolerance test").
  2. Print with the same filament, profile, and settings planned for the final model.
  3. Try to free each test gap starting from the largest.
  4. Record the smallest gap that separates cleanly — this is the printer's minimum clearance for that material/profile.
  5. Design all PiP gaps to be at least 0.05 mm larger than this minimum.
Step 5 — Configure Bambu Studio Slicer Settings for PiP

Quality Settings:

SettingValueNotes
Layer Height0.16–0.20 mm0.16 for fine joints, 0.20 for speed
First Layer Height0.20 mmStandard adhesion
Line Width0.42 mmSlight over-width for adhesion
Wall Loops3Strength + detail balance
Top/Bottom Layers4Solid caps
Infill15–20% GyroidStrength-to-weight ratio

Precision Settings (Quality > Precision in Bambu Studio):

SettingValueNotes
X-Y Hole Compensation0.05–0.10 mmEnlarges holes for shrink
X-Y Contour Compensation-0.02 to -0.05 mmShrinks outer walls for clearance
Elephant Foot Compensation0.10–0.15 mmPrevents first-layer fusion

Speed Settings:

SettingValueNotes
Outer Wall Speed100–150 mm/sSlower for accuracy
Inner Wall Speed150–200 mm/sFaster than outer
Infill Speed200–250 mm/sSpeed fine for infill
First Layer Speed50 mm/sCritical for adhesion + accuracy
Travel Speed300–400 mm/sFast travel, use Z-hop

Other Critical Settings:

  • Z-Hop: Enable at 0.4 mm — prevents nozzle from dragging across printed parts.
  • Seam Position: "Aligned" or "Back" — keep seam blobs away from joints.
  • Wall Order: Inner/Outer/Inner ("Sandwich") — best dimensional accuracy.
  • Supports: NONE. PiP models must print without supports.
  • Brim: Avoid if possible. If needed, use narrow brim (3 mm) and exclude from joint areas.
Step 6 — Set Material-Specific P1S Profile

PLA (recommended for PiP):

  • Nozzle: 210–220°C
  • Bed: 55–60°C (textured PEI)
  • Fan: 80–100% after first layer
  • Flow ratio: calibrate per spool (typical 0.95–0.98)

PETG (use with caution for PiP):

  • Nozzle: 240–250°C
  • Bed: 70–80°C
  • Fan: 30–60%
  • Flow ratio: calibrate (typical 0.93–0.97)
  • Add 0.1 mm extra clearance vs PLA values
  • Higher stringing risk — tune retraction carefully

TPU 95A (advanced users):

  • Nozzle: 220–235°C
  • Bed: 50–60°C
  • Fan: 50–70%
  • Speed: max 40 mm/s outer wall, 60 mm/s inner wall
  • Direct drive only (P1S is direct drive — fine)
  • Reduce retraction to 0.5–1.0 mm
Step 7 — Generate the Model (If Generating Parametrically)

Option A — OpenSCAD:

  1. Create a new .scad file in the working directory (this folder does not ship one).
  2. Put these parameters at the top and implement ball-and-socket segments from the mechanism table in Step 1:
openscad
segment_count = 6; // Number of segments
ball_diameter = 8; // Ball diameter (mm)
clearance = 0.3; // Per-side clearance (mm)
socket_wall = 1.6; // Socket wall thickness (mm)
socket_opening = 0.70; // Opening as fraction of ball dia (0.6–0.8)
segment_length = 18; // Segment length (mm)
segment_width = 12; // Segment width (mm)
segment_height = 10; // Segment height (mm)
connector_diam = 5; // Connector rod diameter (mm)
chamfer_size = 0.5; // Bottom chamfer (mm)
fn_resolution = 48; // Facet count
  1. Render (F6) and export STL (F7).
  2. Open the STL in Bambu Studio and apply PiP settings from Step 5.

Option B — Python (numpy-stl):

Author a local generator using the same parameter names as Option A (segment_count, ball_diameter, clearance, and the rest of the block above). This folder does not ship a Python generator. Export articulated_chain.stl, then open it in Bambu Studio and apply PiP settings.

Step 8 — Print and Free the Joints
  1. Slice in Bambu Studio with PiP settings. Confirm supports are OFF.
  2. Print on the P1S.
  3. After printing, free joints by:
  • Scoring the joint line with a hobby knife before applying force.
  • Twisting gently — do not pull straight.
  • Working the joint back and forth 20–30 times to smooth surfaces.
Step 9 — Apply TPU Living Hinge Rules (If Using TPU)

Critical dimensions:

  • Hinge thickness: 0.4–0.6 mm (1–2 perimeter widths with 0.4 mm nozzle).
  • Hinge length (along bend axis): ≥ 3× thickness for stress distribution.
  • Transition radius: 1–2 mm fillet from hinge web to rigid body.
  • Bend radius: minimum 2× hinge thickness.

Layer orientation rule (HARD):

  • Layers MUST run parallel to the bend axis.
  • If layers are perpendicular to the bend, the hinge delaminates on the first cycle.
  • Print the hinge web in the XY plane with the bend axis aligned to X or Y.

TPU print settings for mechanisms:

SettingValueRationale
Print Speed20–40 mm/sPrevents filament buckling
Retraction Distance0–2 mmExcess retraction causes jams
Retraction Speed20–25 mm/sGentle, prevents stretching
Temperature220–235°C (95A TPU)Per manufacturer
Bed Temperature50–60°CGood adhesion, no warping
Cooling Fan50–80%Solidify without over-cooling
Infill (hinge area)100%Voids cause crack initiation
Infill (body)15–25%Save material
Wall Count3–4Structural integrity

TPU PiP clearances:

  • Reduce clearances by 0.05–0.10 mm compared to PLA (flexibility compensates).
  • Apply light dusting of talcum powder or PTFE spray to mating surfaces after printing.
  • Dry filament before printing: 50–55°C for 10–12 hours.

Pitfalls

Joints Fused Solid

Parts do not move at all after printing.

  1. Over-extrusion — Calibrate flow rate. Reduce by 2–5% and retest.
  2. Insufficient clearance — Increase gap by 0.05–0.1 mm in CAD.
  3. Nozzle too close (Z-offset) — Raise nozzle slightly. First layer should not be transparently thin.
  4. Wet filament — Dry the filament. Moisture causes foaming and expansion.
  5. Too hot — Lower nozzle temperature by 5–10°C to reduce ooze.
  6. Slicer fix — Apply negative X-Y Contour Compensation (-0.05 to -0.15 mm).
Joints Break When Freed

Parts snap cleanly at the joint when trying to break them free.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kayforkind/skill-slice/3d-articulated-print-in-place/badge)](https://verified-skill.com/skills/kayforkind/skill-slice/3d-articulated-print-in-place)

Something wrong with this skill or its page? Tell us.