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