Skip to content

Preliminary code for plotting data in Blender. (not blender 2.8... yet)

Notifications You must be signed in to change notification settings

zeffii/BlenderSciViz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlenderSciViz

Preliminary code for plotting data in Blender.

###What this project hopes to achieve?
Show various ways in which the Blender Python API, called bpy, can be used to generate meshes, shaders and vector graphics. These examples are intended to help you code your own visualizations, and can be used on their own or as part of the sci_viz module.

###Useful code snippets

These are tagged depending on if they are visible in a render or only in the 3d viewport. Where it makes sense, examples of both are given.

Scatter plots

Line plots

3D surface plot

Node scripting

  • mini node connection grammar, simplifies connecting existing nodes. example grammar: "Node.001|Color > MixRGB.002|0". Full grammar specs are in the file.

General obj utility scripts

  • bounding box tools, provides mix, max and distance for an object, calculated in world or local coordinates

The sci_viz module
The sci_viz module can be placed inside the blender scripts folder like ../scripts/modules/sci_viz , to conveniently import the various utilities. For example if you need to make a series of node links then add these lines to the top of your python script and you can use the node mini grammar to connect nodes.

import sci_viz 
from sci_viz.node_tools import make_link

Recipes

Here's a broad collection curated recipes. (still work in progress): https://github.com/zeffii/BlenderPythonRecipes/wiki

Gallery

waveform zheight shader

###Useful addons

About

Preliminary code for plotting data in Blender. (not blender 2.8... yet)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages