예제 #1
0
    def __init__(self, amt, human):
        Parser.__init__(self, amt, human)

        # npieces,target,numAfter,followNext
        self.splitBones = {
            "upper_arm" :   (2, "forearm", False, True),
            "forearm" :     (2, "hand", False, True),
            "thigh" :       (2, "shin", False, True),
            "shin" :        (2, "foot", False, True),

            "thumb.01" :    (2, "thumb.02", True, True),
            "f_index.01" :  (2, "f_index.02", True, True),
            "f_middle.01" : (2, "f_middle.02", True, True),
            "f_ring.01" :   (2, "f_ring.02", True, True),
            "f_pinky.01" :  (2, "f_pinky.02", True, True),
        }


        self.joints += rig_rigify.Joints
        utils.addDict(rig_rigify.HeadsTails, self.headsTails)
예제 #2
0
    def __init__(self, amt, human):
        Parser.__init__(self, amt, human)

        self.splitBones = {
            "upper_arm" :   (2, "forearm", False),
            "forearm" :     (2, "hand", False),
            "thigh" :       (2, "shin", False),
            "shin" :        (2, "foot", False),

            "thumb.01" :    (2, "thumb.02", True),
            "f_index.01" :  (2, "f_index.02", True),
            "f_middle.01" : (2, "f_middle.02", True),
            "f_ring.01" :   (2, "f_ring.02", True),
            "f_pinky.01" :  (2, "f_pinky.02", True),
        }

        self.objectProps = (
            rig_bones.ObjectProps +
            [("MhxRig", '"Rigify"'),
             ("MhxRigify", True)]
        )
예제 #3
0
def setupArmature(name, human, config):
    from armature.parser import Parser
    from . import mhx_rigify

    options = config.rigOptions
    if options is None:
        return None
    else:
        log.message("Setup MHX rig %s" % name)
        if isinstance(options, mhx_rigify.RigifyOptions):
            amt = mhx_rigify.RigifyArmature(name, options, config)
            amt.parser = mhx_rigify.RigifyParser(amt, human)
        else:
            amt = ExportArmature(name, options, config)
            amt.parser = Parser(amt, human)
        amt.setup()
        log.message("Using rig with options %s" % options)
        return amt
예제 #4
0
 def createBones(self, boneInfo):
     self.addBones(rig_rigify.Armature, boneInfo)
     Parser.createBones(self, boneInfo)