kayforkind/skill-slice/3d-articulated-print-in-place
Claude Code and agent skill by kayforkind/skill-slice
- community
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-placeSKILL.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
numpyandnumpy-stlfor the Python STL generator.
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:
| Mechanism | Motion | Key Design Rules | |
|---|---|---|---|
| Ball-and-socket | Multi-axis rotation | Ball ≥ 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 rotation | Pin 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. | |
| Gears | Rotational meshing | Module ≥ 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 links | Articulated chain | Wire 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 / accordion | Continuous flex | Wall 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 Type | PLA (mm) | PETG (mm) | TPU 95A (mm) | Application | |
|---|---|---|---|---|---|
| Press Fit | 0.00–0.10 | 0.05–0.15 | 0.00–0.05 | Permanent snap-fit caps | |
| Snug Fit | 0.10–0.20 | 0.15–0.25 | 0.05–0.15 | Removable caps, tight pivots | |
| Sliding Fit | 0.20–0.30 | 0.25–0.35 | 0.15–0.25 | Drawer slides, pistons | |
| Loose / Hinge | 0.30–0.40 | 0.35–0.50 | 0.25–0.35 | Hinges, articulated toys | |
| Free Rotation | 0.40–0.60 | 0.50–0.70 | 0.30–0.50 | Bearings, 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 Diameter | Add 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
- 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.
- Run auto-calibration on the P1S: vibration compensation, flow dynamics, flow rate — for each filament spool.
- First layer calibration: Print the built-in first-layer test pattern. First layer should be smooth and flat — no gaps, no excessive squish.
- Clean build plate: Wash textured PEI with dish soap and warm water. Wipe with isopropyl alcohol (90%+) between prints.
- 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:
- Download a tolerance test from MakerWorld or Printables (search "print in place tolerance test").
- Print with the same filament, profile, and settings planned for the final model.
- Try to free each test gap starting from the largest.
- Record the smallest gap that separates cleanly — this is the printer's minimum clearance for that material/profile.
- 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:
| Setting | Value | Notes | |
|---|---|---|---|
| Layer Height | 0.16–0.20 mm | 0.16 for fine joints, 0.20 for speed | |
| First Layer Height | 0.20 mm | Standard adhesion | |
| Line Width | 0.42 mm | Slight over-width for adhesion | |
| Wall Loops | 3 | Strength + detail balance | |
| Top/Bottom Layers | 4 | Solid caps | |
| Infill | 15–20% Gyroid | Strength-to-weight ratio |
Precision Settings (Quality > Precision in Bambu Studio):
| Setting | Value | Notes | |
|---|---|---|---|
| X-Y Hole Compensation | 0.05–0.10 mm | Enlarges holes for shrink | |
| X-Y Contour Compensation | -0.02 to -0.05 mm | Shrinks outer walls for clearance | |
| Elephant Foot Compensation | 0.10–0.15 mm | Prevents first-layer fusion |
Speed Settings:
| Setting | Value | Notes | |
|---|---|---|---|
| Outer Wall Speed | 100–150 mm/s | Slower for accuracy | |
| Inner Wall Speed | 150–200 mm/s | Faster than outer | |
| Infill Speed | 200–250 mm/s | Speed fine for infill | |
| First Layer Speed | 50 mm/s | Critical for adhesion + accuracy | |
| Travel Speed | 300–400 mm/s | Fast 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:
- Create a new
.scadfile in the working directory (this folder does not ship one). - Put these parameters at the top and implement ball-and-socket segments from the mechanism table in Step 1:
- Render (F6) and export STL (F7).
- 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
- Slice in Bambu Studio with PiP settings. Confirm supports are OFF.
- Print on the P1S.
- 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:
| Setting | Value | Rationale | |
|---|---|---|---|
| Print Speed | 20–40 mm/s | Prevents filament buckling | |
| Retraction Distance | 0–2 mm | Excess retraction causes jams | |
| Retraction Speed | 20–25 mm/s | Gentle, prevents stretching | |
| Temperature | 220–235°C (95A TPU) | Per manufacturer | |
| Bed Temperature | 50–60°C | Good adhesion, no warping | |
| Cooling Fan | 50–80% | Solidify without over-cooling | |
| Infill (hinge area) | 100% | Voids cause crack initiation | |
| Infill (body) | 15–25% | Save material | |
| Wall Count | 3–4 | Structural 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.
- Over-extrusion — Calibrate flow rate. Reduce by 2–5% and retest.
- Insufficient clearance — Increase gap by 0.05–0.1 mm in CAD.
- Nozzle too close (Z-offset) — Raise nozzle slightly. First layer should not be transparently thin.
- Wet filament — Dry the filament. Moisture causes foaming and expansion.
- Too hot — Lower nozzle temperature by 5–10°C to reduce ooze.
- 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
- SKILL.md in the repositoryCheckingskills/3d-articulated-print-in-place/SKILL.md
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
[](https://verified-skill.com/skills/kayforkind/skill-slice/3d-articulated-print-in-place)