Rather than executing multiple operations from one script, you can save individual automated tasks in individual MaxL scripts. Then, to perform a comprehensive set of tasks from the current script, you reference individual scripts as needed.
You can reference files that have any extension, for example, .mxl or .msh.
To place a reference to an external file in a MaxL script:
Place the cursor where you want to insert the reference to the file.
Right-click and select Reference script file.
In Open, navigate to the drive and folder that contain the file.
Select the file and click OK.
A reference to the file is inserted in the current script, for example:
msh D:\MaxL\scripts\creatusr.mxl;
When you execute the script, the contents of the referenced file are processed.
Note: | If you type a reference to a file manually instead of selecting it from the Open dialog box, enclose in double quotes any reference that includes spaces in directory or file names, for example: msh "c:\my documents\this file.mxl" |
If, while in the current script, you want to view the contents of the referenced file, expand the script.