Skip to content

Commit

Permalink
Added shoulder def constraints
Browse files Browse the repository at this point in the history
The issue #1 wasn't just for breast bones but shoulders as well. After some experimenting and recon work and screenshots from @jogly, i think these are the contraints we were lacking. I've confirmed weight painted areas appear to be deforming properly with these in place.
  • Loading branch information
catprisbrey committed Mar 15, 2024
1 parent 0400ebd commit 2a5d1b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ def execute(self, context):
constraint.target = bpy.data.objects["godot_rig"]
constraint.subtarget = "breast.L"

if "DEF-shoulder.R" in ob.data.edit_bones :
constraint = bpy.data.objects["godot_rig"].pose.bones["DEF-shoulder.R"].constraints.new('COPY_TRANSFORMS')
constraint.target = bpy.data.objects["godot_rig"]
constraint.subtarget = "shoulder.R"

if "DEF-shoulder.L" in ob.data.edit_bones :
constraint = bpy.data.objects["godot_rig"].pose.bones["DEF-shoulder.L"].constraints.new('COPY_TRANSFORMS')
constraint.target = bpy.data.objects["godot_rig"]
constraint.subtarget = "shoulder.L"

if "DEF-jaw" in ob.data.edit_bones :
constraint = bpy.data.objects["godot_rig"].pose.bones["DEF-jaw"].constraints.new('COPY_TRANSFORMS')
constraint.target = bpy.data.objects["godot_rig"]
Expand Down

0 comments on commit 2a5d1b3

Please sign in to comment.