Skip to content

Commit

Permalink
Update 1.6: Simplify UI
Browse files Browse the repository at this point in the history
- Use panels instead of box elements.
- Code simplificaton and cleanup.
  • Loading branch information
mrachinskiy committed Aug 17, 2018
1 parent 73c3c41 commit cc7d52e
Show file tree
Hide file tree
Showing 12 changed files with 4,573 additions and 3,095 deletions.
693 changes: 674 additions & 19 deletions LICENSE.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Commotion—is a Blender add-on for motion graphics, made specifically for easy handling Shape Keys, F-Curves, NLA strips, Drivers and object relations between number of objects, in order to easily create awesome motion graphics.

Watch:
Video:

* [Demo][2]
* [Tutorial][3]
* [Tutorial: Simple Motiongraphics][3]
* [Update 1.4 Overview][4]


Expand Down
184 changes: 102 additions & 82 deletions __init__.py
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()
Loading

0 comments on commit cc7d52e

Please sign in to comment.