Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/l/blender_nif_plugin-HEAD/todo/old_tests/runtest_fo3_bodypart.py   blender_nif_plugin(Download)
        # skin the mesh
        self.info("attaching mesh to armature")
        mesh_data.addVertGroup("Bone")
        mesh_data.assignVertsToGroup("Bone", list(range(mesh_numverts)), 1,
                                     Blender.Mesh.AssignModes.REPLACE)
        arm_obj.makeParentDeform([mesh_obj])
        # set body part
        self.info("creating body part vertex group")
        mesh_data.addVertGroup("BP_HEAD")
        # add selected vertices from mesh to another group
        self.info("export failed: adding selected vertices to new group")
        mesh_data.addVertGroup("BP_HEAD2")
        mesh_data.assignVertsToGroup("BP_HEAD2",
                                     [vert.index for vert in mesh_data.vertices