gp_interpolate/__init__.py

41 lines
1.0 KiB
Python
Raw Permalink Normal View History

2023-11-30 15:08:32 +01:00
bl_info = {
"name": "GP Interpolate",
2023-11-30 15:08:32 +01:00
"author": "Christophe Seux, Samuel Bernou",
"version": (0, 9, 0),
2024-07-23 17:25:13 +02:00
"blender": (4, 0, 2),
2023-11-30 15:14:19 +01:00
"location": "Sidebar > Gpencil Tab > Interpolate",
"description": "Interpolate Grease pencil strokes over 3D",
2024-01-12 17:03:20 +01:00
"warning": "",
2023-11-30 15:14:19 +01:00
"wiki_url": "https://git.autourdeminuit.com/autour_de_minuit/gp_interpolate",
"tracker_url": "https://git.autourdeminuit.com/autour_de_minuit/gp_interpolate/issues",
2023-11-30 15:08:32 +01:00
"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)})
2023-12-12 14:04:35 +01:00
from gp_interpolate import interpolate_strokes, parent_layer, ui
modules = (
2023-11-30 15:08:32 +01:00
interpolate_strokes,
2023-12-12 14:04:35 +01:00
parent_layer,
2023-11-30 15:08:32 +01:00
ui,
)
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()