Flexbile Python use in Blender
This post is about using Python in Blender. It’s not a tutorial. It’s more of an encouragement to learn and experiment with Python.
Imagine you work on a piece. The first stage is very experimental. You look for what works and what doesn’t. At some point the piece and the process take shape. Some things become repetitive. It’s very useful to notice those patterns early and optimize them.
Lets say I’m working in ZBrush and I want to render in Blender. The geometry moves between those two pretty often. I don’t want to spend time clicking around to export and import meshes. Here is where Python comes in.
I want to quickly reimport meshes from ZBrush. I don’t want to manually reapply materials and I don’t want to manually delete previous versions. I don’t want to create a full plugin or a system for doing that. I want to create a beautiful piece. Python is there to help me but it isn’t the goal itself. I want something I can use very quickly. No fancy stuff. Simplicity and full control.
Here you can see the process I need:
This has been achieved with a simple Python script:
What’s so special about it? Nothing. Absolutely nothing. That’s the point. Something simple with paths hardcoded. I can reimport body mesh with:
I can quickly add more objects by just adding constants in the script file. You might think that this is the opposite of flexible. Yes, the script is pretty rigid. YOU should be flexible about using Python.
This script is part of the project. When I’m done I’ll archive it with the project. It’s not a system or a plugin. It’s some simple functionality that helps me solve specific issues in the workflow.
It does require some Python knowledge. You can’t be working on you piece and suddenly start learning Python. I mean, you can, but do you want to? You turned your PC to sculpt and you’re suddenly coding? I’m lucky enough because I work with Python. That allows me to write scripts like that quickly.
I’d like to convince you to step outside of your comfort zone. Learning Python can make you a better artist.
Yes, I know about GoB/GoZ. It’s a very limited plugin that doesn’t give a lot of control. It was always underwhelming.