2023-11-30 15:08:32 +01:00
|
|
|
bl_info = {
|
2024-07-24 11:59:35 +02:00
|
|
|
"name": "GP Interpolate",
|
2023-11-30 15:08:32 +01:00
|
|
|
"author": "Christophe Seux, Samuel Bernou",
|
2024-07-24 18:42:26 +02:00
|
|
|
"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
|
2023-11-30 15:02:05 +01:00
|
|
|
|
|
|
|
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,
|
2023-11-30 15:02:05 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
import bpy
|
|
|
|
|
|
|
|
def register():
|
2023-11-30 15:08:32 +01:00
|
|
|
print('Register gp_interpolate')
|
2023-11-30 15:02:05 +01:00
|
|
|
for mod in modules:
|
|
|
|
mod.register()
|
|
|
|
|
|
|
|
def unregister():
|
|
|
|
for mod in reversed(modules):
|
|
|
|
mod.unregister()
|