Пример #1
0
    def __init__(self, name, human, config):
        import gizmos_panel, gizmos_rigify

        ExportArmature.__init__(self, name, human, config)
        self.rigtype = 'rigify'
        self.boneLayers = "80005555"

        self.vertexGroupFiles = ["head", "rigify"]
        self.gizmos = (gizmos_panel.asString() + gizmos_rigify.asString())
        self.headName = 'head'
        self.preservevolume = True
        faceArmature = swapParentNames(rig_face_25.FaceArmature, {
            'Head': 'head',
            'MasterFloor': None
        })

        self.joints = (rig_joints_25.DeformJoints + rig_body_25.BodyJoints +
                       rig_joints_25.FloorJoints + rigify_rig.RigifyJoints +
                       rig_face_25.FaceJoints)

        self.headsTails = (rigify_rig.RigifyHeadsTails +
                           rig_face_25.FaceHeadsTails)

        self.boneDefs = (rigify_rig.RigifyArmature + faceArmature)

        self.objectProps = rigify_rig.RigifyObjectProps + [
            ("MhxRig", '"Rigify"')
        ]
        self.armatureProps = rigify_rig.RigifyArmatureProps
Пример #2
0
    def __init__(self, name, human, config):   
        import gizmos_panel, gizmos_rigify
        
        ExportArmature. __init__(self, name, human, config)
        self.rigtype = 'rigify'
        self.boneLayers = "80005555"

        self.vertexGroupFiles = ["head", "rigify"]
        self.gizmos = (gizmos_panel.asString() + gizmos_rigify.asString())
        self.headName = 'head'
        self.preservevolume = True
        faceArmature = swapParentNames(rig_face_25.FaceArmature, 
                           {'Head' : 'head', 'MasterFloor' : None} )
            
        self.joints = (
            rig_joints_25.DeformJoints +
            rig_body_25.BodyJoints +
            rig_joints_25.FloorJoints +
            rigify_rig.RigifyJoints +
            rig_face_25.FaceJoints
        )
        
        self.headsTails = (
            rigify_rig.RigifyHeadsTails +
            rig_face_25.FaceHeadsTails
        )

        self.boneDefs = (
            rigify_rig.RigifyArmature +
            faceArmature
        )

        self.objectProps = rigify_rig.RigifyObjectProps + [("MhxRig", '"Rigify"')]
        self.armatureProps = rigify_rig.RigifyArmatureProps
Пример #3
0
 def setupCustomShapes(self, fp):
     ExportArmature.setupCustomShapes(self, fp)
     if self.config.facepanel:
         import gizmos_panel
         setupCube(fp, "MHCube025", 0.25, 0)
         setupCube(fp, "MHCube05", 0.5, 0)
         self.gizmos = gizmos_panel.asString()
         fp.write(self.gizmos)
Пример #4
0
 def setupCustomShapes(self, fp):
     ExportArmature.setupCustomShapes(self, fp)
     if self.config.facepanel:
         import gizmos_panel
         setupCube(fp, "MHCube025", 0.25, 0)
         setupCube(fp, "MHCube05", 0.5, 0)
         self.gizmos = gizmos_panel.asString()
         fp.write(self.gizmos)
Пример #5
0
    def __init__(self, name, human, config):
        import gizmos_mhx, gizmos_panel, gizmos_general

        ExportArmature.__init__(self, name, human, config)
        self.rigtype = 'mhx'
        self.boneLayers = "0068056b"

        self.boneGroups = [
            ('Master', 'THEME13'),
            ('Spine', 'THEME05'),
            ('FK_L', 'THEME09'),
            ('FK_R', 'THEME02'),
            ('IK_L', 'THEME03'),
            ('IK_R', 'THEME04'),
        ]
        self.recalcRoll = "['Foot_L','Toe_L','Foot_R','Toe_R','DfmFoot_L','DfmToe_L','DfmFoot_R','DfmToe_R']"
        self.gizmos = (gizmos_mhx.asString() + gizmos_panel.asString() +
                       gizmos_general.asString())

        self.objectProps = [("MhxRig", '"MHX"')]
        self.armatureProps = []
        self.headName = 'Head'
        self.preservevolume = False

        self.vertexGroupFiles = ["head", "bones", "palm", "tight"]
        if config.skirtRig == "own":
            self.vertexGroupFiles.append("skirt-rigged")
        elif config.skirtRig == "inh":
            self.vertexGroupFiles.append("skirt")

        if config.maleRig:
            self.vertexGroupFiles.append("male")

        self.joints = (
            rig_joints_25.DeformJoints + rig_body_25.BodyJoints +
            rig_joints_25.FloorJoints + rig_arm_25.ArmJoints +
            rig_shoulder_25.ShoulderJoints + rig_finger_25.FingerJoints +
            rig_leg_25.LegJoints +
            #rig_toe_25.ToeJoints +
            rig_face_25.FaceJoints)

        self.headsTails = (
            rig_body_25.BodyHeadsTails + rig_shoulder_25.ShoulderHeadsTails +
            rig_arm_25.ArmHeadsTails + rig_finger_25.FingerHeadsTails +
            rig_leg_25.LegHeadsTails +
            #rig_toe_25.ToeHeadsTails +
            rig_face_25.FaceHeadsTails)

        self.boneDefs = list(rig_body_25.BodyArmature1)
        if config.advancedSpine:
            self.boneDefs += rig_body_25.BodyArmature2Advanced
        else:
            self.boneDefs += rig_body_25.BodyArmature2Simple
        self.boneDefs += rig_body_25.BodyArmature3
        if config.advancedSpine:
            self.boneDefs += rig_body_25.BodyArmature4Advanced
        else:
            self.boneDefs += rig_body_25.BodyArmature4Simple
        self.boneDefs += rig_body_25.BodyArmature5

        self.boneDefs += (
            rig_shoulder_25.ShoulderArmature1 +
            rig_shoulder_25.ShoulderArmature2 + rig_arm_25.ArmArmature +
            rig_finger_25.FingerArmature + rig_leg_25.LegArmature +
            #rig_toe_25.ToeArmature +
            rig_face_25.FaceArmature)

        if config.skirtRig == "own":
            self.joints += rig_skirt_25.SkirtJoints
            self.headsTails += rig_skirt_25.SkirtHeadsTails
            self.boneDefs += rig_skirt_25.SkirtArmature

        if config.maleRig:
            self.boneDefs += rig_body_25.MaleArmature

        if self.config.facepanel:
            self.joints += rig_panel_25.PanelJoints
            self.headsTails += rig_panel_25.PanelHeadsTails
            self.boneDefs += rig_panel_25.PanelArmature

        if False and config.custom:
            (custJoints, custHeadsTails, custArmature,
             self.customProps) = exportutils.custom.setupCustomRig(config)
            self.joints += custJoints
            self.headsTails += custHeadsTails
            self.boneDefs += custArmature
Пример #6
0
    def __init__(self, name, human, config):    
        import gizmos_mhx, gizmos_panel, gizmos_general
    
        ExportArmature. __init__(self, name, human, config)
        self.rigtype = 'mhx'
        self.boneLayers = "0068056b"

        self.boneGroups = [
            ('Master', 'THEME13'),
            ('Spine', 'THEME05'),
            ('FK_L', 'THEME09'),
            ('FK_R', 'THEME02'),
            ('IK_L', 'THEME03'),
            ('IK_R', 'THEME04'),
        ]
        self.recalcRoll = "['Foot_L','Toe_L','Foot_R','Toe_R','DfmFoot_L','DfmToe_L','DfmFoot_R','DfmToe_R']"
        self.gizmos = (gizmos_mhx.asString() + gizmos_panel.asString() + gizmos_general.asString())

        self.objectProps = [("MhxRig", '"MHX"')]
        self.armatureProps = []
        self.headName = 'Head'
        self.preservevolume = False
        
        self.vertexGroupFiles = ["head", "bones", "palm", "tight"]
        if config.skirtRig == "own":
            self.vertexGroupFiles.append("skirt-rigged")    
        elif config.skirtRig == "inh":
            self.vertexGroupFiles.append("skirt")    

        if config.maleRig:
            self.vertexGroupFiles.append( "male" )
                                                        
        self.joints = (
            rig_joints_25.DeformJoints +
            rig_body_25.BodyJoints +
            rig_joints_25.FloorJoints +
            rig_arm_25.ArmJoints +
            rig_shoulder_25.ShoulderJoints +
            rig_finger_25.FingerJoints +
            rig_leg_25.LegJoints +
            #rig_toe_25.ToeJoints +
            rig_face_25.FaceJoints
        )            
        
        self.headsTails = (
            rig_body_25.BodyHeadsTails +
            rig_shoulder_25.ShoulderHeadsTails +
            rig_arm_25.ArmHeadsTails +
            rig_finger_25.FingerHeadsTails +
            rig_leg_25.LegHeadsTails +
            #rig_toe_25.ToeHeadsTails +
            rig_face_25.FaceHeadsTails
        )

        self.boneDefs = list(rig_body_25.BodyArmature1)
        if config.advancedSpine:
            self.boneDefs += rig_body_25.BodyArmature2Advanced
        else:
            self.boneDefs += rig_body_25.BodyArmature2Simple
        self.boneDefs += rig_body_25.BodyArmature3
        if config.advancedSpine:
            self.boneDefs += rig_body_25.BodyArmature4Advanced
        else:
            self.boneDefs += rig_body_25.BodyArmature4Simple
        self.boneDefs += rig_body_25.BodyArmature5

        self.boneDefs += (
            rig_shoulder_25.ShoulderArmature1 +
            rig_shoulder_25.ShoulderArmature2 +
            rig_arm_25.ArmArmature +            
            rig_finger_25.FingerArmature +
            rig_leg_25.LegArmature +
            #rig_toe_25.ToeArmature +
            rig_face_25.FaceArmature
        )
        
        if config.skirtRig == "own":
            self.joints += rig_skirt_25.SkirtJoints
            self.headsTails += rig_skirt_25.SkirtHeadsTails
            self.boneDefs += rig_skirt_25.SkirtArmature        

        if config.maleRig:
            self.boneDefs += rig_body_25.MaleArmature        

        if self.config.facepanel:            
            self.joints += rig_panel_25.PanelJoints
            self.headsTails += rig_panel_25.PanelHeadsTails
            self.boneDefs += rig_panel_25.PanelArmature

        if False and config.custom:
            (custJoints, custHeadsTails, custArmature, self.customProps) = exportutils.custom.setupCustomRig(config)
            self.joints += custJoints
            self.headsTails += custHeadsTails
            self.boneDefs += custArmature