A .blend file
A Blender file (.blend) shows its version and the data blocks it holds, counted by code, read from the header and block headers with no Blender and no unpacking to disk. Block contents are not opened. Code: src/web/render/blend-read.ts (readBlend, sayBlend, pure), src/web/render/blend.ts (the page blend), src/tui/ui/blend-note.ts (the terminal blendNote).
What is shown
- Page: a
dlof version, pointer size (32 or 64-bit), byte order and block count; then a seconddlof blocks by code, most common first (SCscene,OBobject,MEmesh,MAmaterial and so on, shown asName (CODE)). Codes are sanitised and escaped. A file with no closing block says it may be cut short. - Terminal: in the workspace, the file's note is the size and the same facts, then one line per code with its count.
- MCP:
read_filecarriesabout: {version, codes}for a.blend, from the same reader.
Limits
| Limit | Value | Why |
|---|---|---|
| Read whole | 5 MB (RENDER_CAP.blend) | The page needs every block header; a file over the cap shows the source view with one line why. |
| Codes listed | 64 (CODE_CAP) | The rest are summed as "Other codes". |
Every block length is checked against what is left of the file before it is stepped over, so a lying length ends the read instead of looping.
Fallbacks
A gzip- or zstd-compressed .blend is not decompressed: it stays a binary. A file that does not open on BLENDER, has an unreadable version, or is cut short keeps the source view with the line "not a readable Blender file". Legacy 32-bit, big-endian and the Blender 5 header are read.