Threejs obj export

From XuShuwenn/RedAct · View interactive version

Threejs obj export is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Export Three.js scenes to Blender-ready OBJ with baked transforms, instanced mesh expansion, and Z-up conversion.

How to use this skill

Skill file

Three.js to OBJ (Blender Z-up) Export

Reusable workflow to convert a Three.js scene/object into a Blender-importable OBJ file while preserving original world-space positions. Handles instanced meshes, nested transforms, and applies the required -90° X rotation to switch from Three.js (Y-up) to Blender (Z-up).

When to Use

Use this skill when you need to:

Core Workflow

  1. Inspect the source object
  1. Prepare the environment
  1. Load or construct the scene
  1. Expand InstancedMesh
  1. Bake world transforms into geometry
  1. Convert to Blender Z-up
  1. Export to OBJ
  1. Validate the result

Verification

Perform these checks after export:

Common Pitfalls

Optional Script Usage

This skill includes a helper module to streamline instanced expansion, baking, Z-up rotation, and OBJ export. You can import it into your export script.

Example usage outline:

Example (pseudocode outline):

Success criteria:

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.