openlair/openskill/evo-threejs-obj-export
Claude Code and agent skill by openlair/openskill
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Generates a Node.js ES module script that dynamically imports a Three.js object definition file, constructs a scene graph, applies a -90 deg X-rotation for Y-up to Z-up coordinate conversion (Blender compatibility), forces world matrix updates, serializes the scene to Wavefront OBJ format using OBJExporter, and writes the result to disk.
Install
npx vskill@latest install openlair/openskill/evo-threejs-obj-exportSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as openlair/openskill/evo-threejs-obj-export.
evo-threejs-obj-export
Purpose
Convert Three.js scene definitions (ES module files exporting geometry constructors) into Wavefront OBJ files suitable for import into Blender (Z-up coordinate system).
Key Concepts
Pipeline Steps
- Dynamic Import: Load the Three.js object definition file using
await import(filePath) - Scene Construction: Call the exported function (e.g.,
createScene()) to get the 3D object hierarchy - Coordinate Transform: Apply +90° (Math.PI/2) X-rotation to convert Y-up (Three.js) to Z-up (Blender)
- Matrix Baking: Call
scene.updateMatrixWorld(true)— CRITICAL in headless Node.js (no renderer to auto-update) - OBJ Export: Use
OBJExporter.parse(scene)to serialize to OBJ string - File I/O: Write the OBJ string to disk with
fs.writeFileSync
Critical Details
- Three.js v0.175.0 is an ES Module — requires
"type": "module"in package.json - Import Three.js:
import * as THREE from 'three' - Import OBJExporter:
import { OBJExporter } from 'three/addons/exporters/OBJExporter.js' - The rotation is applied to a wrapper Group containing the imported object, NOT to individual geometries
updateMatrixWorld(true)must be called AFTER setting rotation but BEFORE parsing- The OBJExporter reads
.matrixWorldduring traversal — without explicit update, transforms are ignored - Object.js files may export named functions like
createScene()— check module exports dynamically
Coordinate Transform Math
Rotation matrix Rx(-π/2) maps:
- Y-up → Z-up: (x, y, z) → (x, z, -y)
- This is the standard Three.js-to-Blender conversion
Utility Functions
generate_export_script(inputPath, outputPath)
Generates the content of a Node.js ES module script as a string.
Usage from Node.js:
create_obj_export_node_script(inputPath, outputPath, scriptOutputPath)
Generates AND writes the export script to disk, then optionally executes it.
Usage from Node.js:
Direct Execution
The skill also provides a ready-to-run export script:
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 repositoryCheckingtasks-evolved/threejs-to-obj/environment/skills/evo-threejs-obj-export/SKILL.md
Popularity
- Repository stars
- 95
- Repository forks
- 3
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
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/openlair/openskill/evo-threejs-obj-export)