Blender 2.26 plugin writing question

Hi,

I’m curious about creating a custom import plugin for the latest blender version (2.26 as of now), but finding documentation on how to go about doing this has been difficult to locate. I’ve searched around but I can’t find any api docs for 2.26 or tutorials on how to set up the system to have the blender python modules–I can’t find them anywhere after installing. Any help on this matter would be greatly appreciated :slight_smile:

~~alaterale

P.S. As a sidenote, is it possible to gouraud/gradation/smooth shading in blender? ie. set up each vertex with an RGB color and then have it blend inbetween. The format I’m trying to import uses that, and its the only feature I’m unsure if blender can support. Thanks!

Blender’s python API has remained unchanged from 2.25 to 2.26, so here’s the 2.25 documentation: http://www.blender.org/modules/documentation/225PythonDoc/index.html

To smooth meshes in Blender, select it and press the “Set Smooth” button in the Edit buttons window. What you’re talking about with the color blending is called vertex colors, or vertex painting. With a mesh outside of edit mode, press V and go to the paint buttons.

Thanks for the tip! I saw the 2.25 documentation, but I didn’t know it was the same for 2.26. Another question while I’m at it is, where are the blender python modules installed to? Or do you have to have a separate download to get them from blender itself? I can’t locate them and a script that does “import Blender” like I’ve seen on other scripts here gives me an error. I’m probably missing something rather obvious, but I can’t figure it out.

Yeah, vertex shading is the same as what I was talking about. It’s called by different names in different places. The red opengl book calls it gouraud and smooth shading, and I’ve seen it referred to as gradation shading as well. Well, thanks for the info on that too :slight_smile:

~~alaterale

All python modules are embedded within Blender. So a ‘import blender’ should be enough.
If that results in an error, I would like to know on what platform you are using blender.

With regards,
Michel