xref: /freebsd/contrib/file/magic/Magdir/blender (revision 06c3fb27)
1
2#------------------------------------------------------------------------------
3# $File: blender,v 1.9 2022/12/21 15:53:27 christos Exp $
4# blender: file(1) magic for Blender 3D related files
5#
6# Native format rule v1.2. For questions use the developers list
7# https://lists.blender.org/mailman/listinfo/bf-committers
8# GLOB chunk was moved near start and provides subversion info since 2.42
9# Update:	Joerg Jenderek
10# URL: 		http://fileformats.archiveteam.org/wiki/BLEND
11#		http://www.blender.org/
12# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/b/blend.trid.xml
13#		http://formats.kaitai.io/blender_blend/index.html
14# Note:		called "Blender 3D data" by TrID
15#		and gzip compressed variant handled by ./compress
160		string	=BLENDER	Blender3D,
17#!:mime		application/octet-stream
18!:mime		application/x-blender
19!:ext		blend
20# no sample found with extension blender
21#!:ext		blend/blender
22>7		string	=_		saved as 32-bits
23>>8		string	=v		little endian
24>>>9		byte	x		with version %c.
25>>>10		byte	x		\b%c
26>>>11		byte	x		\b%c
27>>>0x40		string	=GLOB		\b.
28>>>>0x58	leshort	x		\b%.4d
29>>8		string	=V		big endian
30>>>9		byte	x		with version %c.
31>>>10		byte	x		\b%c
32>>>11		byte	x		\b%c
33>>>0x40		string	=GLOB		\b.
34>>>>0x58	beshort	x		\b%.4d
35>7		string	=-		saved as 64-bits
36>>8		string	=v		little endian
37>>9		byte	x		with version %c.
38>>10		byte	x		\b%c
39>>11		byte	x		\b%c
40>>0x44		string	=GLOB		\b.
41>>>0x60		leshort	x		\b%.4d
42>>8		string	=V		big endian
43>>>9		byte	x		with version %c.
44>>>10		byte	x		\b%c
45>>>11		byte	x		\b%c
46>>>0x44		string	=GLOB		\b.
47>>>>0x60	beshort	x		\b%.4d
48
49# Scripts that run in the embedded Python interpreter
500		string	#!BPY		Blender3D BPython script
51