Gildor's Forums

Author Topic: I updated the Actor X Batch fbx/max export script to also WELD VERTICES!  (Read 435 times)
SchoolHomeVR
Newbie
*
Posts: 22


View Profile
I updated the Actor X Batch fbx/max export script to also WELD VERTICES!
« 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
« Last Edit: February 12, 2019, 02:28 by SchoolHomeVR » Logged
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS