メッシュの取替え
2010/7/19
Blender2.49
CubeとCube.001とメッシュを入れ替える
scene = GameLogic.getCurrentScene()
ob1 = scene.objects["OBCube"]
ob2 = scene.objects["OBCube.001"]
mesh1 = ob1.meshes[0]
mesh2 = ob2.meshes[0]
ob1.replaceMesh(mesh2)
ob2.replaceMesh(mesh1)
Class KX_GameObject replaceMesh()
http://www.blender.org/documentation/249PythonDoc/GE/GameTypes.KX_GameObject-class.html#replaceMesh