create a MAXScript code for autodesk 3ds max about can save as .3ds, .max, .ABC, .STL, .DWG
Here is a MAXScript code that allows you to save your 3D models in various file formats including .3ds, .max, .ABC, .STL, .DWG:
-- Save as .3ds
saveMaxFile "filename.3ds" quiet:true
-- Save as .max
saveMaxFile "filename.max" quiet:true
-- Save as .ABC
ExportFile "filename.abc" #noPrompt using:"Alembic Exporter"
-- Save as .STL
ExportFile "filename.stl" #noPrompt using:"STL Exporter"
-- Save as .DWG
ExportFile "filename.dwg" #noPrompt using:"DWG Exporter"
You can replace "filename" with any name you want to give to your file. The "quiet:true" parameter makes sure that the save operation is performed silently without any pop-up windows.
The "ExportFile" function is used to export the 3D model in different file formats. The first parameter is the name of the file you want to export, the second parameter "#noPrompt" tells 3ds Max not to show any export dialog boxes, and the third parameter specifies the exporter to use (e.g. "Alembic Exporter" for .ABC, "STL Exporter" for .STL and "DWG Exporter" for .DWG).
原文地址: http://www.cveoy.top/t/topic/BXG 著作权归作者所有。请勿转载和采集!