LumosLab-Innovation/3D-lab-skills / plugins/threejs-lab/skills/threejs-studio
threejs-studio
VerifiedCreate image options, get human approval on localhost, author geometry in Three.js or Blender MCP, then code Three.js motion, contraction and interaction for either model. Use for prompt-to-3D, image-to-model, animated interactive assets or resuming visual approval across coding agents. No paid image-to-3D service.
| File | Kind | Size |
|---|---|---|
| .npmignore | other | 51 B |
| SKILL.md | skill md | 5.9 KB |
| agents/openai.yaml | config | 269 B |
| assets/examples/blender-pulse.py | script | 2.2 KB |
| assets/examples/pulse-behavior.mjs | script | 1.6 KB |
| assets/examples/pulse-model.mjs | script | 1012 B |
| package-lock.json | manifest | 14.0 KB |
| package.json | manifest | 235 B |
| references/blender-setup.md | markdown | 1.1 KB |
| references/blender.md | markdown | 3.0 KB |
| references/hard-surface.md | markdown | 4.3 KB |
| references/image-options.md | markdown | 1.5 KB |
| references/licenses/img2threejs.txt | markdown | 11.1 KB |
| references/licenses/vibe3d.txt | markdown | 1.1 KB |
| references/motion-interaction.md | markdown | 3.9 KB |
| references/reconstruction.md | markdown | 2.3 KB |
| references/threejs.md | markdown | 2.8 KB |
| scripts/blender_export.py | script | 2.2 KB |
| scripts/cli.mjs | script | 6.2 KB |
| scripts/server.mjs | script | 7.7 KB |
| scripts/state.mjs | script | 9.8 KB |
| web/app.js | script | 7.8 KB |
| web/index.html | other | 3.7 KB |
| web/motion.js | script | 2.1 KB |
| web/style.css | other | 8.2 KB |
| web/viewer.html | other | 3.8 KB |
| web/viewer.js | script | 11.6 KB |
scripts/blender_export.py
View on GitHub"""Run in Blender (including through execute_blender_code), not a normal Python process.
Export only the named collection to portable GLB and an editable asset .blend.
Existing files, unrelated objects, the open file and selection are preserved.
"""
from pathlib import Path
import re
def export_collection(collection_name, output_dir, basename="model"):
import bpy
if not re.fullmatch(r"[A-Za-z0-9_-]+", basename):
raise ValueError("Use a simple output basename")
collection = bpy.data.collections.get(collection_name)
if collection is None or not any(obj.type == "MESH" for obj in collection.all_objects):
raise ValueError("Named asset collection must contain a mesh")
if bpy.context.mode != "OBJECT":
raise ValueError("Switch Blender to Object Mode before export")
out = Path(output_dir).expanduser().resolve()
glb, blend = out / f"{basename}.glb", out / f"{basename}.blend"
if glb.exists() or blend.exists():
raise FileExistsError("Output exists; use a new revision basename")
out.mkdir(parents=True, exist_ok=True)
selected = list(bpy.context.selected_objects)
active = bpy.context.view_layer.objects.active
try:
bpy.ops.object.select_all(action="DESELECT")
objects = [obj for obj in collection.all_objects if obj.type in {"MESH", "EMPTY", "ARMATURE"}]
for obj in objects:
obj.select_set(True)
bpy.context.view_layer.objects.active = next(obj for obj in objects if obj.type == "MESH")
result = bpy.ops.export_scene.gltf(
filepath=str(glb), export_format="GLB", use_selection=True,
export_yup=True, export_extras=True,
)
if "FINISHED" not in result or not glb.exists():
raise RuntimeError("GLB export did not finish")
# Write a library containing just the asset collection, not the user's open project.
bpy.data.libraries.write(str(blend), {collection}, fake_user=True, compress=False)
finally:
bpy.ops.object.select_all(action="DESELECT")
for obj in selected:
obj.select_set(True)
bpy.context.view_layer.objects.active = active
return {"glb": str(glb), "blend": str(blend), "collection": collection_name}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |