Hello,
I’m working to maintain an import/export add-on package for Blender. There is an issue I’m experiencing with a transform operation and I’m hoping that you could explain how to fix it.
Prior to reading the mesh data for export, this python script is applying a transform to obj.matrix_world, thus:
self.meshData = obj.data
self.meshData.transform(obj.matrix_world)
This works well, giving me the data in a common reference frame with all transforms applied. However, following the export, all of the objects have undergone an additional transform. That is, if I previously rotated an object by some angle around a point, it undergoes an additional, matching rotation during the export.
Please could you tell me how I can avoid this issue while still generating correct export data?
Note that I already attempted to use a mesh copy prior to the transform as a work-around, but I had to abandon that approach since Blender kept randomly corrupting the mesh data.
Thank you.