.blend file parser for Armory/Kha
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/blend
LICENSE.md
README.md

README.md

blend

Embed and read blend files at runtime in Armory

Usage:

  • git clone https://github.com/armory3d/blend (or Download Zip) into your project_root/Libraries folder
  • Place .blend file into project_root/Bundled
  • Create a new script trait:
Data.getBlob("test.blend", function(blob:kha.Blob) {
	var bl = new Blend(blob);
	trace(bl.dir("Scene")); // List Scene fields
	var scenes = bl.get("Scene"); // Get scenes
	if (scenes.length > 0) {
		trace(scenes[0].get("id").get("name")); // Print scene name
	}
});