openlair/openskill/evo-threejs-obj-export

Claude Code and agent skill by openlair/openskill

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

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-export

Semi-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
  1. Dynamic Import: Load the Three.js object definition file using await import(filePath)
  2. Scene Construction: Call the exported function (e.g., createScene()) to get the 3D object hierarchy
  3. Coordinate Transform: Apply +90° (Math.PI/2) X-rotation to convert Y-up (Three.js) to Z-up (Blender)
  4. Matrix Baking: Call scene.updateMatrixWorld(true) — CRITICAL in headless Node.js (no renderer to auto-update)
  5. OBJ Export: Use OBJExporter.parse(scene) to serialize to OBJ string
  6. 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 .matrixWorld during 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:

javascript
import { generate_export_script } from './scripts/generate_export_script.mjs';
const scriptContent = generate_export_script('/root/data/object.js', '/root/output/object.obj');
create_obj_export_node_script(inputPath, outputPath, scriptOutputPath)

Generates AND writes the export script to disk, then optionally executes it.

Usage from Node.js:

javascript
import { create_obj_export_node_script } from './scripts/generate_export_script.mjs';
await create_obj_export_node_script('/root/data/object.js', '/root/output/object.obj', '/root/export_runner.mjs');

Direct Execution

The skill also provides a ready-to-run export script:

bash
node /app/environment/skills/evo-threejs-obj-export/scripts/run_export.mjs /root/data/object.js /root/output/object.obj

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/openlair/openskill/evo-threejs-obj-export/badge)](https://verified-skill.com/skills/openlair/openskill/evo-threejs-obj-export)

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