auto_walk/__init__.py

64 lines
1.5 KiB
Python
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0-or-later
2021-04-05 01:35:12 +02:00
bl_info = {
2021-04-05 01:39:27 +02:00
"name": "Unfold Anim Cycle",
2022-03-29 18:46:33 +02:00
"description": "Anim tools to develop walk/run cycles along a curve",
2021-04-05 01:35:12 +02:00
"author": "Samuel Bernou",
"version": (0, 7, 0),
2022-03-29 18:46:33 +02:00
"blender": (3, 0, 0),
2021-04-05 01:35:12 +02:00
"location": "View3D",
2021-04-05 01:39:27 +02:00
"warning": "WIP",
"doc_url": "https://gitlab.com/autour-de-minuit/blender/unfold_anim_cycle",
2022-03-31 17:07:04 +02:00
"category": "Object"}
2021-04-05 01:35:12 +02:00
2021-04-08 19:25:05 +02:00
if 'bpy' in locals():
import importlib as imp
2022-03-29 18:46:33 +02:00
imp.reload(properties)
imp.reload(preferences)
imp.reload(OP_setup)
2021-04-08 19:25:05 +02:00
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:
2022-03-29 18:46:33 +02:00
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
2021-04-08 19:25:05 +02:00
import bpy
2021-04-05 01:35:12 +02:00
2022-03-29 18:46:33 +02:00
mods = (
properties,
preferences,
OP_setup,
OP_setup_curve_path,
OP_animate_path,
OP_expand_cycle_step,
OP_snap_contact,
OP_world_copy_paste,
panels,
2021-04-05 01:35:12 +02:00
)
def register():
2022-03-29 18:46:33 +02:00
if bpy.app.background:
return
for module in mods:
module.register()
2021-04-05 01:35:12 +02:00
def unregister():
2022-03-29 18:46:33 +02:00
if bpy.app.background:
return
for module in reversed(mods):
module.unregister()
2021-04-05 01:35:12 +02:00
if __name__ == "__main__":
register()