Gildor's Forums

English Forum => ActorX Importer => Topic started by: SchoolHomeVR on February 12, 2019, 01:57



Title: I updated the Actor X Batch fbx/max export script to also WELD VERTICES!
Post by: SchoolHomeVR on February 12, 2019, 01:57
In the 'export_fbx.ms' file, I inserted Maxscript to add a Vertex Weld Modifier and weld all (nearly incidental) vertices at a distance of 0.1mm then collapse and save as normal.
I also changed it so it puts the FBX file, in the same folder as the originating .pskx file.  (that was killing me!)
Below is my code addition and a link to the new .cs file.

My small addition looks like this:

         -- WELD VERTICES SECTION BELOW, INCREASE THRESHOLD TO MAKE LIGHTER MESH OR LOD's!

   max modify mode
   modPanel.addModToSelection (Vertex_Weld ()) ui:on
   $.modifiers[#Vertex_Weld].threshold = 0.1
   maxOps.CollapseNode $ off

   --END OF WELD VERTICES SECTION

-------------------------------------------------------------------------------------------------------------------------------

DOWNLOAD LINK  'export_fbx.ms':  https://www.sendspace.com/file/2d3wyz