auto_walk/__init__.py

69 lines
1.5 KiB
Python

# SPDX-License-Identifier: GPL-2.0-or-later
bl_info = {
"name": "Unfold Anim Cycle",
"description": "Anim tools to develop walk/run cycles along a curve",
"author": "Samuel Bernou",
"version": (0, 7, 1),
"blender": (3, 0, 0),
"location": "View3D",
"warning": "WIP",
"doc_url": "https://gitlab.com/autour-de-minuit/blender/unfold_anim_cycle",
"category": "Object"}
if 'bpy' in locals():
import importlib as imp
imp.reload(properties)
imp.reload(preferences)
imp.reload(OP_setup)
imp.reload(OP_setup_curve_path)
imp.reload(OP_animate_path)
imp.reload(OP_expand_cycle_step)
imp.reload(OP_snap_contact)
imp.reload(OP_world_copy_paste)
imp.reload(panels)
else:
from . import properties
from . import preferences
from . import OP_setup
from . import OP_setup_curve_path
from . import OP_animate_path
from . import OP_expand_cycle_step
from . import OP_snap_contact
from . import OP_world_copy_paste
from . import panels
import bpy
from . import fn
mods = (
properties,
preferences,
OP_setup,
OP_setup_curve_path,
OP_animate_path,
OP_expand_cycle_step,
OP_snap_contact,
OP_world_copy_paste,
panels,
)
def register():
if bpy.app.background:
return
for module in mods:
module.register()
panels.update_panel(fn.get_addon_prefs(), bpy.context)
def unregister():
if bpy.app.background:
return
for module in reversed(mods):
module.unregister()
if __name__ == "__main__":
register()