YAPF/extensions/blender
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz d7f494a0c9 Language bindings, KDE thumbnails, yapf compare, in-memory encoding
- yapf_encode() / yapf_free_buffer(): encode to memory; yapf_save uses it
- yapf.c also compiles as C++
- `yapf compare`: size and decode speed of the original format vs YAPF,
  with a lossless check
- bindings with tested examples: C++ (header-only), C# (P/Invoke),
  Rust (crate, builds the C code), Go (cgo), Java (FFM API, Java 22+),
  Zig (@cImport), LuaJIT (FFI), TypeScript types for the JS port;
  Python now encodes in memory
- docs/LANGUAGES.md and examples/ with measured results
- KDE Dolphin thumbnail plugin (KF6, CMake)
- README: honest status for Photoshop / VS Code / Figma (not run in the
  apps yet) and macOS (cross-compiled only), platform table

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 14:39:56 +02:00
..
yapf_image YAPF v1: fast byte-aligned format, SIMD, tools and plugins 2026-10-03 14:17:59 +02:00
build.py YAPF v1: fast byte-aligned format, SIMD, tools and plugins 2026-10-03 14:17:59 +02:00
README.md Language bindings, KDE thumbnails, yapf compare, in-memory encoding 2026-10-03 14:39:56 +02:00

YAPF for Blender

Import and export .yapf images in Blender 4.2 or later (tested with Blender 5.1).

  • File → Import → YAPF Image (.yapf) — optionally as a plane with a material that shows the image.
  • Image Editor → Image → Open YAPF… / Save as YAPF… (with mipmaps option).
  • Drag and drop .yapf files into the 3D Viewport (creates a plane), the Image Editor or a node editor.

Blender cannot read .yapf on its own, so imported images are packed into the .blend and survive saving and reopening.

Install

  1. Get yapf_image-blender.zip from the Releases, or build it (below).
  2. Blender → Edit → Preferences → Get Extensions → ⌄ → Install from Disk… and pick the zip.

The zip contains the native YAPF library for Windows, macOS and Linux (x64 and ARM64). Tested in Blender 5.1 on Linux; the Windows library is tested outside Blender, and the macOS libraries are cross-compiled and not yet run on a Mac. If no library matches your system, the extension still imports using a pure-Python decoder (numpy, bundled with Blender), but cannot export.

Build the zip

python3 extensions/blender/build.py            # library for this machine only
tools/build_release.sh                         # all platforms (needs zig)

Both write dist/yapf_image-blender.zip.