From: Yacine K. <yk...@lu...> - 2018-03-07 11:25:53
|
Hi I loaded a 3d File with PyAssimp then I changed some vertices position and when I exported it all modification were ignored This is an example of what I wrote: >>> pyassimp.export(scene,'D:/ExportedFile.gltf','gltf2') >>> import pyassimp >>> scene = pyassimp.load('D:/test.3ds') >>> v = scene.meshes[2].vertices >>> v = [ [p[0], p[1], p[2]+200] for p in v ] >>> scene.meshes[2].vertices = v >>> print scene.meshes[2].vertices [[-13.360946655273438, -19.980607986450195, 200.0], [-13.360946655273438, 19.980606079101562, 200.0], ……… >>> pyassimp.export(scene,'D:/ExportedFile.gltf','gltf2') but when I load the file there are no changes! Thanks. Sent from Mail for Windows 10 |