System Tools
 
 
 

The global struct called systemTools was added to MAXScript in 3ds Max 4 and was extended in 3ds Max 2008.

This group of functions lets you gather various pieces of information about the system 3ds Max is running on.

   

systemTools.NumberOfProcessors()   

Returns the number of processors (cores) available according to the operating system.

   

systemTools.GetScreenWidth() 

Returns the screen width including multiple monitors the desktop might be extended to.

   

systemTools.GetScreenHeight() 

Returns the screen height including multiple monitors the desktop might be extended to.

   

systemTools.IsWindows98or2000() 

Returns true if the Operating System is Windows98, Windows2000, Windows XP, Windows Vista or Windows 7.

   

systemTools.IsWindows9x() 

Returns true if the OS is a Win9x flavor.

   

systemTools.IsDebugging() 

Returns true if running in a Debugger.

   

systemTools.getEnvVariable <string> 

Returns the contents of specified environment variable. If the specified environment variable does not exist, returns a value of undefined.

Available in 3ds Max 2008 and higher. Previously available in the Avguard Extensions.

EXAMPLE

systemTools.getEnvVariable "PATH"
"C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\backburner 2\;"

   

systemTools.setEnvVariable <string> { <string> | undefined } 

Sets the contents of specified environment variable. Returns true if the set occurred, false if not. If second arg is the value undefined, the environment variable is deleted.

Available in 3ds Max 2008 and higher. Previously available in the Avguard Extensions.

   

See Also