Post #80: : post_00082
🏷️ Tags
pie-menu hotkeys intermediate unsolved
⚙️ Related PME Features
- 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