def addInOutEyelidCorners(): # add primarys for eyelids in/out bnd = nt.Joint(u'LT_inner_eyelid_bnd') pCtl = priCtl.addPrimaryCtlToBnd(bnd) bndsToConnect = [nt.Joint(u'LT_innerUpper_eyelid_bnd'), nt.Joint(u'LT_inner_eyelid_bnd'), nt.Joint(u'LT_innerLower_eyelid_bnd'), nt.Joint(u'LT_inCorner_eyeSocket_bnd')] priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) bnd = nt.Joint(u'LT_outer_eyelid_bnd') pCtl = priCtl.addPrimaryCtlToBnd(bnd) bndsToConnect = [nt.Joint(u'LT_outerUpper_eyelid_bnd'), nt.Joint(u'LT_outer_eyelid_bnd'), nt.Joint(u'LT_outerLower_eyelid_bnd'), nt.Joint(u'LT_outCorner_eyeSocket_bnd')] priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) bnd = nt.Joint(u'RT_inner_eyelid_bnd') pCtl = priCtl.addPrimaryCtlToBnd(bnd) bndsToConnect = [nt.Joint(u'RT_innerUpper_eyelid_bnd'), nt.Joint(u'RT_inner_eyelid_bnd'), nt.Joint(u'RT_innerLower_eyelid_bnd'), nt.Joint(u'RT_inCorner_eyeSocket_bnd')] priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) bnd = nt.Joint(u'RT_outer_eyelid_bnd') pCtl = priCtl.addPrimaryCtlToBnd(bnd) bndsToConnect = [nt.Joint(u'RT_outerUpper_eyelid_bnd'), nt.Joint(u'RT_outer_eyelid_bnd'), nt.Joint(u'RT_outerLower_eyelid_bnd'), nt.Joint(u'RT_outCorner_eyeSocket_bnd')] priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) '''
def addHighCheekControls(): ''' ''' import rigger.modules.face as face reload(face) # add bnds pLoc = nt.Transform(u'LT_high_cheek_pLoc') bndGrp = nt.Transform(u'CT_bnd_grp') face.createBndFromPlacementLoc(pLoc, bndGrp) pLoc = nt.Transform(u'RT_high_cheek_pLoc') bndGrp = nt.Transform(u'CT_bnd_grp') face.createBndFromPlacementLoc(pLoc, bndGrp) # sec system bnd = nt.Joint(u'LT_high_cheek_bnd') face.addSecondaryControlSystemToBnd(bnd) bnd = nt.Joint(u'RT_high_cheek_bnd') face.addSecondaryControlSystemToBnd(bnd) # connect to pri system import rigger.modules.priCtl as priCtl reload(priCtl) # left bndsToConnect = [nt.Joint(u'LT_high_cheek_bnd')] pCtl = nt.Transform(u'LT__squint_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'CT__mouthMover_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'CT__jaw_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'LT_mid_cheek_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'LT_corner_lip_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) # right bndsToConnect = [nt.Joint(u'RT_high_cheek_bnd')] pCtl = nt.Transform(u'RT__squint_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'CT__mouthMover_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'CT__jaw_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'RT_mid_cheek_pri_ctrl_real') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'RT_corner_lip_pri_ctrl_real') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) # add pri ctl to high_cheek_bnd priBnd = nt.Joint(u'LT_high_cheek_bnd') newCtl = priCtl.addPrimaryCtlToBnd(priBnd) priCtl.addPriCtlDrivers(priBnd) priBnd = nt.Joint(u'RT_high_cheek_bnd') newCtl = priCtl.addPrimaryCtlToBnd(priBnd) priCtl.addPriCtlDrivers(priBnd) # drive other bnds newCtl = nt.Transform(u'LT_high_cheek_pri_ctrl') bndsToDrive = [ nt.Joint(u'LT_up_crease_bnd'), nt.Joint(u'LT_in_cheek_bnd'), nt.Joint(u'LT_up_cheek_bnd'), nt.Joint(u'LT_out_cheek_bnd'), nt.Joint(u'LT__squint_bnd'), nt.Joint(u'LT_high_cheek_bnd'), nt.Joint(u'LT_mid_crease_bnd'), nt.Joint(u'LT_low_crease_bnd'), nt.Joint(u'LT_mid_cheek_bnd'), nt.Joint(u'LT_low_cheek_bnd') ] for bnd in bndsToDrive: priCtl.connectBndToPriCtl(bnd, newCtl, False) # drive other bnds newCtl = nt.Transform(u'RT_high_cheek_pri_ctrl') bndsToDrive = [ nt.Joint(u'RT_up_crease_bnd'), nt.Joint(u'RT_in_cheek_bnd'), nt.Joint(u'RT_up_cheek_bnd'), nt.Joint(u'RT_out_cheek_bnd'), nt.Joint(u'RT__squint_bnd'), nt.Joint(u'RT_high_cheek_bnd'), nt.Joint(u'RT_mid_crease_bnd'), nt.Joint(u'RT_low_crease_bnd'), nt.Joint(u'RT_mid_cheek_bnd'), nt.Joint(u'RT_low_cheek_bnd') ] for bnd in bndsToDrive: priCtl.connectBndToPriCtl(bnd, newCtl, False) # newCtl to drive other priCtls newCtl = nt.Transform(u'LT_high_cheek_pri_ctrl') priCtl.driveAttachedPriCtl(nt.Joint(u'LT__squint_bnd'), newCtl) priCtl.driveAttachedPriCtl(nt.Joint(u'LT_mid_cheek_bnd'), newCtl) newCtl = nt.Transform(u'RT_high_cheek_pri_ctrl') priCtl.driveAttachedPriCtl(nt.Joint(u'RT__squint_bnd'), newCtl) priCtl.driveAttachedPriCtl(nt.Joint(u'RT_mid_cheek_bnd'), newCtl)
def addHighCheekControls(): ''' ''' import rigger.modules.face as face reload(face) # add bnds pLoc = nt.Transform(u'LT_high_cheek_pLoc') bndGrp = nt.Transform(u'CT_bnd_grp') face.createBndFromPlacementLoc(pLoc, bndGrp) pLoc = nt.Transform(u'RT_high_cheek_pLoc') bndGrp = nt.Transform(u'CT_bnd_grp') face.createBndFromPlacementLoc(pLoc, bndGrp) # sec system bnd = nt.Joint(u'LT_high_cheek_bnd') face.addSecondaryControlSystemToBnd(bnd) bnd = nt.Joint(u'RT_high_cheek_bnd') face.addSecondaryControlSystemToBnd(bnd) # connect to pri system import rigger.modules.priCtl as priCtl reload(priCtl) # left bndsToConnect = [nt.Joint(u'LT_high_cheek_bnd')] pCtl = nt.Transform(u'LT__squint_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'CT__mouthMover_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'CT__jaw_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'LT_mid_cheek_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'LT_corner_lip_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) # right bndsToConnect = [nt.Joint(u'RT_high_cheek_bnd')] pCtl = nt.Transform(u'RT__squint_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'CT__mouthMover_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'CT__jaw_pri_ctrl') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'RT_mid_cheek_pri_ctrl_real') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) pCtl = nt.Transform(u'RT_corner_lip_pri_ctrl_real') priCtl.connectBndsToPriCtl(bndsToConnect, pCtl) # add pri ctl to high_cheek_bnd priBnd = nt.Joint(u'LT_high_cheek_bnd') newCtl = priCtl.addPrimaryCtlToBnd(priBnd) priCtl.addPriCtlDrivers(priBnd) priBnd = nt.Joint(u'RT_high_cheek_bnd') newCtl = priCtl.addPrimaryCtlToBnd(priBnd) priCtl.addPriCtlDrivers(priBnd) # drive other bnds newCtl = nt.Transform(u'LT_high_cheek_pri_ctrl') bndsToDrive = [nt.Joint(u'LT_up_crease_bnd'), nt.Joint(u'LT_in_cheek_bnd'), nt.Joint(u'LT_up_cheek_bnd'), nt.Joint(u'LT_out_cheek_bnd'), nt.Joint(u'LT__squint_bnd'), nt.Joint(u'LT_high_cheek_bnd'), nt.Joint(u'LT_mid_crease_bnd'), nt.Joint(u'LT_low_crease_bnd'), nt.Joint(u'LT_mid_cheek_bnd'), nt.Joint(u'LT_low_cheek_bnd')] for bnd in bndsToDrive: priCtl.connectBndToPriCtl(bnd, newCtl, False) # drive other bnds newCtl = nt.Transform(u'RT_high_cheek_pri_ctrl') bndsToDrive = [nt.Joint(u'RT_up_crease_bnd'), nt.Joint(u'RT_in_cheek_bnd'), nt.Joint(u'RT_up_cheek_bnd'), nt.Joint(u'RT_out_cheek_bnd'), nt.Joint(u'RT__squint_bnd'), nt.Joint(u'RT_high_cheek_bnd'), nt.Joint(u'RT_mid_crease_bnd'), nt.Joint(u'RT_low_crease_bnd'), nt.Joint(u'RT_mid_cheek_bnd'), nt.Joint(u'RT_low_cheek_bnd')] for bnd in bndsToDrive: priCtl.connectBndToPriCtl(bnd, newCtl, False) # newCtl to drive other priCtls newCtl = nt.Transform(u'LT_high_cheek_pri_ctrl') priCtl.driveAttachedPriCtl(nt.Joint(u'LT__squint_bnd'), newCtl) priCtl.driveAttachedPriCtl(nt.Joint(u'LT_mid_cheek_bnd'), newCtl) newCtl = nt.Transform(u'RT_high_cheek_pri_ctrl') priCtl.driveAttachedPriCtl(nt.Joint(u'RT__squint_bnd'), newCtl) priCtl.driveAttachedPriCtl(nt.Joint(u'RT_mid_cheek_bnd'), newCtl)