4
$\begingroup$

How can blender be started with all add-ons enabled?

This is useful when testing if all addons can be loaded without any errors.

$\endgroup$
8
$\begingroup$

This can be done using --python-expr.

blender \
    --factory-startup \
    --python-expr \
    "[__import__('bpy').ops.preferences.addon_enable(module=m.__name__) for m in __import__('addon_utils').modules()]"

Some add-ons can be ignored, in this example {'cycles', 'render_freestyle_svg'}.

blender \
    --factory-startup \
    --python-expr \
    "[__import__('bpy').ops.preferences.addon_enable(module=m.__name__) for m in __import__('addon_utils').modules() if m.__name__ not in {'cycles', 'render_freestyle_svg'}]"
$\endgroup$

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.