-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use panels instead of box elements. - Code simplificaton and cleanup.
- Loading branch information
1 parent
73c3c41
commit cc7d52e
Showing
12 changed files
with
4,573 additions
and
3,095 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,119 @@ | ||
# ##### BEGIN GPL LICENSE BLOCK ##### | ||
# | ||
# JewelCraft jewelry design toolkit for Blender. | ||
# Copyright (C) 2014-2018 Mikhail Rachinskiy | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# | ||
# ##### END GPL LICENSE BLOCK ##### | ||
|
||
|
||
bl_info = { | ||
'name': 'Commotion', | ||
'author': 'Mikhail Rachinskiy', | ||
'version': (1, 5, 0), | ||
'blender': (2, 77, 0), | ||
'location': '3D View > Tool Shelf', | ||
'description': 'Animation offset tools for motion graphics.', | ||
'wiki_url': 'https://github.com/mrachinskiy/commotion#readme', | ||
'tracker_url': 'https://github.com/mrachinskiy/commotion/issues', | ||
'category': 'Animation', | ||
} | ||
|
||
|
||
if 'bpy' in locals(): | ||
import importlib | ||
importlib.reload(preferences) | ||
importlib.reload(ui) | ||
importlib.reload(ops_anim) | ||
importlib.reload(ops_driver) | ||
importlib.reload(ops_shapekey) | ||
importlib.reload(ops_slow_parent) | ||
importlib.reload(ops_utils) | ||
"name": "Commotion", | ||
"author": "Mikhail Rachinskiy", | ||
"version": (1, 6, 0), | ||
"blender": (2, 77, 0), | ||
"location": "3D View > Tool Shelf", | ||
"description": "Animation offset tools for motion graphics.", | ||
"wiki_url": "https://github.com/mrachinskiy/commotion#readme", | ||
"tracker_url": "https://github.com/mrachinskiy/commotion/issues", | ||
"category": "Animation", | ||
} | ||
|
||
|
||
if "bpy" in locals(): | ||
import importlib | ||
|
||
importlib.reload(preferences) | ||
importlib.reload(ui) | ||
importlib.reload(ops_anim) | ||
importlib.reload(ops_driver) | ||
importlib.reload(ops_shapekey) | ||
importlib.reload(ops_slow_parent) | ||
importlib.reload(ops_utils) | ||
else: | ||
import bpy | ||
from bpy.props import PointerProperty, CollectionProperty | ||
from . import ( | ||
preferences, | ||
ui, | ||
ops_anim, | ||
ops_driver, | ||
ops_shapekey, | ||
ops_slow_parent, | ||
ops_utils, | ||
) | ||
|
||
# Extern | ||
from . import addon_updater_ops | ||
import bpy | ||
from bpy.props import PointerProperty, CollectionProperty | ||
from . import ( | ||
preferences, | ||
ui, | ||
ops_anim, | ||
ops_driver, | ||
ops_shapekey, | ||
ops_slow_parent, | ||
ops_utils, | ||
addon_updater_ops, | ||
) | ||
|
||
|
||
classes = ( | ||
preferences.PREFS_Commotion_Props, | ||
preferences.SCENE_Commotion_Props, | ||
preferences.WM_Commotion_SK_Collection, | ||
|
||
ui.VIEW3D_PT_Commotion_Shape_Key_Tools, | ||
ui.VIEW3D_PT_Commotion_Object_Tools, | ||
|
||
ops_shapekey.OBJECT_OT_Commotion_SK_Coll_Refresh, | ||
ops_shapekey.OBJECT_OT_Commotion_SK_Interpolation_Set, | ||
ops_shapekey.ANIM_OT_Commotion_SK_Auto_Keyframes, | ||
ops_shapekey.OBJECT_OT_Commotion_SK_Reset_Eval_Time, | ||
|
||
ops_anim.ANIM_OT_Commotion_Animation_Link, | ||
ops_anim.ANIM_OT_Commotion_Animation_Copy, | ||
ops_anim.ANIM_OT_Commotion_FCurves_To_NLA, | ||
ops_anim.ANIM_OT_Commotion_NLA_To_FCurves, | ||
ops_anim.NLA_OT_Commotion_Sync_Length, | ||
ops_anim.ANIM_OT_Commotion_Offset_Cursor, | ||
ops_anim.ANIM_OT_Commotion_Offset_Multitarget, | ||
ops_anim.ANIM_OT_Commotion_Offset_Name, | ||
|
||
ops_driver.ANIM_OT_Commotion_SK_Driver_Distance_Set, | ||
ops_driver.ANIM_OT_Commotion_SK_Driver_Expression_Copy, | ||
ops_driver.ANIM_OT_Commotion_SK_Driver_Target_Remap, | ||
ops_driver.ANIM_OT_Commotion_SK_Driver_Function_Register, | ||
ops_driver.ANIM_OT_Commotion_SK_Driver_Func_Expression_Get, | ||
ops_driver.ANIM_OT_Commotion_SK_Driver_Func_Expression_SET, | ||
|
||
ops_slow_parent.OBJECT_OT_Commotion_Slow_Parent_Offset, | ||
ops_slow_parent.OBJECT_OT_Commotion_Slow_Parent_Toggle, | ||
|
||
ops_utils.VIEW3D_OT_Commotion_Preset_Apply, | ||
ops_utils.OBJECT_OT_Commotion_Add_To_Group_Objects, | ||
ops_utils.OBJECT_OT_Commotion_Add_To_Group_Targets, | ||
) | ||
preferences.CommotionShapeKeyCollection, | ||
preferences.CommotionPreferences, | ||
preferences.CommotionPropertiesScene, | ||
ui.VIEW3D_PT_commotion_update, | ||
ui.VIEW3D_PT_commotion_shape_keys, | ||
ui.VIEW3D_PT_commotion_sk_fcurves, | ||
ui.VIEW3D_PT_commotion_sk_nla, | ||
ui.VIEW3D_PT_commotion_sk_drivers, | ||
ui.VIEW3D_PT_commotion_ob_fcurves, | ||
ui.VIEW3D_PT_commotion_ob_nla, | ||
ui.VIEW3D_PT_commotion_slow_parent, | ||
ops_shapekey.OBJECT_OT_commotion_sk_coll_refresh, | ||
ops_shapekey.OBJECT_OT_commotion_sk_interpolation_set, | ||
ops_shapekey.ANIM_OT_commotion_sk_auto_keyframes, | ||
ops_anim.ANIM_OT_commotion_animation_link, | ||
ops_anim.ANIM_OT_commotion_animation_copy, | ||
ops_anim.ANIM_OT_commotion_fcurves_to_nla, | ||
ops_anim.ANIM_OT_commotion_nla_to_fcurves, | ||
ops_anim.NLA_OT_commotion_sync_length, | ||
ops_anim.ANIM_OT_commotion_offset_cursor, | ||
ops_anim.ANIM_OT_commotion_offset_multitarget, | ||
ops_anim.ANIM_OT_commotion_offset_name, | ||
ops_driver.ANIM_OT_commotion_sk_driver_distance_set, | ||
ops_driver.ANIM_OT_commotion_sk_driver_expression_copy, | ||
ops_driver.ANIM_OT_commotion_sk_driver_target_remap, | ||
ops_driver.ANIM_OT_commotion_sk_driver_function_register, | ||
ops_driver.OBJECT_OT_commotion_sk_reset_eval_time, | ||
ops_driver.ANIM_OT_commotion_sk_driver_func_expression_get, | ||
ops_driver.ANIM_OT_commotion_sk_driver_func_expression_set, | ||
ops_slow_parent.OBJECT_OT_commotion_slow_parent_offset, | ||
ops_slow_parent.OBJECT_OT_commotion_slow_parent_toggle, | ||
ops_utils.VIEW3D_OT_commotion_preset_apply, | ||
ops_utils.OBJECT_OT_commotion_add_to_group_objects, | ||
ops_utils.OBJECT_OT_commotion_add_to_group_targets, | ||
) | ||
|
||
|
||
def register(): | ||
addon_updater_ops.register(bl_info) | ||
addon_updater_ops.register(bl_info) | ||
|
||
for cls in classes: | ||
bpy.utils.register_class(cls) | ||
for cls in classes: | ||
bpy.utils.register_class(cls) | ||
|
||
bpy.types.Scene.commotion = PointerProperty(type=preferences.SCENE_Commotion_Props) | ||
bpy.types.WindowManager.commotion_skcoll = CollectionProperty(type=preferences.WM_Commotion_SK_Collection) | ||
bpy.types.Scene.commotion = PointerProperty(type=preferences.CommotionPropertiesScene) | ||
bpy.types.WindowManager.commotion_skcoll = CollectionProperty(type=preferences.CommotionShapeKeyCollection) | ||
|
||
|
||
def unregister(): | ||
addon_updater_ops.unregister() | ||
addon_updater_ops.unregister() | ||
|
||
for cls in classes: | ||
bpy.utils.unregister_class(cls) | ||
for cls in classes: | ||
bpy.utils.unregister_class(cls) | ||
|
||
del bpy.types.Scene.commotion | ||
del bpy.types.WindowManager.commotion_skcoll | ||
del bpy.types.Scene.commotion | ||
del bpy.types.WindowManager.commotion_skcoll | ||
|
||
|
||
if __name__ == '__main__': | ||
register() | ||
if __name__ == "__main__": | ||
register() |
Oops, something went wrong.