def PanelControlPoses(fp, amt): if True: addPoseBone(fp, amt, 'PFace', 'MHCube05', None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, []) addPoseBone(fp, amt, 'PFaceDisp', 'MHFace', None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, []) addYSlider(fp, amt, 'PBrow_L', MX) addYSlider(fp, amt, 'PBrow_R', MX) addCSlider(fp, amt, 'PBrows', MX) addYSlider(fp, amt, 'PUpLid_L', MX) addYSlider(fp, amt, 'PUpLid_R', MX) addYSlider(fp, amt, 'PLoLid_L', MX) addYSlider(fp, amt, 'PLoLid_R', MX) addCSlider(fp, amt, 'PCheek_L', MX) addCSlider(fp, amt, 'PCheek_R', MX) addCSlider(fp, amt, 'PNose', MX) addCSlider(fp, amt, 'PUpLipMid', MX) addCSlider(fp, amt, 'PLoLipMid', MX) addYSlider(fp, amt, 'PUpLip_L', MX) addYSlider(fp, amt, 'PUpLip_R', MX) addYSlider(fp, amt, 'PLoLip_L', MX) addYSlider(fp, amt, 'PLoLip_R', MX) addCSlider(fp, amt, 'PMouthMid', MX) addCSlider(fp, amt, 'PMouth_L', MX) addCSlider(fp, amt, 'PMouth_R', MX) addCSlider(fp, amt, 'PTongue', MX) addYSlider(fp, amt, 'PJaw', MX)
def FingerControlPoses(fp, amt): for suffix in ['_L', '_R']: for fnum in range(1, 6): fing = '%s%s' % (FingerName[fnum], suffix) if fnum == 1: lim = limitRotThumb else: lim = limitRotFingers addPoseBone(fp, amt, fing, 'MHKnuckle', None, (1, 1, 1), (0, 1, 0), (1, 0, 1), (1, 1, 1), 0, [lim]) for lnum in range(1, 4): if (fnum == 1 and lnum <= 2) or (fnum >= 2 and lnum == 1): rot = (0, 1, 0) ik = (1, 0, 1) else: rot = (0, 1, 1) ik = (0, 0, 1) fing = '%s-%d%s' % (FingerName[fnum], lnum, suffix) addPoseBone(fp, amt, fing, customShape, None, (1, 1, 1), rot, (1, 1, 1), ik, 0, fconstraints["%d-%d%s" % (fnum, lnum, suffix)]) palm = 'Palm-%d%s' % (fnum, suffix) addPoseBone(fp, amt, palm, None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, amt, 'Wrist-1%s' % suffix, None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, amt, 'Wrist-2%s' % suffix, None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) return
def PanelControlPoses(fp, config): if config.exporting: addPoseBone(fp, config, 'PFace', 'MHCube05', None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), 0, []) #[('ChildOf', C_CHILDOF, 1, ['Body', 'Root', (1,1,1), (1,1,1), (1,1,1)]) ]) addPoseBone(fp, config, 'PFaceDisp', 'MHFace', None, (1, 1, 1), (1, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addYSlider(fp, config, 'PBrow_L', MX) addYSlider(fp, config, 'PBrow_R', MX) addCSlider(fp, config, 'PBrows', MX) addYSlider(fp, config, 'PUpLid_L', MX) addYSlider(fp, config, 'PUpLid_R', MX) addYSlider(fp, config, 'PLoLid_L', MX) addYSlider(fp, config, 'PLoLid_R', MX) addCSlider(fp, config, 'PCheek_L', MX) addCSlider(fp, config, 'PCheek_R', MX) addCSlider(fp, config, 'PNose', MX) addCSlider(fp, config, 'PUpLipMid', MX) addCSlider(fp, config, 'PLoLipMid', MX) addYSlider(fp, config, 'PUpLip_L', MX) addYSlider(fp, config, 'PUpLip_R', MX) addYSlider(fp, config, 'PLoLip_L', MX) addYSlider(fp, config, 'PLoLip_R', MX) addCSlider(fp, config, 'PMouthMid', MX) addCSlider(fp, config, 'PMouth_L', MX) addCSlider(fp, config, 'PMouth_R', MX) addCSlider(fp, config, 'PTongue', MX) addYSlider(fp, config, 'PJaw', MX)
def PanelControlPoses(fp, config): if config.exporting: addPoseBone(fp, config, "PFace", "MHCube05", None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), 0, []) # [('ChildOf', C_CHILDOF, 1, ['Body', 'Root', (1,1,1), (1,1,1), (1,1,1)]) ]) addPoseBone(fp, config, "PFaceDisp", "MHFace", None, (1, 1, 1), (1, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addYSlider(fp, config, "PBrow_L", MX) addYSlider(fp, config, "PBrow_R", MX) addCSlider(fp, config, "PBrows", MX) addYSlider(fp, config, "PUpLid_L", MX) addYSlider(fp, config, "PUpLid_R", MX) addYSlider(fp, config, "PLoLid_L", MX) addYSlider(fp, config, "PLoLid_R", MX) addCSlider(fp, config, "PCheek_L", MX) addCSlider(fp, config, "PCheek_R", MX) addCSlider(fp, config, "PNose", MX) addCSlider(fp, config, "PUpLipMid", MX) addCSlider(fp, config, "PLoLipMid", MX) addYSlider(fp, config, "PUpLip_L", MX) addYSlider(fp, config, "PUpLip_R", MX) addYSlider(fp, config, "PLoLip_L", MX) addYSlider(fp, config, "PLoLip_R", MX) addCSlider(fp, config, "PMouthMid", MX) addCSlider(fp, config, "PMouth_L", MX) addCSlider(fp, config, "PMouth_R", MX) addCSlider(fp, config, "PTongue", MX) addYSlider(fp, config, "PJaw", MX)
def FingerControlPoses(fp, amt): for suffix in ['_L', '_R']: for fnum in range(1,6): fing = '%s%s' % (FingerName[fnum], suffix) if fnum == 1: lim = limitRotThumb else: lim = limitRotFingers addPoseBone(fp, amt, fing, 'MHKnuckle', None, (1,1,1), (0,1,0), (1,0,1), (1,1,1), 0, [lim]) for lnum in range(1,4): if (fnum == 1 and lnum <= 2) or (fnum >= 2 and lnum == 1): rot = (0,1,0) ik = (1,0,1) else: rot = (0,1,1) ik = (0,0,1) fing = '%s-%d%s' % (FingerName[fnum], lnum, suffix) addPoseBone(fp, amt, fing, customShape, None, (1,1,1), rot, (1,1,1), ik, 0, fconstraints["%d-%d%s" % (fnum, lnum, suffix)]) palm = 'Palm-%d%s' % (fnum, suffix) addPoseBone(fp, amt, palm, None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Wrist-1%s' % suffix, None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Wrist-2%s' % suffix, None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) return
def PanelControlPoses(fp, amt): if True: addPoseBone(fp, amt, 'PFace', 'MHCube05', None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), 0, []) addPoseBone(fp, amt, 'PFaceDisp', 'MHFace', None, (1, 1, 1), (1, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addYSlider(fp, amt, 'PBrow_L', MX) addYSlider(fp, amt, 'PBrow_R', MX) addCSlider(fp, amt, 'PBrows', MX) addYSlider(fp, amt, 'PUpLid_L', MX) addYSlider(fp, amt, 'PUpLid_R', MX) addYSlider(fp, amt, 'PLoLid_L', MX) addYSlider(fp, amt, 'PLoLid_R', MX) addCSlider(fp, amt, 'PCheek_L', MX) addCSlider(fp, amt, 'PCheek_R', MX) addCSlider(fp, amt, 'PNose', MX) addCSlider(fp, amt, 'PUpLipMid', MX) addCSlider(fp, amt, 'PLoLipMid', MX) addYSlider(fp, amt, 'PUpLip_L', MX) addYSlider(fp, amt, 'PUpLip_R', MX) addYSlider(fp, amt, 'PLoLip_L', MX) addYSlider(fp, amt, 'PLoLip_R', MX) addCSlider(fp, amt, 'PMouthMid', MX) addCSlider(fp, amt, 'PMouth_L', MX) addCSlider(fp, amt, 'PMouth_R', MX) addCSlider(fp, amt, 'PTongue', MX) addYSlider(fp, amt, 'PJaw', MX)
def MaleControlPoses(fp, amt): addPoseBone(fp, amt, 'Penis1', 'MHCircle05', None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), 0, []) addPoseBone(fp, amt, 'Penis2', 'MHCircle05', None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), 0, []) addPoseBone(fp, amt, 'Scrotum', 'MHCircle05' , None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), 0, []) return
def FingerControlPoses(fp, config): for suffix in ["_L", "_R"]: for fnum in range(1, 6): fing = "%s%s" % (FingerName[fnum], suffix) if fnum == 1: lim = limitRotThumb else: lim = limitRotFingers addPoseBone(fp, config, fing, "MHKnuckle", None, (1, 1, 1), (0, 1, 0), (1, 0, 1), (1, 1, 1), 0, [lim]) for lnum in range(1, 4): if (fnum == 1 and lnum <= 2) or (fnum >= 2 and lnum == 1): rot = (0, 1, 0) ik = (1, 0, 1) else: rot = (0, 1, 1) ik = (0, 0, 1) fing = "%s-%d%s" % (FingerName[fnum], lnum, suffix) addPoseBone( fp, config, fing, customShape, None, (1, 1, 1), rot, (1, 1, 1), ik, 0, fconstraints["%d-%d%s" % (fnum, lnum, suffix)], ) palm = "Palm-%d%s" % (fnum, suffix) addPoseBone(fp, config, palm, None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, "Wrist-1%s" % suffix, None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, "Wrist-2%s" % suffix, None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) return
def RigifyWritePoses(fp, config): global boneGroups boneGroups = {} addPoseBone(fp, config, 'hips', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'spine', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'ribs', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'neck', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'head', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'shoulder.L', None, None, (1,1,1), (0,1,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'upper_arm.L', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'forearm.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'hand.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'palm.01.L', None, None, (1,1,1), (0,1,1), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.01.L', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.02.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.03.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-index.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.01.L', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.02.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.03.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-thumb.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'palm.02.L', None, None, (1,1,1), (0,1,1), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.01.L', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.02.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.03.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-middle.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'palm.03.L', None, None, (1,1,1), (0,1,1), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.01.L', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.02.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.03.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-ring.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'palm.04.L', None, None, (1,1,1), (0,1,1), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.01.L', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.02.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.03.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-pinky.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-elbow-fan.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('CopyRot', 0, 0.5, ['Copy_Rotation', 'forearm.L', (1,1,1), (0,0,0), False])]) addPoseBone(fp, config, 'UP-arm.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'MCH-deltoid_target.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'shoulder.R', None, None, (1,1,1), (0,1,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'upper_arm.R', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'forearm.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'hand.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'palm.01.R', None, None, (0,0,0), (0,1,1), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.01.R', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.02.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.03.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-index.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.01.R', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.02.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.03.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-thumb.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'palm.02.R', None, None, (0,0,0), (0,1,1), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.01.R', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.02.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.03.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-middle.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'palm.03.R', None, None, (0,0,0), (0,1,1), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.01.R', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.02.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.03.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-ring.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'palm.04.R', None, None, (0,0,0), (0,1,1), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.01.R', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.02.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.03.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'UP-pinky.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-elbow-fan.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('CopyRot', 0, 0.5, ['Copy_Rotation', 'forearm.R', (1,1,1), (0,0,0), False])]) addPoseBone(fp, config, 'UP-arm.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'MCH-deltoid_target.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-pect1.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.L', 0, 1])]) addPoseBone(fp, config, 'DEF-pect2.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.L', 0, 1])]) addPoseBone(fp, config, 'DEF-pect1.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.R', 0, 1])]) addPoseBone(fp, config, 'DEF-pect2.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.R', 0, 1])]) addPoseBone(fp, config, 'DEF-lat.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.L', 0, 1])]) addPoseBone(fp, config, 'DEF-lat.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.R', 0, 1])]) addPoseBone(fp, config, 'DEF-trap.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.L', 0, 1])]) addPoseBone(fp, config, 'DEF-trap.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.R', 0, 1])]) addPoseBone(fp, config, 'DEF-deltoid.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'MCH-deltoid_target.L', 1, 1])]) addPoseBone(fp, config, 'DEF-deltoid.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'MCH-deltoid_target.R', 1, 1])]) addPoseBone(fp, config, 'MCH-breast_target', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('CopyRot', 0+C_OW_LOCAL+C_TG_LOCAL, 0.5, ['Copy_Rotation', 'ribs', (1,1,1), (0,0,0), False])]) addPoseBone(fp, config, 'DEF-breast', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'MCH-breast_target', 1, 1])]) addPoseBone(fp, config, 'thigh.L', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'shin.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'foot.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'toe.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'heel.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'heel.02.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-knee-fan.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('CopyRot', 0, 0.5, ['Copy_Rotation', 'shin.L', (1,1,1), (0,0,0), False])]) addPoseBone(fp, config, 'UP-leg.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'thigh.R', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'shin.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'foot.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'toe.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'heel.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'heel.02.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-knee-fan.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('CopyRot', 0, 0.5, ['Copy_Rotation', 'shin.R', (1,1,1), (0,0,0), False])]) addPoseBone(fp, config, 'UP-leg.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'penis', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'scrotum', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'MCH-stomach_target', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-stomach', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'MCH-stomach_target', 1, 1])]) addPoseBone(fp, config, 'DEF-butt.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'thigh.R', 0, 1])]) addPoseBone(fp, config, 'DEF-hip.R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'thigh.R', 0, 1])]) addPoseBone(fp, config, 'DEF-butt.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'thigh.L', 0, 1])]) addPoseBone(fp, config, 'DEF-hip.L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'thigh.L', 0, 1])]) return
def SkirtControlPoses(fp, config): # Skirt addPoseBone(fp, config, 'SkirtUp1Front_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, [('CopyLoc', 0, 1, [ 'SkirtFrontFix', 'SkirtFrontFix', (1, 1, 1), (0, 0, 0), 0, False ])]) addPoseBone(fp, config, 'SkirtUp2Front_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp3Front_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo1Front_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Front_L', 'SkirtUp3Front_L', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Front_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp1Front_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtFrontFix', 'SkirtFrontFix', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtUp2Front_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp3Front_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo1Front_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Front_R', 'SkirtUp3Front_R', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Front_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp1Back_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtBackFix', 'SkirtBackFix', (1,1,1), (0,0,0), 0, False])]) addPoseBone(fp, config, 'SkirtUp2Back_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp3Back_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo1Back_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Back_L', 'SkirtUp3Back_L', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Back_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp1Back_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtBackFix', 'SkirtBackFix', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtUp2Back_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp3Back_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo1Back_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Back_R', 'SkirtUp3Back_R', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Back_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp1Out_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtOutFix', 'SkirtOutFix', (1,1,1), (0,0,0), 0, False])]) addPoseBone(fp, config, 'SkirtUp2Out_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp3Out_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo1Out_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Out_L', 'SkirtUp3Out_L', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Out_L', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp1Out_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtOutFix', 'SkirtOutFix', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtUp2Out_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp3Out_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo1Out_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Out_R', 'SkirtUp3Out_R', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Out_R', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp1MidFront', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp2MidFront', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp3MidFront', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo1MidFront', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo2MidFront', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp1MidBack', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp2MidBack', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtUp3MidBack', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo1MidBack', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'SkirtLo2MidBack', 'MHHook', None, (1, 1, 1), (0, 0, 0), (1, 0, 1), (1, 1, 1), 0, []) return
def LegControlPoses(fp, amt): deltaKnee = -2.5*D # Leg addPoseBone(fp, amt, 'Hip_L', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Hip_R', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'UpLeg_L', 'GZM_Circle025', 'FK_L', (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limUpLeg_L, (1,1,1)]), #('CopyTrans', 0, 0, ['LegIK', 'UpLegIK_L', 0]), ('IK', 0, 0, ['LegIK', 'LoLegIK_L', 1, None, (1,0,0)]), ]) addPoseBone(fp, amt, 'UpLeg_R', 'GZM_Circle025', 'FK_R', (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limUpLeg_R, (1,1,1)]), #('CopyTrans', 0, 0, ['LegIK', 'UpLegIK_R', 0]), ('IK', 0, 0, ['LegIK', 'LoLegIK_R', 1, None, (1,0,0)]), ]) addPoseBone(fp, amt, 'LoLeg_L', 'GZM_Circle025', 'FK_L', (1,1,1), (0,0,0), (1,0,1), (1,1,1), P_YZX, [ ('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limLoLeg_L, (1,1,1)]), #('CopyTrans', 0, 0, ['LegIK', 'LoLegIK_L', 0]), ('IK', 0, 0, ['LegIK', 'AnkleIK_L', 1, None, (1,0,0)]), ]) addPoseBone(fp, amt, 'LoLeg_R', 'GZM_Circle025', 'FK_R', (1,1,1), (0,0,0), (1,0,1), (1,1,1), P_YZX, [ ('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limLoLeg_R, (1,1,1)]), #('CopyTrans', 0, 0, ['LegIK', 'LoLegIK_R', 0]), ('IK', 0, 0, ['LegIK', 'AnkleIK_R', 1, None, (1,0,0)]), ]) addPoseBone(fp, amt, 'Foot_L', 'MHFoot', 'FK_L', (0,0,0), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limFoot_L, (1,1,1)]), ('IK', 0, 0, ['RevIK', 'FootRev_L', 1, (90*D, 'FootPT_L'), (1,0,1)]), ('IK', 0, 0, ['FreeIK', None, 2, None, (True, False,True)])]) addPoseBone(fp, amt, 'Foot_R', 'MHFoot', 'FK_R', (0,0,0), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limFoot_R, (1,1,1)]), ('IK', 0, 0, ['RevIK', 'FootRev_R', 1, (90*D, 'FootPT_R'), (1,0,1)]), ('IK', 0, 0, ['FreeIK', None, 2, None, (True, False,True)])]) addPoseBone(fp, amt, 'Toe_L', 'MHToe_L', 'FK_L', (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, [('IK', 0, 0, ['RevIK', 'ToeRev_L', 1, (90*D, 'ToePT_L'), (1,0,1)])]) addPoseBone(fp, amt, 'Toe_R', 'MHToe_R', 'FK_R', (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, [('IK', 0, 0, ['RevIK', 'ToeRev_R', 1, (90*D, 'ToePT_R'), (1,0,1)])]) # Leg IK if True: addPoseBone(fp, amt, 'UpLegIK_L', None, 'IK_L', (1,1,1), (0,0,0), (1,0,1), ((1,1,1), (0,0,0), 0.05, limUpLeg_L), 0, []) addPoseBone(fp, amt, 'UpLegIK_R', None, 'IK_R', (1,1,1), (0,0,0), (1,0,1), ((1,1,1), (0,0,0), 0.05, limUpLeg_R), 0, []) addPoseBone(fp, amt, 'LoLegIK_L', None, 'IK_L', (1,1,1), (0,0,0), (1,0,1), ((1,0,0), (0,0,0), 0.05, limLoLeg_L), 0, [('LimitRot', C_OW_LOCAL, 1, ['Hint', (Hint,Hint, 0,0, 0,0), (1,0,0)]), ('IK', 0, 1, ['LegIK', 'AnkleIK_L', 2, (-90*D+deltaKnee, 'KneePT_L'), (1,0,0)]), ]) addPoseBone(fp, amt, 'LoLegIK_R', None, 'IK_R', (1,1,1), (0,0,0), (1,0,1), ((1,0,0), (0,0,0), 0.05, limLoLeg_R), 0, [('LimitRot', C_OW_LOCAL, 1, ['Hint', (Hint,Hint, 0,0, 0,0), (1,0,0)]), ('IK', 0, 1, ['LegIK', 'AnkleIK_R', 2, (-90*D-deltaKnee, 'KneePT_R'), (1,0,0)]) ]) addPoseBone(fp, amt, 'LegIK_L', 'MHFootCtrl_L', 'IK_L', (0,0,0), (0,0,0), (1,1,1), (1,1,1), 0, [ #('ChildOf', C_CHILDOF, 0, ['Hip', 'Hip_L', (1,1,1), (1,1,1), (1,1,1)]), ('LimitDist', 0, 1, ['DistHip', 'Hip_L', 'LIMITDIST_INSIDE'])]) addPoseBone(fp, amt, 'LegIK_R', 'MHFootCtrl_R', 'IK_R', (0,0,0), (0,0,0), (1,1,1), (1,1,1), 0, [ #('ChildOf', C_CHILDOF, 0, ['Hip', 'Hip_R', (1,1,1), (1,1,1), (1,1,1)]), ('LimitDist', 0, 1, ['DistHip', 'Hip_R', 'LIMITDIST_INSIDE'])]) addPoseBone(fp, amt, 'FootRev_L', 'MHRevFoot', 'IK_L', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limRevFoot_L, (1,1,1)])]) addPoseBone(fp, amt, 'FootRev_R', 'MHRevFoot', 'IK_R', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limRevFoot_R, (1,1,1)])]) addPoseBone(fp, amt, 'ToeRev_L', 'MHRevToe', 'IK_L', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limRevToe_L, (1,1,1)])]) addPoseBone(fp, amt, 'ToeRev_R', 'MHRevToe', 'IK_R', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limRevToe_R, (1,1,1)])]) addPoseBone(fp, amt, 'Ankle_L', 'MHBall025', 'IK_L', (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Ankle_R', 'MHBall025', 'IK_R', (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'AnkleIK_L', None, None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['Foot', 'FootRev_L', (1,1,1), (0,0,0), 1, False]), ('CopyLoc', 0, 0, ['Ankle', 'Ankle_L', (1,1,1), (0,0,0), 0, False]) ]) addPoseBone(fp, amt, 'AnkleIK_R', None, None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['Foot', 'FootRev_R', (1,1,1), (0,0,0), 1, False]), ('CopyLoc', 0, 0, ['Ankle', 'Ankle_R', (1,1,1), (0,0,0), 0, False]) ]) # Pole target addPoseBone(fp, amt, 'KneePT_L', 'MHCube025', 'IK_L', (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'KneeLinkPT_L', None, 'IK_L', (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'KneePT_L', 0, 1, 3.0])]) addPoseBone(fp, amt, 'KneePT_R', 'MHCube025', 'IK_R', (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'KneeLinkPT_R', None, 'IK_R', (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'KneePT_R', 0, 1, 3.0])]) # Upper leg deform addPoseBone(fp, amt, 'UpLegVec_L', None, None, (1,1,1), (1,0,1), (1,1,1), (1,1,1), 0, [('IK', 0, 1, ['IK', 'LoLeg_L', 1, None, (True, False,True)])]) addPoseBone(fp, amt, 'DfmUpLeg1_L', None, None, (1,1,1), (1,0,1), (1,1,1), (1,1,1), 0, [('IK', 0, 1, ['IK', 'LoLeg_L', 1, None, (True, False,True)])]) addPoseBone(fp, amt, 'UpLegVec_R', None, None, (1,1,1), (1,0,1), (1,1,1), (1,1,1), 0, [('IK', 0, 1, ['IK', 'LoLeg_R', 1, None, (True, False,True)])]) addPoseBone(fp, amt, 'DfmUpLeg1_R', None, None, (1,1,1), (1,0,1), (1,1,1), (1,1,1), 0, [('IK', 0, 1, ['IK', 'LoLeg_R', 1, None, (True, False,True)])]) # Lower leg deform addPoseBone(fp, amt, 'DfmLoLeg_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'Foot_L', 0, 1])]) addPoseBone(fp, amt, 'DfmLoLeg_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'Foot_R', 0, 1])]) addPoseBone(fp, amt, 'DfmLegOut_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'LegOutTrg_L', 1, 1])]) addPoseBone(fp, amt, 'DfmLegOut_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'LegOutTrg_R', 1, 1])]) #addPoseBone(fp, amt, 'DfmLegFront_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, # [('StretchTo', 0, 1, ['Stretch', 'LegFrontTrg_L', 1, 1])]) #addPoseBone(fp, amt, 'DfmLegFront_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, # [('StretchTo', 0, 1, ['Stretch', 'LegFrontTrg_R', 1, 1])]) addPoseBone(fp, amt, 'DfmKneeBack_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'KneeBackTrg_L', 1, 1])]) addPoseBone(fp, amt, 'DfmKneeBack_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'KneeBackTrg_R', 1, 1])]) # Fan bones addPoseBone(fp, amt, 'DfmHipFan_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyRot', C_LOCAL, 0.5, ['Rot', 'DfmUpLeg1_L', (1,1,1), (0,0,0), False])]) addPoseBone(fp, amt, 'DfmHipFan_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyRot', C_LOCAL, 0.5, ['Rot', 'DfmUpLeg1_R', (1,1,1), (0,0,0), False])]) addPoseBone(fp, amt, 'DfmKneeFan_L', None, None, (1,1,1), (1,0,1), (1,1,1), (1,1,1), 0, [('CopyRot', C_LOCAL, 0.5, ['Rot', 'LoLeg_L', (1,0,1), (0,0,0), False])]) addPoseBone(fp, amt, 'DfmKneeFan_R', None, None, (1,1,1), (1,0,1), (1,1,1), (1,1,1), 0, [('CopyRot', C_LOCAL, 0.5, ['Rot', 'LoLeg_R', (1,0,1), (0,0,0), False])]) if not MuscleBones: return # Tweak """ addPoseBone(fp, amt, 'DfmButt_L', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'Butt_L', 0, 1])]) addPoseBone(fp, amt, 'Butt_L', 'MHCube01', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'DfmButt_R', None, None, (1,1,1), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'Butt_R', 0, 1])]) addPoseBone(fp, amt, 'Butt_R', 'MHCube01', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) """ # Muscles addPoseBone(fp, amt, 'DfmLegIn_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'LegInTrg_L', 1, 1])]) addPoseBone(fp, amt, 'DfmLegIn_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'LegInTrg_R', 1, 1])]) addPoseBone(fp, amt, 'DfmLegback_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'LegbackTrg_L', 1, 1])]) addPoseBone(fp, amt, 'DfmLegback_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'LegbackTrg_R', 1, 1])]) return
def FaceControlPoses(fp, config): addPoseBone(fp, config, 'Jaw', 'MHJaw', None, (1, 1, 1), (0, 1, 0), (1, 1, 1), (1, 1, 1), 0, [('LimitRot', C_OW_LOCAL, 1, [ 'LimitRot', (-5 * D, 45 * D, 0, 0, -20 * D, 20 * D), (1, 1, 1) ])]) addPoseBone(fp, config, 'TongueBase', None, None, (1, 1, 1), (0, 1, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'TongueMid', None, None, (1, 1, 1), (0, 1, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'TongueTip', None, None, (1, 1, 1), (0, 1, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'Gaze', 'MHGaze', None, (0, 0, 0), (1, 1, 1), (0, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'GazeParent', None, None, (0, 0, 0), (1, 1, 1), (1, 1, 1), (1, 1, 1), 0, [('CopyTrans', 0, 1, ['Head', 'Head', 0])]) addPoseBone(fp, config, 'DfmUpLid_R', None, None, (1, 1, 1), (0, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'DfmLoLid_R', None, None, (1, 1, 1), (0, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'DfmUpLid_L', None, None, (1, 1, 1), (0, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'DfmLoLid_L', None, None, (1, 1, 1), (0, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone( fp, config, 'Eyes', None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, [('IK', 0, 1, ['IK', 'Gaze', 1, None, (True, False, False), 1.0])]) addPoseBone(fp, config, 'Eye_R', 'MHCircle025', None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, 'Eye_L', 'MHCircle025', None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone( fp, config, 'EyeParent_L', None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, [('CopyRot', C_LOCAL, 1, ['Eyes', 'Eyes', (1, 1, 1), (0, 0, 0), True])]) addPoseBone( fp, config, 'EyeParent_R', None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, [('CopyRot', C_LOCAL, 1, ['Eyes', 'Eyes', (1, 1, 1), (0, 0, 0), True])]) return
def ShoulderControlPoses(fp, config): # Clavicle addPoseBone(fp, config, 'Clavicle_L', 'MHShoulder', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limShoulder_L, (True, True, True)]), ('CopyTrans', 0, 0, ['Elbow', 'ELClavicle_L', 0]) ]) addPoseBone(fp, config, 'Clavicle_R', 'MHShoulder', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limShoulder_R, (True, True, True)]), ('CopyTrans', 0, 0, ['Elbow', 'ELClavicle_R', 0]) ]) addPoseBone(fp, config, 'ShoulderPivot_L', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('DampedTrack', 0, 0.5, ['DampedTrack', 'Clavicle_L', 'TRACK_Y', 1])]) addPoseBone(fp, config, 'ShoulderPivot_R', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('DampedTrack', 0, 0.5, ['DampedTrack', 'Clavicle_R', 'TRACK_Y', 1])]) # Shoulder addPoseBone(fp, config, 'Shoulder_L', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, config, 'Shoulder_R', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, config, 'UpArmSocket_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['Location', 'Shoulder_L', (1,1,1), (0,0,0), 0, False]), ('CopyTrans', 0, 0, ['Hinge', 'Shoulder_L', 0])]) addPoseBone(fp, config, 'UpArmSocket_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['Location', 'Shoulder_R', (1,1,1), (0,0,0), 0, False]), ('CopyTrans', 0, 0, ['Hinge', 'Shoulder_R', 0])]) addPoseBone(fp, config, 'UpArmHinge_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, config, 'UpArmHinge_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, []) # Elbow lock if config.exporting: addPoseBone(fp, config, 'Elbow_L', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, [ #('LimitDist', 0, 0, ['DistSternum', 'Sternum', 'LIMITDIST_INSIDE']), ]) addPoseBone(fp, config, 'ELClavicle_L', None, None, (1,1,1), (0,0,0), (1,1,1), ((1,0,1), (0.6,1,0.6), 0.0, None), 0, []) addPoseBone(fp, config, 'ELUpArm_L', None, None, (1,1,1), (0,0,0), (1,1,1), ((1,1,1), (0.2,0.6,0.2), 0.05, None), 0, [('IK', 0, 1, ['IK', 'Elbow_L', 2, (90*D, 'ELClavPT_L'), (True, False,True)])]) addPoseBone(fp, config, 'ELClavPT_L', 'MHCube025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, config, 'ELClavLinkPT_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'ELClavPT_L', 0, 1])]) addPoseBone(fp, config, 'Elbow_R', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, [ #('LimitDist', 0, 0, ['DistSternum', 'Sternum', 'LIMITDIST_INSIDE']), ]) addPoseBone(fp, config, 'ELClavicle_R', None, None, (1,1,1), (0,0,0), (1,1,1), ((1,0,1), (0.6,1,0.6), 0.0, None), 0, []) addPoseBone(fp, config, 'ELUpArm_R', None, None, (1,1,1), (0,0,0), (1,1,1), ((1,1,1), (0.2,0.6,0.2), 0.05, None), 0, [('IK', 0, 1, ['IK', 'Elbow_R', 2, (90*D, 'ELClavPT_R'), (True, False,True)])]) addPoseBone(fp, config, 'ELClavPT_R', 'MHCube025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, config, 'ELClavLinkPT_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'ELClavPT_R', 0, 1])]) # Muscles addPoseBone(fp, config, 'DfmPect2_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'DfmUpArm1_L', 1.0, 1])]) addPoseBone(fp, config, 'DfmPect2_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'DfmUpArm1_R', 1.0, 1])]) addPoseBone(fp, config, 'DfmTrap2_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'DfmUpArm1_L', 1.0, 1])]) addPoseBone(fp, config, 'DfmTrap2_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'DfmUpArm1_R', 1.0, 1])]) if not MuscleBones: return addPoseBone(fp, config, 'DfmDeltoid_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('CopyLoc', 0, 1, ['CopyLoc', 'DeltoidOffset_L', (1,1,1), (0,0,0), 1, False]), ('Transform', C_LOCAL, 1, ['Transform', 'UpArm_L', 'ROTATION', (0,0,0), (120,0,0), ('X','Y','Z'), 'ROTATION', (0,0,0), (60,0,0)]) ]) addPoseBone(fp, config, 'DfmDeltoid_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('CopyLoc', 0, 1, ['CopyLoc', 'DeltoidOffset_R', (1,1,1), (0,0,0), 1, False]), ('Transform', C_LOCAL, 1, ['Transform', 'UpArm_R', 'ROTATION', (0,0,0), (120,0,0), ('X','Y','Z'), 'ROTATION', (0,0,0), (60,0,0)]) ]) addPoseBone(fp, config, 'Sternum', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SternumTarget', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) # Muscle bones addPoseBone(fp, config, 'DfmPect1_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'PectTrg_L', 1.0, 1])]) addPoseBone(fp, config, 'DfmPect1_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'PectTrg_R', 1.0, 1])]) addPoseBone(fp, config, 'DfmTrap1_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'TrapTrg_L', 1.0, 1])]) addPoseBone(fp, config, 'DfmTrap1_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'TrapTrg_R', 1.0, 1])]) addPoseBone(fp, config, 'DfmLat_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'UpArmVec_L', 1.0, 1])]) addPoseBone(fp, config, 'DfmLat_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'UpArmVec_R', 1.0, 1])]) # Scapula addPoseBone(fp, config, 'ShoulderPivot_L', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('CopyRot', 0, 0.5, ['Rot', 'Clavicle_L', (1,1,1), (0,0,0), False])]) addPoseBone(fp, config, 'ShoulderUp_L', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, config, 'ShoulderAim_L', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('IK', 0, 1, ['IK', 'SternumTarget', 1, (90*D, 'ShoulderUp_L'), (True, False,True)])]) addPoseBone(fp, config, 'ShoulderPivot_R', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('CopyRot', 0, 0.5, ['Rot', 'Clavicle_R', (1,1,1), (0,0,0), False])]) addPoseBone(fp, config, 'ShoulderUp_R', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, config, 'ShoulderAim_R', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('IK', 0, 1, ['IK', 'SternumTarget', 1, (90*D, 'ShoulderUp_R'), (True, False,True)])]) return
def addToePoses(fp, amt): # Left toes addPoseBone(fp, amt, 'Toe-1-1_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-1-2_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-2-1_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-2-2_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-2-3_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-3-1_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-3-2_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-3-3_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-4-1_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-4-2_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-4-3_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-5-1_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-5-2_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-5-3_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) # Right toes addPoseBone(fp, amt, 'Toe-1-1_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-1-2_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-2-1_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-2-2_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-2-3_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-3-1_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-3-2_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-3-3_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-4-1_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-4-2_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-4-3_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-5-1_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-5-2_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Toe-5-3_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) return
def RigifyWritePoses(fp, config): global boneGroups boneGroups = {} addPoseBone(fp, config, 'hips', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'spine', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'ribs', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'neck', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'head', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'shoulder.L', None, None, (1, 1, 1), (0, 1, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'upper_arm.L', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'forearm.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'hand.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'palm.01.L', None, None, (1, 1, 1), (0, 1, 1), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.01.L', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.02.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.03.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-index.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.01.L', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.02.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.03.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-thumb.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'palm.02.L', None, None, (1, 1, 1), (0, 1, 1), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.01.L', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.02.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.03.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-middle.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'palm.03.L', None, None, (1, 1, 1), (0, 1, 1), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.01.L', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.02.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.03.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-ring.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'palm.04.L', None, None, (1, 1, 1), (0, 1, 1), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.01.L', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.02.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.03.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-pinky.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-elbow-fan.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('CopyRot', 0, 0.5, ['Copy_Rotation', 'forearm.L', (1, 1, 1), (0, 0, 0), False])]) addPoseBone(fp, config, 'UP-arm.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'MCH-deltoid_target.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'shoulder.R', None, None, (1, 1, 1), (0, 1, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'upper_arm.R', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'forearm.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'hand.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'palm.01.R', None, None, (0, 0, 0), (0, 1, 1), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.01.R', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.02.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_index.03.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-index.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.01.R', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.02.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'thumb.03.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-thumb.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'palm.02.R', None, None, (0, 0, 0), (0, 1, 1), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.01.R', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.02.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_middle.03.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-middle.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'palm.03.R', None, None, (0, 0, 0), (0, 1, 1), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.01.R', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.02.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_ring.03.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-ring.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'palm.04.R', None, None, (0, 0, 0), (0, 1, 1), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.01.R', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.02.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'finger_pinky.03.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'UP-pinky.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-elbow-fan.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('CopyRot', 0, 0.5, ['Copy_Rotation', 'forearm.R', (1, 1, 1), (0, 0, 0), False])]) addPoseBone(fp, config, 'UP-arm.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'MCH-deltoid_target.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-pect1.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.L', 0, 1])]) addPoseBone(fp, config, 'DEF-pect2.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.L', 0, 1])]) addPoseBone(fp, config, 'DEF-pect1.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.R', 0, 1])]) addPoseBone(fp, config, 'DEF-pect2.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.R', 0, 1])]) addPoseBone(fp, config, 'DEF-lat.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.L', 0, 1])]) addPoseBone(fp, config, 'DEF-lat.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.R', 0, 1])]) addPoseBone(fp, config, 'DEF-trap.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.L', 0, 1])]) addPoseBone(fp, config, 'DEF-trap.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'upper_arm.R', 0, 1])]) addPoseBone( fp, config, 'DEF-deltoid.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'MCH-deltoid_target.L', 1, 1])]) addPoseBone( fp, config, 'DEF-deltoid.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'MCH-deltoid_target.R', 1, 1])]) addPoseBone(fp, config, 'MCH-breast_target', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('CopyRot', 0 + C_OW_LOCAL + C_TG_LOCAL, 0.5, ['Copy_Rotation', 'ribs', (1, 1, 1), (0, 0, 0), False])]) addPoseBone( fp, config, 'DEF-breast', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'MCH-breast_target', 1, 1])]) addPoseBone(fp, config, 'thigh.L', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'shin.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'foot.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'toe.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'heel.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'heel.02.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-knee-fan.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('CopyRot', 0, 0.5, ['Copy_Rotation', 'shin.L', (1, 1, 1), (0, 0, 0), False])]) addPoseBone(fp, config, 'UP-leg.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'thigh.R', None, None, (1, 1, 1), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'shin.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'foot.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'toe.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'heel.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'heel.02.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'DEF-knee-fan.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('CopyRot', 0, 0.5, ['Copy_Rotation', 'shin.R', (1, 1, 1), (0, 0, 0), False])]) addPoseBone(fp, config, 'UP-leg.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'penis', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'scrotum', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone(fp, config, 'MCH-stomach_target', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, []) addPoseBone( fp, config, 'DEF-stomach', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'MCH-stomach_target', 1, 1])]) addPoseBone(fp, config, 'DEF-butt.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'thigh.R', 0, 1])]) addPoseBone(fp, config, 'DEF-hip.R', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'thigh.R', 0, 1])]) addPoseBone(fp, config, 'DEF-butt.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'thigh.L', 0, 1])]) addPoseBone(fp, config, 'DEF-hip.L', None, None, (0, 0, 0), (0, 0, 0), (0, 0, 0), (1, 1, 1), P_LKROT4, [('StretchTo', 0, 1, ['Stretch_To', 'thigh.L', 0, 1])]) return
def FaceControlPoses(fp, config): addPoseBone( fp, config, "Jaw", "MHJaw", None, (1, 1, 1), (0, 1, 0), (1, 1, 1), (1, 1, 1), 0, [("LimitRot", C_OW_LOCAL, 1, ["LimitRot", (-5 * D, 45 * D, 0, 0, -20 * D, 20 * D), (1, 1, 1)])], ) addPoseBone(fp, config, "TongueBase", None, None, (1, 1, 1), (0, 1, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, "TongueMid", None, None, (1, 1, 1), (0, 1, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, "TongueTip", None, None, (1, 1, 1), (0, 1, 0), (1, 0, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, "Gaze", "MHGaze", None, (0, 0, 0), (1, 1, 1), (0, 1, 1), (1, 1, 1), 0, []) addPoseBone( fp, config, "GazeParent", None, None, (0, 0, 0), (1, 1, 1), (1, 1, 1), (1, 1, 1), 0, [("CopyTrans", 0, 1, ["Head", "Head", 0])], ) addPoseBone(fp, config, "DfmUpLid_R", None, None, (1, 1, 1), (0, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, "DfmLoLid_R", None, None, (1, 1, 1), (0, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, "DfmUpLid_L", None, None, (1, 1, 1), (0, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, "DfmLoLid_L", None, None, (1, 1, 1), (0, 1, 1), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone( fp, config, "Eyes", None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, [("IK", 0, 1, ["IK", "Gaze", 1, None, (True, False, False), 1.0])], ) addPoseBone(fp, config, "Eye_R", "MHCircle025", None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone(fp, config, "Eye_L", "MHCircle025", None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, []) addPoseBone( fp, config, "EyeParent_L", None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, [("CopyRot", C_LOCAL, 1, ["Eyes", "Eyes", (1, 1, 1), (0, 0, 0), True])], ) addPoseBone( fp, config, "EyeParent_R", None, None, (1, 1, 1), (0, 0, 0), (1, 1, 1), (1, 1, 1), 0, [("CopyRot", C_LOCAL, 1, ["Eyes", "Eyes", (1, 1, 1), (0, 0, 0), True])], ) return
def ShoulderControlPoses(fp, amt): # Clavicle addPoseBone(fp, amt, 'Clavicle_L', 'MHShoulder', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limShoulder_L, (True, True, True)]), ('CopyTrans', 0, 0, ['Elbow', 'ELClavicle_L', 0]) ]) addPoseBone(fp, amt, 'Clavicle_R', 'MHShoulder', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limShoulder_R, (True, True, True)]), ('CopyTrans', 0, 0, ['Elbow', 'ELClavicle_R', 0]) ]) addPoseBone(fp, amt, 'ShoulderPivot_L', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('DampedTrack', 0, 0.5, ['DampedTrack', 'Clavicle_L', 'TRACK_Y', 1])]) addPoseBone(fp, amt, 'ShoulderPivot_R', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('DampedTrack', 0, 0.5, ['DampedTrack', 'Clavicle_R', 'TRACK_Y', 1])]) # Shoulder addPoseBone(fp, amt, 'Shoulder_L', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Shoulder_R', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'UpArmSocket_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['Location', 'Shoulder_L', (1,1,1), (0,0,0), 0, False]), ('CopyTrans', 0, 0, ['Hinge', 'Shoulder_L', 0])]) addPoseBone(fp, amt, 'UpArmSocket_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['Location', 'Shoulder_R', (1,1,1), (0,0,0), 0, False]), ('CopyTrans', 0, 0, ['Hinge', 'Shoulder_R', 0])]) addPoseBone(fp, amt, 'UpArmHinge_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'UpArmHinge_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, []) # Elbow lock if True: addPoseBone(fp, amt, 'Elbow_L', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, [ #('LimitDist', 0, 0, ['DistSternum', 'Sternum', 'LIMITDIST_INSIDE']), ]) addPoseBone(fp, amt, 'ELClavicle_L', None, None, (1,1,1), (0,0,0), (1,1,1), ((1,0,1), (0.6,1,0.6), 0.0, None), 0, []) addPoseBone(fp, amt, 'ELUpArm_L', None, None, (1,1,1), (0,0,0), (1,1,1), ((1,1,1), (0.2,0.6,0.2), 0.05, None), 0, [('IK', 0, 1, ['IK', 'Elbow_L', 2, (90*D, 'ELClavPT_L'), (True, False,True)])]) addPoseBone(fp, amt, 'ELClavPT_L', 'MHCube025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'ELClavLinkPT_L', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'ELClavPT_L', 0, 1])]) addPoseBone(fp, amt, 'Elbow_R', 'MHBall025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, [ #('LimitDist', 0, 0, ['DistSternum', 'Sternum', 'LIMITDIST_INSIDE']), ]) addPoseBone(fp, amt, 'ELClavicle_R', None, None, (1,1,1), (0,0,0), (1,1,1), ((1,0,1), (0.6,1,0.6), 0.0, None), 0, []) addPoseBone(fp, amt, 'ELUpArm_R', None, None, (1,1,1), (0,0,0), (1,1,1), ((1,1,1), (0.2,0.6,0.2), 0.05, None), 0, [('IK', 0, 1, ['IK', 'Elbow_R', 2, (90*D, 'ELClavPT_R'), (True, False,True)])]) addPoseBone(fp, amt, 'ELClavPT_R', 'MHCube025', None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'ELClavLinkPT_R', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'ELClavPT_R', 0, 1])]) # Muscles addPoseBone(fp, amt, 'DfmPect2_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'DfmUpArm1_L', 1.0, 1])]) addPoseBone(fp, amt, 'DfmPect2_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'DfmUpArm1_R', 1.0, 1])]) addPoseBone(fp, amt, 'DfmTrap2_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'DfmUpArm1_L', 1.0, 1])]) addPoseBone(fp, amt, 'DfmTrap2_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'DfmUpArm1_R', 1.0, 1])]) if not MuscleBones: return addPoseBone(fp, amt, 'DfmDeltoid_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('CopyLoc', 0, 1, ['CopyLoc', 'DeltoidOffset_L', (1,1,1), (0,0,0), 1, False]), ('Transform', C_LOCAL, 1, ['Transform', 'UpArm_L', 'ROTATION', (0,0,0), (120,0,0), ('X','Y','Z'), 'ROTATION', (0,0,0), (60,0,0)]) ]) addPoseBone(fp, amt, 'DfmDeltoid_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('CopyLoc', 0, 1, ['CopyLoc', 'DeltoidOffset_R', (1,1,1), (0,0,0), 1, False]), ('Transform', C_LOCAL, 1, ['Transform', 'UpArm_R', 'ROTATION', (0,0,0), (120,0,0), ('X','Y','Z'), 'ROTATION', (0,0,0), (60,0,0)]) ]) addPoseBone(fp, amt, 'Sternum', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'SternumTarget', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) # Muscle bones addPoseBone(fp, amt, 'DfmPect1_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'PectTrg_L', 1.0, 1])]) addPoseBone(fp, amt, 'DfmPect1_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'PectTrg_R', 1.0, 1])]) addPoseBone(fp, amt, 'DfmTrap1_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'TrapTrg_L', 1.0, 1])]) addPoseBone(fp, amt, 'DfmTrap1_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'TrapTrg_R', 1.0, 1])]) addPoseBone(fp, amt, 'DfmLat_L', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'UpArmVec_L', 1.0, 1])]) addPoseBone(fp, amt, 'DfmLat_R', None, None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'UpArmVec_R', 1.0, 1])]) # Scapula addPoseBone(fp, amt, 'ShoulderPivot_L', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('CopyRot', 0, 0.5, ['Rot', 'Clavicle_L', (1,1,1), (0,0,0), False])]) addPoseBone(fp, amt, 'ShoulderUp_L', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'ShoulderAim_L', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('IK', 0, 1, ['IK', 'SternumTarget', 1, (90*D, 'ShoulderUp_L'), (True, False,True)])]) addPoseBone(fp, amt, 'ShoulderPivot_R', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('CopyRot', 0, 0.5, ['Rot', 'Clavicle_R', (1,1,1), (0,0,0), False])]) addPoseBone(fp, amt, 'ShoulderUp_R', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'ShoulderAim_R', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('IK', 0, 1, ['IK', 'SternumTarget', 1, (90*D, 'ShoulderUp_R'), (True, False,True)])]) return
def SkirtControlPoses(fp, config): # Skirt addPoseBone(fp, config, 'SkirtUp1Front_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['SkirtFrontFix', 'SkirtFrontFix', (1,1,1), (0,0,0), 0, False])]) addPoseBone(fp, config, 'SkirtUp2Front_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp3Front_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo1Front_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Front_L', 'SkirtUp3Front_L', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Front_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp1Front_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtFrontFix', 'SkirtFrontFix', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtUp2Front_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp3Front_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo1Front_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Front_R', 'SkirtUp3Front_R', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Front_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp1Back_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtBackFix', 'SkirtBackFix', (1,1,1), (0,0,0), 0, False])]) addPoseBone(fp, config, 'SkirtUp2Back_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp3Back_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo1Back_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Back_L', 'SkirtUp3Back_L', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Back_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp1Back_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtBackFix', 'SkirtBackFix', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtUp2Back_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp3Back_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo1Back_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Back_R', 'SkirtUp3Back_R', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Back_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp1Out_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtOutFix', 'SkirtOutFix', (1,1,1), (0,0,0), 0, False])]) addPoseBone(fp, config, 'SkirtUp2Out_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp3Out_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo1Out_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Out_L', 'SkirtUp3Out_L', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Out_L', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp1Out_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtOutFix', 'SkirtOutFix', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtUp2Out_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp3Out_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo1Out_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) #[('CopyLoc', 0, 1, ['SkirtUp3Out_R', 'SkirtUp3Out_R', (1,1,1), (0,0,0), 1, False])]) addPoseBone(fp, config, 'SkirtLo2Out_R', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp1MidFront', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp2MidFront', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp3MidFront', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo1MidFront', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo2MidFront', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp1MidBack', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp2MidBack', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtUp3MidBack', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo1MidBack', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, config, 'SkirtLo2MidBack', 'MHHook', None, (1,1,1), (0,0,0), (1,0,1), (1,1,1), 0, []) return
def FaceControlPoses(fp, amt): addPoseBone(fp, amt, 'Jaw', 'MHJaw', None, (1,1,1), (0,1,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', (-5*D,45*D, 0,0, -20*D,20*D), (1,1,1)])]) addPoseBone(fp, amt, 'TongueBase', None, None, (1,1,1), (0,1,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'TongueMid', None, None, (1,1,1), (0,1,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'TongueTip', None, None, (1,1,1), (0,1,0), (1,0,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Gaze', 'MHGaze', None, (0,0,0), (1,1,1), (0,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'GazeParent', None, None, (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyTrans', 0, 1, ['Head', 'Head', 0])]) addPoseBone(fp, amt, 'DfmUpLid_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'DfmLoLid_R', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'DfmUpLid_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'DfmLoLid_L', None, None, (1,1,1), (0,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Eyes', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('IK', 0, 1, ['IK', 'Gaze', 1, None, (True, False,False), 1.0])]) addPoseBone(fp, amt, 'Eye_R', 'MHCircle025', None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Eye_L', 'MHCircle025', None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'EyeParent_L', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('CopyRot', C_LOCAL, 1, ['Eyes', 'Eyes', (1,1,1), (0,0,0), True])]) addPoseBone(fp, amt, 'EyeParent_R', None, None, (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('CopyRot', C_LOCAL, 1, ['Eyes', 'Eyes', (1,1,1), (0,0,0), True])]) return
def BodyControlPoses(fp, amt, config): addPoseBone(fp, amt, 'MasterFloor', 'GZM_Root', 'Master', (0,0,0), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Root', 'MHCrown', 'Master', (0,0,0), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 0, ['LimitRot', (0,0, -45*D,45*D, 0,0), (1,1,1)]) ]) addPoseBone(fp, amt, 'Shoulders', 'MHCrown', 'Master', (0,0,0), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', (0,0, -45*D,45*D, 0,0), (1,1,1)]), #('LimitDist', 0, 1, ['LimitDist', 'Root', 'LIMITDIST_INSIDE']) ]) # Up spine addPoseBone(fp, amt, 'Hips', 'GZM_CircleHips', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limHips, (1,1,1)])]) addPoseBone(fp, amt, 'Pelvis', 'MHCircle15', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'Spine1', 'GZM_CircleSpine', 'Spine', (1,1,1), (0,0,0), (1,1,1), ((1,1,1), (0.2,0.2,0.2), 0.05, None), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limSpine1, (1,1,1)])]) addPoseBone(fp, amt, 'Spine2', 'GZM_CircleSpine', 'Spine', (1,1,1), (0,0,0), (1,1,1), ((1,1,1), (0.2,0.2,0.2), 0.05, None), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limSpine2, (1,1,1)])]) addPoseBone(fp, amt, 'Spine3', 'GZM_CircleChest', 'Spine', (1,1,1), (0,0,0), (1,1,1), ((1,1,1), (0.96,0.96,0.96), 0.01, None), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limSpine3, (1,1,1)]), ('IK', 0, 0, ['IK', 'Shoulders', 3, (-90*D, 'SpinePT'), (1,0,1)]), ]) addPoseBone(fp, amt, 'Neck', 'MHNeck', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limNeck, (1,1,1)])]) if config.advancedSpine: # Spine IK addPoseBone(fp, amt, 'SpinePT', 'MHCube025', 'Spine', (0,0,0), (1,1,1), (1,1,1), (1,1,1), 0, []) addPoseBone(fp, amt, 'SpineLinkPT', None, 'Spine', (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'SpinePT', 0, 1])]) # Down spine addPoseBone(fp, amt, 'DownHips', 'GZM_CircleHips', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limSpine1, (1,1,1)])]) addPoseBone(fp, amt, 'DownSpine1', 'GZM_CircleInvSpine', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limSpine2, (1,1,1)])]) addPoseBone(fp, amt, 'DownSpine2', 'GZM_CircleInvSpine', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limSpine3, (1,1,1)])]) addPoseBone(fp, amt, 'DownSpine3', 'GZM_CircleInvChest', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limNeck, (1,1,1)]), ]) addPoseBone(fp, amt, 'DownNeck', 'MHNeck', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', limNeck, (1,1,1)])]) # Deform spine addPoseBone(fp, amt, 'DfmPelvis', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['UpLoc', 'Pelvis', (1,1,1), (0,0,0), False, False]), ('CopyRot', 0, 1, ['UpRot', 'Pelvis', (1,1,1), (0,0,0), False]), ('CopyLoc', 0, 0, ['DownLoc', 'DownHips', (1,1,1), (0,0,0), 1, False]), ('IK', 0, 0, ['DownIK', 'DownHips', 0, (-90*D, 'DownPT1'), (True, False,True)]) ]) addPoseBone(fp, amt, 'DfmHips', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['UpLoc', 'Hips', (1,1,1), (0,0,0), False, False]), ('CopyRot', 0, 1, ['UpRot', 'Hips', (1,1,1), (0,0,0), False]), ('CopyLoc', 0, 0, ['DownLoc', 'DownHips', (1,1,1), (0,0,0), 0, False]), ('CopyRot', 0, 0, ['DownRot', 'DownHips', (1,1,1), (0,0,0), False]) ]) addPoseBone(fp, amt, 'DfmSpine1', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['UpLoc', 'Spine1', (1,1,1), (0,0,0), False, False]), ('CopyRot', 0, 1, ['UpRot', 'Spine1', (1,1,1), (0,0,0), False]), ('CopyLoc', 0, 0, ['DownLoc', 'DownSpine1', (1,1,1), (0,0,0), 1, False]), ('IK', 0, 0, ['DownIK', 'DownSpine1', 1, (-90*D, 'DownPT1'), (True, False,True)]), ('StretchTo', 0, 1, ['Stretch', 'Spine2', 0, 1]) ]) addPoseBone(fp, amt, 'DfmSpine2', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyRot', 0, 1, ['UpRot', 'Spine2', (1,1,1), (0,0,0), False]), ('CopyLoc', 0, 0, ['DownLoc', 'DownSpine2', (1,1,1), (0,0,0), 1, False]), ('IK', 0, 0, ['DownIK', 'DownSpine2', 1, (-90*D, 'DownPT2'), (True, False,True)]), ('StretchTo', 0, 1, ['Stretch', 'Spine3', 0, 1]) ]) addPoseBone(fp, amt, 'DfmSpine3', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyRot', 0, 1, ['UpRot', 'Spine3', (1,1,1), (0,0,0), False]), ('CopyLoc', 0, 0, ['DownLoc', 'DownSpine3', (1,1,1), (0,0,0), 1, False]), ('IK', 0, 0, ['DownIK', 'DownSpine3', 1, (-90*D, 'DownPT3'), (True, False,True)]) ]) addPoseBone(fp, amt, 'DfmNeck', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyLoc', 0, 1, ['UpLoc', 'Neck', (1,1,1), (0,0,0), False, False]), ('CopyRot', 0, 1, ['UpRot', 'Neck', (1,1,1), (0,0,0), False]), ('CopyLoc', 0, 0, ['DownLoc', 'DownNeck', (1,1,1), (0,0,0), 0, False]), ('CopyRot', 0, 0, ['DownRot', 'DownNeck', (1,1,1), (0,0,0), False]) ]) else: # Deform spine addPoseBone(fp, amt, 'DfmPelvis', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyTrans', 0, 1, ['CopyTrans', 'Pelvis', 0])]) addPoseBone(fp, amt, 'DfmHips', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyTrans', 0, 1, ['CopyTrans', 'Hips', 0])]) addPoseBone(fp, amt, 'DfmSpine1', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyTrans', 0, 1, ['CopyTrans', 'Spine1', 0])]) addPoseBone(fp, amt, 'DfmSpine2', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyTrans', 0, 1, ['CopyTrans', 'Spine2', 0])]) addPoseBone(fp, amt, 'DfmSpine3', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyTrans', 0, 1, ['CopyTrans', 'Spine3', 0])]) addPoseBone(fp, amt, 'DfmNeck', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyTrans', 0, 1, ['CopyTrans', 'Neck', 0])]) # Head addPoseBone(fp, amt, 'Head', 'MHHead', 'Spine', (1,1,1), (0,0,0), (1,1,1), (1,1,1), 0, [('LimitRot', C_OW_LOCAL, 1, ['LimitRot', (-60*D,40*D, -60*D,60*D, -45*D,45*D), (1,1,1)])]) addPoseBone(fp, amt, 'DfmHead', None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('CopyTrans', 0, 1, ['CopyTrans', 'Head', 0])]) addPoseBone(fp, amt, 'DfmStomach',None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'StomachTrg', 1, 1]), ]) limBreastRot = (-45*D,45*D, -10*D,10*D, -20*D,20*D) limBreastScale = (0.5,1.5, 0.2,2.0, 0.5,1.5) addPoseBone(fp, amt, 'Breast_L', 'MHEndCube01', None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, []) addPoseBone(fp, amt, 'Breast_R', 'MHEndCube01', None, (0,0,0), (0,0,0), (0,0,0), (1,1,1), 0, []) if not MuscleBones: return # Stomach addPoseBone(fp, amt, 'Stomach', 'MHBall025', None, (0,0,0), (1,1,1), (0,0,0), (1,1,1), 0, []) addPoseBone(fp, amt, 'DfmStomach1',None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'Stomach', 0, 1]), ]) addPoseBone(fp, amt, 'DfmStomach2',None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'StomachTrg', 1, 1]), ]) addPoseBone(fp, amt, 'StomachPar',None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 0.5, ['Stretch', 'StomachTrg', 1, 1])]) addPoseBone(fp, amt, 'DfmWaist_L',None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'WaistTrg_L', 0, 1])]) addPoseBone(fp, amt, 'DfmWaist_R',None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'WaistTrg_R', 0, 1])]) # Pubis addPoseBone(fp, amt, 'Pubis_R',None, None, (1,1,1), (1,1,1), (1,1,1), (1,1,1), 0, [('StretchTo', 0, 1, ['Stretch', 'Pubis_L', 0, 1]), ]) #print(amt.locations.keys()) addPoseBone(fp, amt, 'Pubis', 'MHBall025', None, (0,0,0), (1,1,1), (0,0,0), (1,1,1), 0, [('CopyLoc', 0, 1, ['MidPoint', 'Pubis_R', (1,1,1), (0,0,0), 0.5, False]), ]) return