2009-11-01 15:21:20 +00:00
|
|
|
# ##### BEGIN GPL LICENSE BLOCK #####
|
|
|
|
#
|
|
|
|
# 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 2
|
|
|
|
# of the License, or (at your option) any later version.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# 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.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-11-01 15:21:20 +00:00
|
|
|
#
|
|
|
|
# ##### END GPL LICENSE BLOCK #####
|
2009-10-31 20:16:59 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
# <pep8 compliant>
|
2009-05-19 15:38:36 +00:00
|
|
|
import bpy
|
2011-08-16 14:43:04 +00:00
|
|
|
from bpy.types import Panel, Menu
|
2010-01-08 08:54:41 +00:00
|
|
|
from rna_prop_ui import PropertyPanel
|
2011-03-27 05:23:14 +00:00
|
|
|
|
2019-06-11 16:08:32 +10:00
|
|
|
from bl_ui.properties_animviz import (
|
2019-03-20 10:44:13 +11:00
|
|
|
MotionPathButtonsPanel,
|
|
|
|
MotionPathButtonsPanel_display,
|
|
|
|
)
|
2011-09-20 18:29:19 +00:00
|
|
|
|
2019-04-09 23:16:11 +10:00
|
|
|
|
2015-01-29 15:35:06 +11:00
|
|
|
class ArmatureButtonsPanel:
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'PROPERTIES'
|
|
|
|
bl_region_type = 'WINDOW'
|
|
|
|
bl_context = "data"
|
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2009-10-31 19:31:45 +00:00
|
|
|
return context.armature
|
2009-05-20 02:17:53 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class DATA_PT_context_arm(ArmatureButtonsPanel, Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = ""
|
2010-08-26 01:05:37 +00:00
|
|
|
bl_options = {'HIDE_HEADER'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
ob = context.object
|
|
|
|
arm = context.armature
|
|
|
|
space = context.space_data
|
2009-11-14 13:35:44 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
if ob:
|
2010-12-30 12:22:28 +00:00
|
|
|
layout.template_ID(ob, "data")
|
2010-08-06 15:17:44 +00:00
|
|
|
elif arm:
|
2010-12-30 12:22:28 +00:00
|
|
|
layout.template_ID(space, "pin_id")
|
2009-06-07 13:36:12 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class DATA_PT_skeleton(ArmatureButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Skeleton"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
arm = context.armature
|
|
|
|
|
2017-06-01 16:38:32 +03:00
|
|
|
layout.row().prop(arm, "pose_position", expand=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-03-04 19:57:05 +00:00
|
|
|
col = layout.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Layers:")
|
2010-08-18 07:45:32 +00:00
|
|
|
col.prop(arm, "layers", text="")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Protected Layers:")
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(arm, "layers_protected", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-08 05:42:44 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class DATA_PT_display(ArmatureButtonsPanel, Panel):
|
2019-02-27 19:01:29 +01:00
|
|
|
bl_label = "Viewport Display"
|
2018-10-18 12:13:06 +02:00
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2019-02-18 15:10:01 +11:00
|
|
|
layout.use_property_split = True
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-01-02 04:14:17 +00:00
|
|
|
ob = context.object
|
2009-10-31 19:31:45 +00:00
|
|
|
arm = context.armature
|
|
|
|
|
2019-02-18 15:10:01 +11:00
|
|
|
layout.prop(arm, "display_type", text="Display As")
|
2009-11-12 21:44:35 +00:00
|
|
|
|
UI: Layout changes for new checkbox layout possibilities
Follow-up to previous commit.
Some examples:
{F8473507} {F8473508} {F8473509} {F8473510}
For more screenshots, please see D7430.
We use column or row headings here to bring more structure, and to give
the eye visual anchors which aid eye-scanning. The left-aligned
checkboxes likewise help with this. And we keep the adherence to the
center line, so the alignment matches up between the various buttons and
controls.
* Changes the property split percentage from 50/50% to 40/60%. This is
needed to give enough space for the checkboxes. But in most cases this
looks better anyway - see Transform panel. In some cases it simply
fills out the available space more efficently.
* Fix various hacks where we previously used manually defined splits.
When we did this, the alignment was never quite right, and the layout
code was a mess.
* Adds column headings to many places where a list of checkboxes all
share a common purpose or leading text.
* Add checkbox + value configurations various places where a checkbox
only serves to enable the value slider
* Removes most uses of grid flow layout. The grid flow layouts combine
poorly with column headings, and also they would mess alignment up
badly. The grid flow layouts also often made buttons and controls jump
around on the screen if you would just resize editors slightly,
causing visual confusion, making users lose their place. The logic for
at what time the list of items would re-flow was often flawed, jumping
to multiple columns too fast or too late - and frankly, the grid flow
layouts would often just look bad.
Maniphest Task: https://developer.blender.org/T65965
Differential Revision: https://developer.blender.org/D7430
Reviewed by: Brecht Van Lommel, Pablo Vazquez.
Most work here by William Reynish, few changes by Julian Eisel.
2020-04-17 16:54:03 +02:00
|
|
|
col = layout.column(heading="Show")
|
2019-03-21 18:25:01 +01:00
|
|
|
col.prop(arm, "show_names", text="Names")
|
|
|
|
col.prop(arm, "show_axes", text="Axes")
|
|
|
|
col.prop(arm, "show_bone_custom_shapes", text="Shapes")
|
|
|
|
col.prop(arm, "show_group_colors", text="Group Colors")
|
2010-12-17 10:33:28 +00:00
|
|
|
if ob:
|
2019-03-21 18:25:01 +01:00
|
|
|
col.prop(ob, "show_in_front", text="In Front")
|
2009-05-19 15:38:36 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2019-03-12 10:59:57 +11:00
|
|
|
class DATA_MT_bone_group_context_menu(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Bone Group Specials"
|
2011-07-07 04:31:53 +00:00
|
|
|
|
2019-04-19 07:32:24 +02:00
|
|
|
def draw(self, _context):
|
2011-07-07 04:31:53 +00:00
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
layout.operator("pose.group_sort", icon='SORTALPHA')
|
|
|
|
|
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class DATA_PT_bone_groups(ArmatureButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Bone Groups"
|
2018-10-18 12:13:06 +02:00
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2009-10-31 23:35:56 +00:00
|
|
|
return (context.object and context.object.type == 'ARMATURE' and context.object.pose)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
ob = context.object
|
|
|
|
pose = ob.pose
|
2011-07-07 04:31:53 +00:00
|
|
|
group = pose.bone_groups.active
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
row = layout.row()
|
2011-07-07 04:31:53 +00:00
|
|
|
|
2013-10-13 23:24:37 +00:00
|
|
|
rows = 1
|
2011-07-07 04:31:53 +00:00
|
|
|
if group:
|
2013-10-13 23:24:37 +00:00
|
|
|
rows = 4
|
2019-05-22 00:27:01 +10:00
|
|
|
row.template_list(
|
|
|
|
"UI_UL_list",
|
|
|
|
"bone_groups",
|
|
|
|
pose,
|
|
|
|
"bone_groups",
|
|
|
|
pose.bone_groups,
|
|
|
|
"active_index",
|
|
|
|
rows=rows,
|
|
|
|
)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = row.column(align=True)
|
2009-11-22 17:41:35 +00:00
|
|
|
col.active = (ob.proxy is None)
|
2018-10-01 10:45:50 +02:00
|
|
|
col.operator("pose.group_add", icon='ADD', text="")
|
|
|
|
col.operator("pose.group_remove", icon='REMOVE', text="")
|
2019-03-12 10:59:57 +11:00
|
|
|
col.menu("DATA_MT_bone_group_context_menu", icon='DOWNARROW_HLT', text="")
|
2011-07-07 04:31:53 +00:00
|
|
|
if group:
|
|
|
|
col.separator()
|
|
|
|
col.operator("pose.group_move", icon='TRIA_UP', text="").direction = 'UP'
|
|
|
|
col.operator("pose.group_move", icon='TRIA_DOWN', text="").direction = 'DOWN'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-12 21:44:35 +00:00
|
|
|
split = layout.split()
|
2009-11-22 17:41:35 +00:00
|
|
|
split.active = (ob.proxy is None)
|
2009-11-14 13:35:44 +00:00
|
|
|
|
2009-11-12 21:44:35 +00:00
|
|
|
col = split.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(group, "color_set")
|
2009-10-31 19:31:45 +00:00
|
|
|
if group.color_set:
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-03-04 19:57:05 +00:00
|
|
|
sub = col.row(align=True)
|
2015-01-29 15:35:06 +11:00
|
|
|
sub.enabled = group.is_custom_color_set # only custom colors are editable
|
2011-03-04 19:57:05 +00:00
|
|
|
sub.prop(group.colors, "normal", text="")
|
|
|
|
sub.prop(group.colors, "select", text="")
|
|
|
|
sub.prop(group.colors, "active", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-07-14 03:19:19 +00:00
|
|
|
row = layout.row()
|
2009-11-22 17:41:35 +00:00
|
|
|
row.active = (ob.proxy is None)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-07-14 03:19:19 +00:00
|
|
|
sub = row.row(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.operator("pose.group_assign", text="Assign")
|
2018-06-01 18:44:06 +02:00
|
|
|
# row.operator("pose.bone_group_remove_from", text="Remove")
|
|
|
|
sub.operator("pose.group_unassign", text="Remove")
|
2010-07-14 03:19:19 +00:00
|
|
|
|
|
|
|
sub = row.row(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.operator("pose.group_select", text="Select")
|
|
|
|
sub.operator("pose.group_deselect", text="Deselect")
|
2009-07-21 10:18:08 +00:00
|
|
|
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class DATA_PT_pose_library(ArmatureButtonsPanel, Panel):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Pose Library"
|
2011-02-16 00:17:22 +00:00
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2011-02-17 04:35:41 +00:00
|
|
|
|
2011-02-16 00:17:22 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return (context.object and context.object.type == 'ARMATURE' and context.object.pose)
|
2011-02-17 04:35:41 +00:00
|
|
|
|
2011-02-16 00:17:22 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2011-02-17 04:35:41 +00:00
|
|
|
|
2011-02-16 00:17:22 +00:00
|
|
|
ob = context.object
|
|
|
|
poselib = ob.pose_library
|
2011-02-17 04:35:41 +00:00
|
|
|
|
2011-03-04 19:57:05 +00:00
|
|
|
layout.template_ID(ob, "pose_library", new="poselib.new", unlink="poselib.unlink")
|
2011-02-17 04:35:41 +00:00
|
|
|
|
2011-02-16 00:17:22 +00:00
|
|
|
if poselib:
|
2017-07-12 01:33:08 +12:00
|
|
|
# warning about poselib being in an invalid state
|
2018-10-16 08:50:35 +11:00
|
|
|
if poselib.fcurves and not poselib.pose_markers:
|
2017-07-25 01:27:43 +10:00
|
|
|
layout.label(icon='ERROR', text="Error: Potentially corrupt library, run 'Sanitize' operator to fix")
|
2017-07-12 01:33:08 +12:00
|
|
|
|
2011-09-08 05:42:44 +00:00
|
|
|
# list of poses in pose library
|
2011-02-16 00:17:22 +00:00
|
|
|
row = layout.row()
|
2013-02-18 13:30:40 +00:00
|
|
|
row.template_list("UI_UL_list", "pose_markers", poselib, "pose_markers",
|
2016-09-16 18:21:20 +02:00
|
|
|
poselib.pose_markers, "active_index", rows=5)
|
2011-02-17 04:35:41 +00:00
|
|
|
|
2011-09-01 10:56:16 +00:00
|
|
|
# column of operators for active pose
|
|
|
|
# - goes beside list
|
2011-02-16 00:17:22 +00:00
|
|
|
col = row.column(align=True)
|
2011-02-17 04:35:41 +00:00
|
|
|
|
|
|
|
# invoke should still be used for 'add', as it is needed to allow
|
2011-02-16 00:17:22 +00:00
|
|
|
# add/replace options to be used properly
|
2018-10-01 10:45:50 +02:00
|
|
|
col.operator("poselib.pose_add", icon='ADD', text="")
|
2011-02-17 04:35:41 +00:00
|
|
|
|
|
|
|
col.operator_context = 'EXEC_DEFAULT' # exec not invoke, so that menu doesn't need showing
|
2011-02-16 02:25:03 +00:00
|
|
|
|
2011-02-23 03:08:14 +00:00
|
|
|
pose_marker_active = poselib.pose_markers.active
|
|
|
|
|
|
|
|
if pose_marker_active is not None:
|
2018-10-01 10:45:50 +02:00
|
|
|
col.operator("poselib.pose_remove", icon='REMOVE', text="")
|
2018-06-01 18:44:06 +02:00
|
|
|
col.operator(
|
|
|
|
"poselib.apply_pose",
|
|
|
|
icon='ZOOM_SELECTED',
|
|
|
|
text="",
|
|
|
|
).pose_index = poselib.pose_markers.active_index
|
2011-02-17 04:35:41 +00:00
|
|
|
|
2012-07-03 17:20:21 +00:00
|
|
|
col.operator("poselib.action_sanitize", icon='HELP', text="") # XXX: put in menu?
|
2011-09-08 05:42:44 +00:00
|
|
|
|
2016-09-16 15:07:23 +02:00
|
|
|
if pose_marker_active is not None:
|
|
|
|
col.operator("poselib.pose_move", icon='TRIA_UP', text="").direction = 'UP'
|
|
|
|
col.operator("poselib.pose_move", icon='TRIA_DOWN', text="").direction = 'DOWN'
|
|
|
|
|
2011-02-16 02:05:41 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, Panel):
|
2012-11-24 00:18:34 +00:00
|
|
|
bl_label = "Inverse Kinematics"
|
2010-08-26 01:05:37 +00:00
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2009-12-14 03:01:42 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2009-12-14 03:01:42 +00:00
|
|
|
ob = context.object
|
|
|
|
return (ob and ob.pose)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-06-01 18:44:06 +02:00
|
|
|
layout.use_property_split = True
|
2009-12-14 03:01:42 +00:00
|
|
|
|
|
|
|
ob = context.object
|
|
|
|
itasc = ob.pose.ik_param
|
|
|
|
|
2011-03-04 19:57:05 +00:00
|
|
|
layout.prop(ob.pose, "ik_solver")
|
2009-12-26 09:36:50 +00:00
|
|
|
|
2009-12-17 13:14:29 +00:00
|
|
|
if itasc:
|
2019-02-18 15:10:01 +11:00
|
|
|
layout.prop(itasc, "mode")
|
2009-12-17 13:14:29 +00:00
|
|
|
simulation = (itasc.mode == 'SIMULATION')
|
|
|
|
if simulation:
|
2018-06-01 18:44:06 +02:00
|
|
|
layout.prop(itasc, "reiteration_method", expand=False)
|
2009-12-14 03:01:42 +00:00
|
|
|
|
2018-06-01 18:44:06 +02:00
|
|
|
col = layout.column()
|
|
|
|
col.active = not simulation or itasc.reiteration_method != 'NEVER'
|
|
|
|
col.prop(itasc, "precision")
|
|
|
|
col.prop(itasc, "iterations")
|
2009-12-17 13:14:29 +00:00
|
|
|
|
|
|
|
if simulation:
|
2019-02-18 15:10:01 +11:00
|
|
|
col.prop(itasc, "use_auto_step")
|
|
|
|
sub = layout.column(align=True)
|
2010-08-18 08:58:37 +00:00
|
|
|
if itasc.use_auto_step:
|
2019-02-18 15:10:01 +11:00
|
|
|
sub.prop(itasc, "step_min", text="Steps Min")
|
|
|
|
sub.prop(itasc, "step_max", text="Max")
|
2009-12-17 13:14:29 +00:00
|
|
|
else:
|
2019-02-18 15:10:01 +11:00
|
|
|
sub.prop(itasc, "step_count", text="Steps")
|
2009-12-17 13:14:29 +00:00
|
|
|
|
2019-02-18 15:10:01 +11:00
|
|
|
col.prop(itasc, "solver")
|
2009-12-17 13:14:29 +00:00
|
|
|
if simulation:
|
2019-02-18 15:10:01 +11:00
|
|
|
col.prop(itasc, "feedback")
|
|
|
|
col.prop(itasc, "velocity_max")
|
2009-12-17 13:14:29 +00:00
|
|
|
if itasc.solver == 'DLS':
|
2018-06-01 18:44:06 +02:00
|
|
|
col.separator()
|
|
|
|
col.prop(itasc, "damping_max", text="Damping Max", slider=True)
|
|
|
|
col.prop(itasc, "damping_epsilon", text="Damping Epsilon", slider=True)
|
|
|
|
|
2009-12-14 03:01:42 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class DATA_PT_motion_paths(MotionPathButtonsPanel, Panel):
|
2010-08-02 02:55:12 +00:00
|
|
|
#bl_label = "Bones Motion Paths"
|
2018-10-18 12:13:06 +02:00
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2010-08-02 02:55:12 +00:00
|
|
|
bl_context = "data"
|
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2011-10-17 06:58:07 +00:00
|
|
|
# XXX: include pose-mode check?
|
2010-08-02 02:55:12 +00:00
|
|
|
return (context.object) and (context.armature)
|
|
|
|
|
|
|
|
def draw(self, context):
|
2014-04-25 05:31:20 +10:00
|
|
|
# layout = self.layout
|
2010-08-02 02:55:12 +00:00
|
|
|
|
|
|
|
ob = context.object
|
2012-07-03 19:09:07 +00:00
|
|
|
avs = ob.pose.animation_visualization
|
2012-05-15 18:50:51 +00:00
|
|
|
|
2012-05-01 16:19:13 +00:00
|
|
|
pchan = context.active_pose_bone
|
|
|
|
mpath = pchan.motion_path if pchan else None
|
2012-05-15 18:50:51 +00:00
|
|
|
|
2012-05-01 16:19:13 +00:00
|
|
|
self.draw_settings(context, avs, mpath, bones=True)
|
2010-08-02 02:55:12 +00:00
|
|
|
|
|
|
|
|
2018-09-11 16:49:52 +10:00
|
|
|
class DATA_PT_motion_paths_display(MotionPathButtonsPanel_display, Panel):
|
|
|
|
#bl_label = "Bones Motion Paths"
|
|
|
|
bl_context = "data"
|
|
|
|
bl_parent_id = "DATA_PT_motion_paths"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
# XXX: include pose-mode check?
|
|
|
|
return (context.object) and (context.armature)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
# layout = self.layout
|
|
|
|
|
|
|
|
ob = context.object
|
|
|
|
avs = ob.pose.animation_visualization
|
|
|
|
|
|
|
|
pchan = context.active_pose_bone
|
|
|
|
mpath = pchan.motion_path if pchan else None
|
|
|
|
|
|
|
|
self.draw_settings(context, avs, mpath, bones=True)
|
|
|
|
|
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class DATA_PT_custom_props_arm(ArmatureButtonsPanel, PropertyPanel, Panel):
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
2010-08-12 19:36:10 +00:00
|
|
|
_context_path = "object.data"
|
2010-12-17 10:33:28 +00:00
|
|
|
_property_type = bpy.types.Armature
|
2011-04-04 10:13:04 +00:00
|
|
|
|
2017-03-18 20:03:24 +11:00
|
|
|
|
|
|
|
classes = (
|
|
|
|
DATA_PT_context_arm,
|
2017-03-20 02:34:32 +11:00
|
|
|
DATA_PT_skeleton,
|
2019-03-12 10:59:57 +11:00
|
|
|
DATA_MT_bone_group_context_menu,
|
2017-03-20 02:34:32 +11:00
|
|
|
DATA_PT_bone_groups,
|
|
|
|
DATA_PT_pose_library,
|
2018-08-02 14:44:17 +12:00
|
|
|
DATA_PT_motion_paths,
|
2018-09-11 16:49:52 +10:00
|
|
|
DATA_PT_motion_paths_display,
|
2019-02-27 19:01:29 +01:00
|
|
|
DATA_PT_display,
|
2017-03-18 20:03:24 +11:00
|
|
|
DATA_PT_iksolver_itasc,
|
2017-03-20 02:34:32 +11:00
|
|
|
DATA_PT_custom_props_arm,
|
2017-03-18 20:03:24 +11:00
|
|
|
)
|
|
|
|
|
2011-04-04 10:13:04 +00:00
|
|
|
if __name__ == "__main__": # only for live edit.
|
2017-03-18 20:03:24 +11:00
|
|
|
from bpy.utils import register_class
|
|
|
|
for cls in classes:
|
|
|
|
register_class(cls)
|