Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Salazar <zanqdo@gmail.com>2022-06-18 05:04:33 +0300
committerDaniel Salazar <zanqdo@gmail.com>2022-06-18 05:04:33 +0300
commit212c93689424ace4f2b5330a5aa9f74cd742c21e (patch)
tree3b05a459963b938ac16d36418faf6cfbc6b27e15
parentf888aca19ed2bc3493fd998b9d1edff573f73569 (diff)
AnimAll: Minor UI updates
-rw-r--r--animation_animall.py37
1 files changed, 19 insertions, 18 deletions
diff --git a/animation_animall.py b/animation_animall.py
index ff140860..b5b36100 100644
--- a/animation_animall.py
+++ b/animation_animall.py
@@ -28,7 +28,7 @@ from bpy.app.handlers import persistent
# Property Definitions
class AnimallProperties(bpy.types.PropertyGroup):
key_selected: BoolProperty(
- name="Selected Only",
+ name="Key Selected Only",
description="Insert keyframes only on selected elements",
default=True
)
@@ -146,12 +146,11 @@ class VIEW3D_PT_animall(Panel):
animall_properties = context.window_manager.animall_properties
layout = self.layout
- col = layout.column(align=True)
- row = col.row()
- row.prop(animall_properties, "key_selected")
- col.separator()
- row = col.row()
+ layout.label (text = 'Key:')
+
+ col = layout.column(align=True)
+ row = col.row(align = True)
if obj.type == 'LATTICE':
row.prop(animall_properties, "key_points")
@@ -160,17 +159,15 @@ class VIEW3D_PT_animall(Panel):
elif obj.type == 'MESH':
row.prop(animall_properties, "key_points")
row.prop(animall_properties, "key_shape")
- row = col.row()
+ row = col.row(align = True)
row.prop(animall_properties, "key_vbevel")
row.prop(animall_properties, "key_ebevel")
- row = col.row()
+ row = col.row(align = True)
row.prop(animall_properties, "key_ecrease")
row.prop(animall_properties, "key_uvs")
- row = col.row()
+ row = col.row(align = True)
row.prop(animall_properties, "key_attribute")
row.prop(animall_properties, "key_vgroups")
- row = col.row()
-
# Vertex group update operator
if (context.active_object is not None
@@ -189,25 +186,29 @@ class VIEW3D_PT_animall(Panel):
elif obj.type == 'CURVE':
row.prop(animall_properties, "key_points")
row.prop(animall_properties, "key_shape")
- row = col.row()
+ row = col.row(align = True)
row.prop(animall_properties, "key_radius")
row.prop(animall_properties, "key_tilt")
- row = col.row()
+ row = col.row(align = True)
row.prop(animall_properties, "key_handle_type")
elif obj.type == 'SURFACE':
row.prop(animall_properties, "key_points")
row.prop(animall_properties, "key_shape")
- row = col.row()
+ row = col.row(align = True)
row.prop(animall_properties, "key_radius")
row.prop(animall_properties, "key_tilt")
- layout.separator()
+ col.separator()
+ col = layout.column(align=True)
+ row = col.row()
+ row.prop(animall_properties, "key_selected")
+
row = layout.row(align=True)
row.operator("anim.insert_keyframe_animall", icon="KEY_HLT")
row.operator("anim.delete_keyframe_animall", icon="KEY_DEHLT")
row = layout.row()
- row.operator("anim.clear_animation_animall", icon="X")
+ row.operator("anim.clear_animation_animall", icon="CANCEL")
if animall_properties.key_shape:
shape_key = obj.active_shape_key
@@ -234,7 +235,7 @@ class VIEW3D_PT_animall(Panel):
class ANIM_OT_insert_keyframe_animall(Operator):
- bl_label = "Insert"
+ bl_label = "Insert Key"
bl_idname = "anim.insert_keyframe_animall"
bl_description = "Insert a Keyframe"
bl_options = {'REGISTER', 'UNDO'}
@@ -420,7 +421,7 @@ class ANIM_OT_insert_keyframe_animall(Operator):
class ANIM_OT_delete_keyframe_animall(Operator):
- bl_label = "Delete"
+ bl_label = "Delete Key"
bl_idname = "anim.delete_keyframe_animall"
bl_description = "Delete a Keyframe"
bl_options = {'REGISTER', 'UNDO'}