Bug - Datasmith mesh export crash

Hi everyone,

I’m hitting an export crash (from 3dsMax 2024) when exporting two specific meshes from my 3dsMax scene:

  • Office task chair ( Editable Mesh - 91377 Faces)
  • Apple Mac Monitor. ( Editable Mesh - 20924 faces)

I have 1000’s of other meshes in the scene and they all export perfectly.

When I select either the chair or monitor and click Datasmith > File Export > Export selected

  • No .udatasmith asset or associated folder are created.

The failed export attempt is brief:

  • the export progress stays on 0%
  • the 3dsMax UI briefly refreshes and the export quickly cancels itself
  • there is no info printed in the listener about the export attempt
    Note: Datasmith_getExportOption_StatSync() –returns true
  • 3dsMax itself does not crash. Only the export fails.

If I select multiple objects at once, and the first object in the selection is not a problem object, then the Datasmith export does create the export folder and fills it with assets up to the point where the export hits a problem object. At this point the export operation quits and all remaining selected objects are skipped. The .udatasmith file creation is also skipped.

Two known workarounds:

  1. I simply add an editpoly modifier on top of these objects. Then they export fine!
  2. I save the scene back to 3dsMax2021 and Export from there. (I don’t have 2022/23 to test on)

I can’t share these meshes publicly as they are not my creations.

I’m hoping this Max2024 Datasmith export bug can be patched, but in the mean time is there any way to scan the scene for these problem objects?
I could Maxscript a function to add an Editpoly modifier to ALL edit mesh objects but this seems nuclear, and I have no way to know how full proof this solution is!

Many thanks for any help!
Graham