Skip to content

Commit 0b8a3a0

Browse files
authored
Merge pull request #517 from RemiCuxac/patch-1
Update mocap_tools.py : compatible with a wider definition and avoid breaking if skeleton not found.
2 parents 98448cd + e819095 commit 0b8a3a0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

release/scripts/mgear/shifter/mocap_tools.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
u"Spine",
2222
u"Spine1",
2323
u"Spine2",
24+
u"Spine3",
25+
u"Spine4",
2426
u"LeftShoulder",
2527
u"LeftArm",
2628
u"LeftForeArm",
@@ -61,6 +63,8 @@
6163
u"RightHandPinky3",
6264
u"Neck",
6365
u"Neck1",
66+
u"Neck2",
67+
u"Neck3",
6468
u"Head"
6569
)
6670
]
@@ -201,7 +205,8 @@ def characterizeBiped(*args):
201205
oB = pm.PyNode(b)
202206
except Exception:
203207
pm.displayWarning(b + ": Is not in the scene")
204-
tra.matchWorldTransform(oB, oA)
208+
if a and b:
209+
tra.matchWorldTransform(oB, oA)
205210

206211
# Constrain FK controls
207212
for a, b in zip(skelFK, gearFK):

0 commit comments

Comments
 (0)