Contents
What do you need to know about the Blender tutorial?
This tutorial is designed to help technical artists or developers learn to extend Blender. An understanding of the basics of Python is expected for those working through this tutorial. Before going through the tutorial you should… Be familiar with the basics of working in Blender. Know how to run a script in Blender’s Text editor.
Can you build Blender as a Python module?
The option to build Blender as a Python module is not officially supported, in the sense Blender.org isn’t distributing it along with regular releases, Currently, its a build option you can enable, for your own use. This is a build option to be able to import blender into python and access its modules rendering animations.
How does the unregister function work in Blender?
The operator can be run in the same way as described in the previous section. When the add-on is enabled, Blender executes the code and runs the register () function. When the add-on is disabled, Blender runs the unregister () function. The destination of the add-on depends on your Blender configuration.
How to install blender text as an add on?
To install the Blender text as an add-on, you will first have to save it on drive. Take care to obey the naming restrictions that apply to Python modules and end with a.py extension. Once the file is on drive, you can install it as you would for an add-on downloaded online. Open the Preferences ‣ Add-ons ‣ Install… and select the file.
What happens when you run a script in Blender?
Now try copying this script into Blender and run it on the default Cube. Make sure you click to move the 3D cursor before running as the duplicate will appear at the cursor’s location. After running, notice that when you go into Edit Mode to change the Cube – all of the copies change. In Blender, this is known as Linked Duplicates.
What are the common property types in Blender?
There are a variety of property types that are used for tool settings, common property types include: int, float, vector, color, Boolean and string. These properties are handled differently to typical Python class attributes because Blender needs to display them in the interface, store their settings in keymaps and keep settings for reuse.
Are there any good add ons for Blender?
The simplest possible add-on above is useful as an example but not much else. This next add-on is simple but shows how to integrate a script into Blender using an Operator which is the typical way to define a tool accessed from menus, buttons and keyboard shortcuts.