Threejs part exporter

From XuShuwenn/RedAct · View interactive version

Threejs part exporter is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Parse a Three.js scene, group meshes by nearest named THREE.Group, and export individual and merged part OBJ files.

How to use this skill

Skill file

Three.js Part Mesh Exporter

Extract part-level structure from a Three.js scene by treating named THREE.Group nodes as parts, assign meshes to their nearest named parent, and export:

Use this skill when you need a reproducible workflow to inspect a Three.js scene, discover its parts, and save geometry to OBJ for downstream use.

When to Use

Core Workflow

1) Prepare the environment

2) Load the scene

3) Identify parts and assign meshes

4) Export geometry

5) Directory layout

Verification

Common Pitfalls (and Fixes)

Success Criteria

Optional Script Usage

A generic Node.js script is provided (scripts/export_three_parts.mjs).

Example:

node scripts/export_three_parts.mjs \

--scene ./data/object.js \

--fn createScene \

--out ./output \

--include-root=false

Arguments:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.