1 unstable release
0.1.0 | Oct 3, 2023 |
---|
#14 in #blend
25KB
529 lines
Unblend
A small command-line program that explodes Blender files (.blend
) into their various parts and writes them out as an archive.
Features
-
Accepts a
blend
-file, either as file-path or thru STDIN (using-
as file). -
Parses the blocks the file is made out of.
- The block-
code
is used as directory. - The block-
address
is used as file-name. - Block-data is written to
<CODE>/<ADDR>.bin
- Respective metadata to
<CODE>/<ADDR>.txt
- The block-
-
Almost fully decodes the
DNA1
block.- See the resulting
DNA1.tsv
andDNA1/*.txt
files.
- See the resulting
-
Outputs an archive in either
*.zip
or*.tar
format.- Format is selected via the outputs file-extension.
- Output can go to STDOUT via
-
(but only as*.tar
).
-
Excluding data from the archive being written, via
-x <GLOB>
.
Installation
- Have cargo & rust installed.
- Run
cargo install unblend
.
Usage
In general: unblend <FILE> <OUT>
FILE
is theblend
-files path.OUT
is the output path and extension for the archive.
Detailed help is available via unblend --help
.
References
Dependencies
~6–16MB
~233K SLoC