Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_bone.py
| Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| subsub.prop(pchan, "lock_rotation_w", text="") | subsub.prop(pchan, "lock_rotation_w", text="") | ||||
| subsub.prop(pchan, "lock_rotation", text="") | subsub.prop(pchan, "lock_rotation", text="") | ||||
| else: | else: | ||||
| sub = col.row(align=True) | sub = col.row(align=True) | ||||
| sub.prop(pchan, "rotation_euler", text="Rotation") | sub.prop(pchan, "rotation_euler", text="Rotation") | ||||
| sub.prop(pchan, "lock_rotation", text="") | sub.prop(pchan, "lock_rotation", text="") | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(pchan, "rotation_mode") | |||||
| col = layout.column() | |||||
| sub = col.row(align=True) | sub = col.row(align=True) | ||||
| sub.prop(pchan, "scale") | sub.prop(pchan, "scale") | ||||
| sub.prop(pchan, "lock_scale", text="") | sub.prop(pchan, "lock_scale", text="") | ||||
| col = layout.column() | |||||
| col.prop(pchan, "rotation_mode") | |||||
| elif context.edit_bone: | elif context.edit_bone: | ||||
| bone = context.edit_bone | bone = context.edit_bone | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(bone, "head") | col.prop(bone, "head") | ||||
| col.prop(bone, "tail") | col.prop(bone, "tail") | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(bone, "roll") | col.prop(bone, "roll") | ||||
| col.prop(bone, "lock") | col.prop(bone, "lock") | ||||
| col = layout.column() | |||||
| col.prop(bone, "tail_radius") | |||||
| col.prop(bone, "envelope_distance") | |||||
| class BONE_PT_curved(BoneButtonsPanel, Panel): | class BONE_PT_curved(BoneButtonsPanel, Panel): | ||||
| bl_label = "Bendy Bones" | bl_label = "Bendy Bones" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| ob = context.object | ob = context.object | ||||
| bone = context.bone | bone = context.bone | ||||
| arm = context.armature | arm = context.armature | ||||
| Show All 10 Lines | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.prop(bone, "bbone_segments", text="Segments") | layout.prop(bone, "bbone_segments", text="Segments") | ||||
| topcol = layout.column() | topcol = layout.column() | ||||
| topcol.active = bone.bbone_segments > 1 | topcol.active = bone.bbone_segments > 1 | ||||
| col = topcol.column(align=True) | col = topcol.column(align=True) | ||||
| col.prop(bone, "bbone_x", text="Scale X") | |||||
| col.prop(bone, "bbone_z", text="Z") | |||||
| col = topcol.column(align=True) | |||||
| col.prop(bbone, "bbone_curveinx", text="Curve In X") | col.prop(bbone, "bbone_curveinx", text="Curve In X") | ||||
| col.prop(bbone, "bbone_curveiny", text="In Y") | col.prop(bbone, "bbone_curveiny", text="In Y") | ||||
| col = topcol.column(align=True) | col = topcol.column(align=True) | ||||
| col.prop(bbone, "bbone_curveoutx", text="Curve Out X") | col.prop(bbone, "bbone_curveoutx", text="Curve Out X") | ||||
| col.prop(bbone, "bbone_curveouty", text="Out Y") | col.prop(bbone, "bbone_curveouty", text="Out Y") | ||||
| col = topcol.column(align=True) | col = topcol.column(align=True) | ||||
| ▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines | |||||