Sybren A. Stüvel 09a0866c14 Cache open blend files
This simplifies blend file handling, ensuring that blend files are only
opened once. Otherwise it would be harder to handle things like dependency
diamonds (libraries that are referenced via multiple paths through multiple
other libraries).
2018-03-07 17:13:47 +01:00
2018-02-22 14:50:24 +01:00

Blender Asset Tracer BAT🦇

Script to manage assets with Blender.

Blender Asset Tracer, a.k.a. BAT🦇, is the replacement of BAM and blender-file

Development is driven by choices explained in T54125.

Paths

There are two object types used to represent file paths. Those are strictly separated.

  1. bpathlib.BlendPath represents a path as stored in a blend file. It consists of bytes, and is blendfile-relative when it starts with //. It can represent any path from any OS Blender supports, and as such should be used carefully.
  2. pathlib.Path represents an actual path, possibly on the local filesystem of the computer running BAT. Any filesystem operation (such as checking whether it exists) must be done using a pathlib.Path.

When it is necessary to interpret a bpathlib.BlendPath as a real path instead of a sequence of bytes, BAT assumes it is encoded as UTF-8. This is not necessarily true, and possibly using the local filesystem encoding might be better, but that is also no guarantee of correctness.

Description
Blender Asset Tracer can parse blend files and find their dependencies. (ADV fork)
Readme 66 MiB
1.21 Latest
2026-02-20 11:01:20 +01:00
Languages
Python 99.8%
Shell 0.2%