blendertk
Blender 4.x+ tech-art toolkit mirroring mayatk's public API (btk.X ↔ mtk.X) — modeling, animation, materials, rigging, and scene-pipeline automation over native bpy/bmesh, plus one-click bridges into Marmoset, Substance Painter, RizomUV, Maya, Unity, and the browser. The tool panels over it are tentacle's.
blendertk is the Blender layer of the pythontk → uitk → {mayatk, blendertk} → tentacle ecosystem: the tools mayatk gives Maya, under the same names, so one tentacle panel serves both hosts.
Install
pip install blendertk
Blender 4.x+ (developed against 5.1 / Python 3.13). bpy comes from Blender itself.
The design, and what it buys
-
A mirror, by name and behavior. Each operation has mayatk's name, and its signature too wherever a shared panel makes the call. A panel is therefore written once, with no branch for either host:
import blendertk as btk btk.EditUtils.mirror(...) # mtk.EditUtils.mirror in Maya btk.SmartBake().execute() # mtk.SmartBake().execute() btk.SmartBake.restore() # mtk.SmartBake.restore()
-
The mirror is measured, not trusted. A script resolves every call tentacle's shared panels make against both libraries and lists each gap (PARITY_SURFACE.md). A call one host lacks must be hidden in that host's panel, or the check fails in CI. What is still unported, and in what order it will be, is in PARITY_AUDIT.md and PARITY_PORTING_PLAN.md.
-
Thin where Blender is already good. Where Blender ships a capability, blendertk is a thin adapter over the
bpy/bmeshoperator. Where it does not, the logic is written once in pythontk and both host libraries bind it, so neither holds a second copy to drift. -
Importing it never needs Blender. Every
bpyimport is deferred into the call that uses it, so the whole API is searched, documented and unit-tested with no Blender running.
Highlights
The tools themselves are described once, in mayatk's README: the shot tools, the Scene Exporter, Smart Bake, Texture Combine and the rigs do the same job here under the same names. What is particular to Blender:
- A Maya scene opens in Blender, and a Blender scene in Maya.
MayaSceneImportconverts a.ma/.mbthrough a headless Maya and imports the result, translating the shaders FBX cannot carry and rebuilding packed PBR maps.MayaBridge.send()goes the other way: it exports the selection and opens it in a Maya launched for it, andsave_as()writes the.ma/.mbwith no Maya window at all. - Lightmaps baked in Cycles, read by every exporter.
LightmapBakerbakes to a second UV set and records the result in the scene, where the FBX export to Unity, the GLB export and the live WebXR preview each find it. A scene with no bake exports as it always did. - One project folder for both hosts. Blender reads and writes Maya's
workspace.mel, so a project set up in either host is set up in the other. - Hierarchy sync against a
.blendor an.fbx. The scene is compared with a reference file; missing objects are stubbed or pulled in, extras are set aside, and renames and reparents are repaired. - Drive Blender from outside.
BlenderConnectionlaunches a background Blender of its own and runs code in it, as mayatk'sMayaConnectiondoes for Maya. The test suite runs this way, and an artist's open session is never touched.
Package map: the same subpackages, modules and classes as mayatk
| Package | What it covers |
|---|---|
anim_utils |
Shots suite (the Blender host of the shared pythontk shots engine, and the manifest and sequencer hosts tentacle's panels call), smart bake, blendshape animation, playblast, key scaling/staggering |
audio_utils |
Sound-strip CRUD over the Video Sequence Editor (deliberately not a mirror of Maya's DG-node audio machinery) |
cam_utils |
Camera utilities |
core_utils |
CoreUtils, AutoInstancer, Preview (uitk's PreviewController bound to a Blender session), script-job manager over bpy.app.handlers, diagnostics |
display_utils |
Color ID, exploded view, Blender-only OutlinerTint |
edit_utils |
EditUtils, mirror, cut-on-axis, duplicate (linear/radial/grid), bevel, bridge, snap, naming, curtain rig, target weld |
env_utils |
BlenderConnection, the blender operation host (BlenderSceneFiles), workspaces (workspace.mel shared with Maya), reference manager, hierarchy sync, FBX/USD, scene exporter, Maya + Unity bridges, WebXR preview, docked script console |
light_utils |
Lightmap baker + web export, HDR manager, lights-from-geometry |
mat_utils |
Game shader, material updater, texture path editor, shader templates, render opacity, image-to-plane, emissive groups, Marmoset + Substance live-RPC bridges |
node_utils |
NodeUtils, DataNodes (shared scene data carriers), the Channels engine |
nurbs_utils |
Curve helpers (relaxed mirror), ImageTracer, curve-to-tube |
render_utils |
Render engines, render settings + presets, render cameras, a rendered frame (mayatk's names; no IPR) |
rig_utils |
Constraints/drivers/armature primitives; tube / wheel / telescope / shadow / articulated rigs |
ui_utils |
BlenderUiHandler, the marking-menu host adapter (Qt running inside Blender, the activation key in Blender's own keymap), native-menu wrapper, Qt dock container, calculator, style setter |
uv_utils |
UV utilities, Texture Combine (material atlas combine + UV / texture transfer), Rizom bridge |
xform_utils |
Transforms and matrix IO |
What corresponds, and what is deliberately absent on each side and why: STRUCTURE.md. The whole public surface, searched live from the installed source: python -m pythontk ops run api.search "query=<words>".
Guides
- Scene data nodes — the
data_internal/data_exportcarriers and how their metadata rides into the FBX (Blender delta of mayatk's owner doc) - Shot Sequencer (mayatk, one guide for both hosts) — the per-shot animation timeline and its graph view; the panel's
?help links here - Emissive groups (mayatk, cross-package reference) — regions whose glow plays on its own, as materials; blendertk's
EmissiveGroupstags each copy on its node tree - Live WebXR preview (pythontk) — the shared DCC → glTF → headset pipeline behind
btk.WebXrPreview
Links
- Full API:
python -m pythontk ops run api.search "query=<words>"(the installed source, searched) - Structure / parity map:
STRUCTURE.md - Test suite:
tests/README.md— suite layout, sentinel conventions, fresh-instance runner - Changelog:
CHANGELOG.md - Contributor / AI-agent guide:
AGENTS.md - PyPI: https://pypi.org/project/blendertk/
- Issues: https://github.com/m3trik/blendertk/issues
License
GPL-3.0-or-later — see COPYING, plus an additional permission to combine it with mayatk, tentacle and Autodesk Maya (COPYING.EXCEPTION).
Metadata
Release files for blendertk 0.28.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blendertk-0.28.0-py3-none-any.whl | Python 3 | none | any | Details for blendertk-0.28.0-py3-none-any.whl |
Release files / blendertk-0.28.0-py3-none-any.whl
| Download URL | blendertk-0.28.0-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9581f81c1ad01d3d37b66f46184c8efe769bd69f61cc25d1e1092ea8e754142a
|
|
BLAKE2b-256 checksum How to use checksums |
1c5836fa77cac9065de0d5b98c1c8c7b0ec0d7adab04d4026f0f37e2c2f99872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Security for blendertk 0.28.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.