Post #80: ![](https://blenderartists.org/user_avatar/blenderartists.org/roaoao/48/37600_2.

📋 Metadata

🏷️ Tags

pie-menu hotkeys intermediate unsolved

  • Python Scripting
  • Custom Icons

💬 Content

roaoao:

Use this code in Custom tab:

addon = 'mesh_looptools'; enabled = addon in C.user_preferences.addons; icon = 'CHECKBOX_HLT' if enabled else 'CHECKBOX_DEHLT'; op_idname = 'wm.addon_disable' if enabled else 'wm.addon_enable'; L.operator(op_idname, 'Loop Tools', icon=icon).module = addon

ok got it … but what if file has init.py file . i mean …then what ? its not working with that


🔗 View on Blender Artists