gp_interpolate/__init__.py

46 lines
931 B
Python
Raw Normal View History

2023-11-30 15:08:32 +01:00
bl_info = {
"name": "gp interpolate",
"author": "Christophe Seux, Samuel Bernou",
"version": (0, 1, 0),
"blender": (3, 6, 0),
"location": "",
"description": "Interpolate Grease pencil strokes",
"warning": "",
"wiki_url": "",
"tracker_url": "",
"category": "Animation"}
import sys
from pathlib import Path
import importlib
# Ensure the name of the module in python import
module_name = Path(__file__).parent.name
sys.modules.update({'gp_interpolate': importlib.import_module(module_name)})
from gp_interpolate import interpolate_strokes, ui
modules = (
2023-11-30 15:08:32 +01:00
interpolate_strokes,
ui,
)
2023-11-30 15:08:32 +01:00
# if "bpy" in locals():
# import importlib
2023-11-30 15:08:32 +01:00
# for mod in modules:
# importlib.reload(mod)
import bpy
def register():
2023-11-30 15:08:32 +01:00
print('Register gp_interpolate')
for mod in modules:
mod.register()
def unregister():
for mod in reversed(modules):
mod.unregister()