Autodesk 12812-051462-9011 User Guide 3 - Page 2881
Startup Script
UPC - 606121832362
View all Autodesk 12812-051462-9011 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 2881 highlights
Startup Script When 3ds Max first starts, MAXScript searches for any startup script files, which it then automatically loads and runs. This feature is useful if you have function libraries you always use and want preloaded, or if you want to establish custom UI settings, define scripted plug-ins, or load scripted utility rollouts. MAXScript first searches for .mcr (macroScript definition files) in the ui\macroscripts directory. These macroScript definitions are not compiled at this time; rather they are just scanned to identify the macroScripts that have been defined. MAXScript next searches for .ms, .mse, and .mzp files in the plug-in path directories (defined on the Configure System Paths dialog on page 7732 and Configure User Paths dialog on page 7729) and their subdirectories, and compiles these files. The base scene and user interface have not been created at this point, so no viewport or scene commands should be executed in these files. These files should primarily define scripted plug-ins and utility functions. Any utility functions used by the macroScripts defined when reading the ui\macroscripts directory should be defined in a .ms or .mse file in one of these directories. You can prevent a nested directory from being scanned by placing its name in parentheses, for example "(old-versions)", allowing you to enable and disable scripts in handy directory-based groupings. At this point, 3ds Max creates the base scene and user interface. Any macro scripts used by buttons in the user interface are compiled at this time. The automatic loading of the following startup script files can be deactivated by turning off the Auto Start MAXScript option in the MAXScript page of the Preferences dialog, as described in MAXScript Preferences on page 7782. MAXScript first searches for a file named startup.ms in the following directories, in this order: 1 The Scripts directory (defined on the Configure User Paths dialog > File I/O panel) 2 The Startup Scripts directory (defined on the Configure System Paths dialog) 3 The 3ds Max executable main directory 4 The Windows NT 32-bit system directory (system32) 5 The Windows 16-bit system directory (system) 8136 | Glossary