Results 1 to 1 of 1
  1. #1

    Auto enable addon?

    Is it possible to auto enable addon? Is there some line of code I could place in the addon. I found several lines of code ,but can't seem to get anything to work.


    Edit:
    Solved my problem for what I was needing, still may be a better way to do it.

    #1
    Code:
    addon_utils.enable(
            module_name, default_set=False, persistent=False, handle_error=None)
    #2
    Code:
    import addon_utils
    addon_utils.enable("my_addon")
    #3
    Code:
    bpy.ops.wm.addon_enable(module = "addon")
    Last edited by AFWS; 12-Jan-17 at 09:15.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •