npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pusher.blender

v0.1.2

Published

pusher.blender is a module for reading data from .blend Blender files

Downloads

8

Readme

pusher.blender

pusher.blender is a module for parsing data from .blend files saved by Blender. The file format is described on the blender.org site.

Note: please encourage further development by providing feedback on this module and how you use it!

Examples

In the pusher.blender directory, run the examples:

$ node examples/example-01.js
$ node examples/example-02.js
etc.

The examples demonstrate how to extract data from the .blend file. For example, here's some of the partial output from example-01.js

Opening file:  data/unitCube-000.blend
File version:  257
Mesh at 0x2959559940 total vertices/faces/edges: 8/6/12
Object:
{ 
  ...
  mat: 4026607364,
  ...   
  totvert: 8,
  totedge: 12,
  totface: 6,
  ...
  loc: [ 5.960464477539063e-8, -1.1920928955078125e-7, 0 ],
  size: [ 1.0000004768371582, 1.0000004768371582, 1 ],
  rot: [ 0, 0, 0 ],
  texflag: 1,
  drawflag: 67,
  smoothresh: 30,
  ... }

Usage

(See the "examples" folder for in the git repository for more details.)

The parser is fairly low-level: it simply makes it easier to traverse the Blender "SDNA" structures. It works by reading in the index of all types, structures, and blocks.

From there, the client code still needs to traverse the blocks of interest. This is left to the client in order to (a) avoid loading what the client does not need, (b) avoid enforcing use of "intermediate" data structure for 3D point, normals, etc. that might require yet-another format conversion.

The examples are the best way to understand the library:

Unit Tests

Unit testing uses node-unit. The standard command npm install --dev will install the development dependencies. Then run the tests using:

npm test

Benchmarks

Sorry, none exist yet!

License

Licensed under the MIT license.