← Catalog

@luxuride-pi/unity-blender

pi extension: /unity-blender binder that moves meshes and materials between a live Blender session and a live Unity project

Package

Install

Install with PiG

pig install npm:@luxuride-pi/unity-blender

Install with Pi

pi install npm:@luxuride-pi/unity-blender
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.3 (README.md). PiG does not review it.

pi-unity-blender

The binder: moves meshes and materials between a live Blender session and a live Unity Editor.

Tools

The binder registers two tools; detail, transfer mechanics and the failure modes live in docs/DESIGN.md.

ToolWhat it does
unity_blender_statusreport both bridges: alive/busy/locked on each side
unity_blender_transfermove geometry/materials between live Blender and Unity (one direction per call)

The /unity-blender command engages the cross-application manager (unity-blender-manager), which routes to per-side skills and to unity_blender_transfer. It is a sibling top-level manager, not a parent of the per-side managers: it holds all three extensions on its extensions: line, owns both build loops as well as what crosses between them, and is the manager to reach when a task touches both applications or moves geometry between them. The prompt deliberately contains no build procedure — it routes to the per-side skills (unity-live-state, blender-modules, unity-csharp, …) and to the unity-blender-transfer skill, which carry the loops and the failure modes. What stays in the prompt is what no single skill can own: the two-applications-at-once rules — one unity_blender_status first, one mutating operation at a time across BOTH bridges, a transfer is a step inside a build rather than a separate task, and the manager never authors or eyeballs anything.

The unity-blender-transfer skill ships in skills/ and is published through a resources_discover hook added to index.ts. Without that hook the directory is invisible to pi: the skill would exist on disk and never load.

Install

pi install npm:@luxuride-pi/unity-blender

It also needs the GPL bridge package, which carries the Blender-side Python for both this extension and @luxuride-pi/blender (see License):

git clone --depth 1 https://github.com/luxuride-pi-extensions/pi-blender-bridge \
  ~/.pi/agent/extensions/pi-blender-bridge

Neither extension can find it from npm — npm 12 disables git and remote specs by default — so it is a clone (or PI_BLENDER_BRIDGE_ASSETS_DIR pointing at one), and the tools fail with the clone command in the message rather than a stack trace.

The unity-blender-manager agent must also exist in $PI_AGENT_DIR/agents, and it needs both side extensions installed for its extensions: line. The binder ships its agent templates, so install them once from the installed copy — from the binder's repo, not another extension's installer, which would race over the same destination file:

node scripts/install-agents.mjs            # dry run: print resolved paths
node scripts/install-agents.mjs --write    # install into $PI_AGENT_DIR/agents

Subagent activation

Manager sessions delegate through pi's subagent tool. A session on a model that can add tools mid-conversation starts with only subagents_enable active, and the manager calls it once before the first spawn; every other session has subagent from the start and never touches the loader. To keep subagent always active, set "toolActivation": "eager" in ~/.pi/agent/extensions/subagent/config.json, or start pi with --exclude-tools subagents_enable.

Transfer mechanics, staging, editor detection and per-tool behaviour: docs/DESIGN.md.

Releases

Every release is both a git tag and an npm package. The package publishes as @luxuride-pi/unity-blender from the release workflow via npm trusted publishing (OIDC from GitHub Actions — no publish token exists anywhere).

pi can also install this extension from a git ref: pi clones, checks out the ref, runs npm install --legacy-peer-deps, and loads the extension's TypeScript straight from source — so a tag is the artifact; there is no build step and nothing to compile.

Install a release

pi install npm:@luxuride-pi/unity-blender@^<version>
# or, pinned to a git tag:
pi install git:github.com/luxuride-pi-extensions/pi-unity-blender@v<version>

Cut a release

  1. Bump version in package.json and commit that on its own.
  2. Tag the commit that contains the bump — the tag and the version must agree:
    git tag v<version> && git push origin master --tags
    
  3. .github/workflows/release.yml packs the tarball, checks it, and publishes the release with generated notes.

The workflow refuses to guess: it fails when the tag is not on the commit being released, and again when the tag does not match package.json's version. Bump the version before tagging; the tag is not the place to bump.

License

MIT — this package: the tool surface, the binder logic, the skills and the agent prompts.

The three transfer templates do not ship here. export_fbx.py, import_obj.py and import_fbx.py import bpy, which makes them GPL-3.0-or-later, so they live in @luxuride-pi/blender-bridge under blender/binder/ and this package stages copies of them at transfer time. That is why the tarball contains no Python at all: a package cannot be MIT and carry GPL code at the same time. Resolution order and the PI_BLENDER_BRIDGE_ASSETS_DIR override are identical to @luxuride-pi/blender's, so one bridge installation serves both extensions.