File indexing completed on 2025-01-19 03:59:55
0001 import importlib 0002 import bpy 0003 from . import blender_export, operators 0004 0005 0006 def menu_func_export(self, context): 0007 for cls in operators.registered_classes: 0008 self.layout.operator(cls.bl_idname, text=cls.bl_label) 0009 0010 0011 def register(): 0012 # Ensure modules are refreshed when the addon is reloaded 0013 importlib.reload(blender_export) 0014 importlib.reload(operators) 0015 for cls in operators.registered_classes: 0016 bpy.utils.register_class(cls) 0017 bpy.types.TOPBAR_MT_file_export.append(menu_func_export) 0018 0019 0020 def unregister(): 0021 for cls in operators.registered_classes: 0022 bpy.utils.unregister_class(cls) 0023 bpy.types.TOPBAR_MT_file_export.remove(menu_func_export) 0024 0025 0026 bl_info = { 0027 "name": "Lottie/TGS export", 0028 "description": "Exports Lottie or Telegram animated stickers from blender", 0029 "author": "Mattia Basaglia", 0030 "version": (0, 6, 4), 0031 "blender": (2, 80, 0), 0032 "location": "File > Export", 0033 "wiki_url": "https://mattbas.gitlab.io/python-lottie/index.html", 0034 "tracker_url": "https://gitlab.com/mattbas/python-lottie/issues", 0035 "category": "Import-Export", 0036 } 0037