Is there a way to use Blender's preset system for operator attributes? I. e. preset menu inside operator redo panel (F6).


You can enable presets for an operator using the PRESET option.


class SomeTool(bpy.types.Operator):
    bl_idname = "object.some_tool"
    bl_label = "Some Tool"
    bl_options = {'PRESET'}

    # - snip -

The preset directory will be set based on the operator name and created on demand.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.