io_export_unreal_psk_psa.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:bpy_lambda 作者: bcongdon 项目源码 文件源码
def __init__(self):
        self.GeneralHeader = VChunkHeader("ACTRHEAD", 0)
        self.Points = FileSection("PNTS0000", SIZE_VPOINT)              # VPoint
        self.Wedges = FileSection("VTXW0000", SIZE_VVERTEX)             # VVertex
        self.Faces = FileSection("FACE0000", SIZE_VTRIANGLE)            # VTriangle
        self.Materials = FileSection("MATT0000", SIZE_VMATERIAL)        # VMaterial
        self.Bones = FileSection("REFSKELT", SIZE_VBONE)                # VBone
        self.Influences = FileSection("RAWWEIGHTS", SIZE_VRAWBONEINFLUENCE)  # VRawBoneInfluence

        # RG - this mapping is not dumped, but is used internally to store the new point indices
        # for vertex groups calculated during the mesh dump, so they can be used again
        # to dump bone influences during the armature dump
        #
        # the key in this dictionary is the VertexGroup/Bone Name, and the value
        # is a list of tuples containing the new point index and the weight, in that order
        #
        # Layout:
        # { groupname : [ (index, weight), ... ], ... }
        #
        # example:
        # {'MyVertexGroup' : [ (0, 1.0), (5, 1.0), (3, 0.5) ] , 'OtherGroup' : [(2, 1.0)]}

        self.VertexGroups = {}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号