blend

Package blend implements parsing of Blender files.

  • Owner: mewspring/blend
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

blend

Build Status
Coverage Status
GoDoc

The blend project provides support for reading blend files, which are used by Blender.

Documentation

Documentation provided by GoDoc.

  • blend: implements parsing of Blender files.
    • block: implements parsing of blend file blocks.

Installation

go get github.com/mewmew/blend

To parse more complex blend files "block/struct.go" and "block/parse.go" may need to be regenereted. To regenerate these two files for any given blend file, use the blendef tool.

go get github.com/mewmew/blend/cmd/blendef
cd $GOPATH/src/github.com/mewmew/blend/block
blendef /path/to/complex.blend

A more detailed description is given in the "self-describing format" section.

Examples

  • Extract an embedded thumbnail from a blend file.

      go get github.com/mewmew/blend/examples/blendview
      cd $GOPATH/src/github.com/mewmew/blend/testdata
      blendview block.blend
    

Extracted thumbnail

Self-describing format

One unique feature of blend files is that they contain a full definition of every structure used in its file blocks. The structure definitions are stored in the DNA block.

All block structure definitions ("block/struct.go") and the block parsing logic ("block/parse.go") have been generating by parsing the DNA block of "testdata/block.blend".

The tool which was used to generate these two files is located at:

github.com/mewmew/blend/cmd/blendef

More complex blend files may contain structures which are not yet defined in the block package. If so, use blendef to regenerate "struct.go" and "parse.go" for the given blend file.

Public domain

The source code and any original content of this repository is hereby released into the public domain.

Main metrics

Overview
Name With Ownermewspring/blend
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:
所有者活动
Created At2013-03-28 05:04:10
Pushed At2018-10-24 06:30:14
Last Commit At2018-10-24 08:30:13
Release Count0
用户参与
Stargazers Count25
Watchers Count3
Fork Count7
Commits Count67
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private