How akshayalix/collect-assets works
Main Components
• 3ds Max Integration:
• The plugin is executed from within the 3ds Max environment.
• It appears in the Customize interface under the “ModX” category.
• Asset Collection Module:
• The core functionality that scans the scene and collects textures, materials, and other files.
• Handles various “standart” materials and integrations with multiple renderers.
• Resource/Assets Management:
• External script files (e.g., collect_asset_2.099.ms, installCA.ms) containing the core plugin logic.
• Build and Packaging System:
• build.bat and related files (module.prop, mzp.run) indicate an automated build process.
• Integration with 7-Zip (directory “7z” with the executable) to assist with packaging the plugin.
• External Dependencies:
• Requirement for 7-Zip and Git for building from source.
• Instructions in the README explain the integration with the build process.
Relationships and Interactions
• The 3ds Max User Interface triggers the plugin using a script (via “Scripting -> Run script”) which loads the asset collection functionality.
• Once executed, the plugin scans the scene, gathers references to textures and materials, and copies the appropriate files from the project’s asset directories.
• The process interacts with configuration files (collect_asset.ini) for customizable options.
• During the build process, the build.bat script orchestrates compilation/packaging by invoking external tools (7-Zip) and using files such as module.prop to prepare the final plugin (.mzp file).
Architectural Patterns and Important Details
• External dependency management (7-Zip, Git) is encapsulated within the build process.
• The plugin acts as an adapter between the 3ds Max environment and external asset files.
• 3ds Max Environment / UI Integration (noting “Customize -> Toolbars, ModX category”).
• Collect Assets Core Module (script files: collect_asset_2.099.ms, installCA.ms, collect_asset.ini).
• Build System (build.bat, module.prop, 7z directory, and references to 7-Zip).
• How a user action in 3ds Max triggers the plugin.
• Data flow from scanning the scene to copying assets and using configuration files.
• Build pipeline flow from source code to final packaged .mzp output.