Unity fbx exporter script support

broken image
broken image

get all Max files in this location and recursive fbx file name to export, test export, read for Up Axis and report if not Y up SaveMaxFile (scenefilepath + i as string + '.max') Scenefilepath = root_dir + '\scenefiles\file_' If files already exists, no need to create these Using this to create max files for export test Root_dir = (getFilenamePath (getSourceFileName()))Ĭreate a bunch of max files inside a folder name scenefiles execute script using: filein path\scriptname.ms' Regards - working folder: set Root folder for script execution You may try to add the read fbx file test with your exporting tool to see if it is possible to isolate the issue.

broken image

If you are open to the idea, if you could try to batch test your production files and see if you find if there are specific files that generate the problem. Of course, this test is limited compared to using production files. I've tried to batch export up to 2500 files with no variations on up-axis export, always the expected up axis. If the up axis is not as expected, the script prints out an error. Fbx is exported Y up and as ascii to validate the up axis. Then the script loads and export as fbx all the max files. Of course, these are not production files, so it does not reflect exactly your environment. I've created a little script to create a bunch of Max files. Here is what I tried on my side, using Max 2020 update 1.

broken image