📋 Metadata
- Author: draguu
- Date: 2016-03-12 21:14:24
- Type:
question - Reply to: post_00079
- Replies (1): post_00082
💬 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