Forum: Blender


Subject: Toni's adventures in Blenderland

odf opened this issue on Dec 09, 2025 ยท 107 posts


odf posted Wed, 10 December 2025 at 5:21 PM

Well, I have a question that kind of goes in the opposite direction: how do I create materials programmatically in Blender? More specifically, where can I find some examples or tutorials that show how it's done? The docs for the Blender Python API look a bit sparse, but maybe I just haven't found the right link yet.

I've written a tiny Python library that creates a partial texturing network from formulas and then renders a preview or exports a Poser material file with a compound node in it. That's easy because those files are human-readable and figuring out the format is easier than sifting through cryptic API docs. Now I'd like to add Blender as an output option, which would enable me to get my existing textile materials working without having to recreate them by hand, because those are much more complicated than that simple skin material I showed.

The direct Blender equivalent would be to write out a .blend file, but I suspect calling a script from within Blender to generate the nodes and then saving the finished material to a .blend file makes more sense.

-- I'm not mad at you, just Westphalian.