Blender 3D: Blending Into Python/Blender Python C API

Mini Unfinished Guide to adding a C/API extension

Add blurb- what this is good for etc.

Heres a mini tutorial

make sure to add the setattr and getattr values for class variable names. You don't have to do this, but you probably should eventually.

Recompile and test!

Voila

Note Sometimes not all variables are seen directly from the UI.
As fas as I know all blender datatypes are structs internally.
To find all the variables used by this DataType-
Look through the files in- Blender/source/blender/makesdna/...
They are named well and you can see all the variables.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.