Exemplo n.º 1
0
def legToIK(side='L', starts=''):
    args = (('%s_legIk_ctlAim_0',  '%s_legIk_ctl_0'),)
    matchIK(side, starts, args)
    #- move pole Vector Control -
    pointJointA = starts + ':' + '%s_legHip_bnd_0'%side
    pointJointB = starts + ':' + '%s_legKnee_bnd_0'%side
    pointJointC = starts + ':' + '%s_legAnkle_bnd_0'%side
    endP = mathTool.getPoleVectorPosition(pointJointA, pointJointB, pointJointC)
    mc.move(endP[0], endP[1], endP[2], starts + ':' + '%s_poleLeg_ctl_0'%side, a=True)
Exemplo n.º 2
0
def foreLegToIK(side='L', starts=''):
    args = (('%s_legFrontIk_ctlAim_0',  '%s_legFrontIk_ctl_0'),)
    matchIK(side, starts, args)
    
    #- move pole Vector Control -
    pointJointA = starts + ':' + '%s_foreLegShoulder_bnd_0'%side
    pointJointB = starts + ':' + '%s_foreLegElbow_bnd_0'%side
    pointJointC = starts + ':' + '%s_foreLegFoot_bnd_0'%side
    endP = mathTool.getPoleVectorPosition(pointJointA, pointJointB, pointJointC)
    mc.move(endP[0], endP[1], endP[2], starts + ':' + '%s_poleLegFront_ctl_0'%side, a=True)
Exemplo n.º 3
0
def armToIK(side='L', starts=''):
    args = (('%s_armWrist_bnd_0',  '%s_armIk_ctl_0'), 
            ('%s_armElbow_bnd_0', '%s_poleArm_ctl_0'))
    matchIK(side, starts, args)
    #- move pole Vector Control -
    pointJointA = starts + ':' + '%s_armShoulder_bnd_0'%side
    pointJointB = starts + ':' + '%s_armElbow_bnd_0'%side
    pointJointC = starts + ':' + '%s_armWrist_bnd_0'%side
    endP = mathTool.getPoleVectorPosition(pointJointA, pointJointB, pointJointC)
    mc.move(endP[0], endP[1], endP[2], starts + ':' + '%s_poleArm_ctl_0'%side, a=True)