You're blocking ads, which pay for BlenderNation. Read about other ways to support us.

Using Blender's presets in Python

0

Diego Gangl writes:

Looking to add support for presets in your addon? Read on to find out how!

There’s a built-in presets system in Blender used for operators and panels. The good news is that it’s Python based and easy to use. Presets are Python files that manually set values. When you select a preset in the menu that particular script is read from disk and run. Adding/removing presets involves creating or deleting py files from the presets folder. This is handled for us, but you might want to keep it mind for other things (like packaging presets).

Leave A Reply

To add a profile picture to your message, register your email address with Gravatar.com. To protect your email address, create an account on BlenderNation and log in when posting a message.