A comprehensive MAXScript tool for batch importing, cleaning, and optimizing FBX files in 3ds Max.
- Batch FBX Import: Process entire folders of FBX files with a single operation
- Smart Sorting Options: Sort files alphabetically or by size (ascending/descending)
- Automatic Scene Cleaning: Removes unnecessary objects like lights, cameras, helpers, etc.
- Material-Based Merging: Intelligently combines objects with the same material
- Memory-Optimized Processing: Adaptive batch sizing based on scene complexity
- Progress Tracking: Real-time feedback on processing status
- Multi-Stage Pipeline: Import, clean, and merge in a seamless workflow
- Creates optimal scene structure for proxy creation
- Streamlines material application
- Reduces scene complexity while maintaining visual fidelity
- Prevents creation of countless duplicate materials during import
- Simplifies object positioning and manipulation
- Makes LOD implementation more straightforward
- Optimizes geometry for Nanite activation
-
Download all script files:
main.mscleaner.msmerge.msimporter.ms
-
Place all files in the same directory, preferably in your 3ds Max scripts folder.
-
Run the main script from 3ds Max by:
fileIn "path/to/main.ms"Or create a button on your toolbar by dragging the MAXScript icon to your toolbar and assigning the script to it.
The main interface provides access to all tool functions:
- Import FBX Files: Launch the FBX import settings dialog
- Clean Current Scene: Remove unnecessary objects from the current scene
- Merge By Material: Merge objects by material in the current scene
- Import, Clean & Merge: Run the complete workflow
When selecting the Import function, you can configure:
-
Import Mode:
- Directory (Batch Import)
- Single File
-
Sort Order:
- Alphabetical
- Size (Smallest First)
- Size (Largest First)
-
Processing Options:
- Clean scene after import
- Merge by material after cleaning
- Save processed files (.max)
- For very large datasets, sort by size (largest first) to process the most memory-intensive files when 3ds Max has the most available resources
- Enable "Save processed files" to create .max files automatically for future use
- Consider breaking extremely large imports into multiple folder batches
The tool consists of three main modules:
- Cleaner Module: Removes non-essential objects and returns geometry
- Merger Module: Combines objects with identical materials using optimized memory management
- Importer Module: Handles FBX file importing with progress tracking and batch processing
- 3ds Max 2018 or newer
- Sufficient RAM for handling your model complexity
Matheus de Oliveira Leite
If you find this tool useful, please consider starring the repository and sharing your experience!