HOME | DD

lefty-2000 — Script Development Regression Testing #2

#blender #scripting #software #testing #themovies
Published: 2021-12-18 20:55:38 +0000 UTC; Views: 535; Favourites: 0; Downloads: 0
Redirect to original
Description

This is an update to Script Development Regression Test Plan .  The closure test for TM_export_msh and TM_import_msh now succeeds for the mesh file being tested.  The problem was that the bone orientation and location data was being written out in the wrong order.  The mesh file format requires a fixed order, but the blender API lists the armature bones in a different order, so the code must write out the data in the order required by the game instead of the order returned by the API.  The reason that the mesh worked in the game, even though the bone data was scrambled was that the game does not actually use the bone data from the mesh, unless the armature is one not recognized by the game.


The armature is identified by a field in the mesh file called SkeletonID, and since the mesh file uses the standard SkeletonID, the game apparently ignores the bone data for the skeleton.  So, although the game ignores the bone data, the import script does not.  That is why the re-import failed.


Now that the export script is in good shape, I can move on to the most important phase of all, which is getting the import and export scripts to work together.


Related content
Comments: 0