I’ve done a fair amount of searching and wasn’t able to come up with anything specific, though there are discussions and references to the topic.
What I’d like is a system to populate a master tools dialog based on scripts in a folder. The main tool would be run, and it would scan a specified folder such as \tools, and add each .ms file as a rollout in the main tool. It wouldn’t have to know about any predefined list of tools or .ms files.
The individual files would also be able to run independently of the main tool. If the tool was not run from the master tools dialog, it would create a local dialog and add the rollout to it. If the tool was called from the master tools dialog, it would skip dialog creation and only add the rollout to the existing master tools dialog. Perhaps using a global variable.
The end goal is to be able to develop, modify, and test complicated tools on their own, but also be able to quickly have them incorporated into a tools collection. Also, to keep the various tools to a manageable size, rather than incorporated into one humongous maxscript file.
Is this possible without becoming overly complex?

