The sysinfo struct provides several variables and methods related to accessing system information like system directories, system name, user, desktop size, and color depth as well as hardware-related data like CPU count and memory usage.
Topic Navigation: | |
---|---|
3dsMax Process Priority And Affinity |
|
A read only variable containing the Windows directory as a <string> value.
A read only variable containing the Windows System directory as a <string> value.
A read only variable containing the Temp directory as a <string> value.
A variable to get/set the current directory as a <string> value.
The current directory is the directory MAXScript will look for files if no explicit path is specified, for example, in fileIn() calls. If a relative path is specified in such a call, it will be resolved relatively to the directory in sysInfo.currentdir .
As this variable can be read and written to, it effectively allows you to specify the current directory at any time before using relative paths or no explicit paths at all.
A read only variable containing the user name as a <string> value.
A read only variable containing the computer name as a <string> value.
A read only variable containing the number of CPUs as an <integer> value.
A read only system global variable that returns the Windows Desktop size in pixels as a Point2 value. Note that on dual monitor systems with the desktop set to stretch on both monitors, the desktop size returned will include the second monitor.
sysInfo.DesktopSizeUnscaled
NEW in 3ds Max 2017: A read only system global variable that contains the unscaled Windows Desktop size in pixels as a Point2 value. Note that on dual monitor systems with the desktop set to stretch on both monitors, the desktop size returned will include the second monitor.
A read only system global variable. Returns the Windows Desktop color depth as an integer value in Bits Per Pixel. For example, if the graphics driver is set to 32 bit True Color, the value returned will be 32.
Gets/sets the 3ds Max process priority as a <name> value. Valid priority name values are #high, #normal, and #low.
Gets/sets the process affinity (the processors the process can use) as a pointer value. Each bit in the pointer value corresponds to a processor. If the bit is set, the process can use that processor.
Available in 3ds Max 2008 and higher. Previously, available in the Avguard Extensions.
A read-only property containing the system affinity (the processors present in the system) as a pointer. Each bit in the pointer corresponds to a processor. If the bit is set, the processor exists.
Available in 3ds Max 2008 and higher. Previously, available in the Avguard Extensions.
This method returns the Windows OS Language as an array with three elements:
The first two elements are integer values that correspond to the Primary Language and SubLanguage IDs. See the Windows SDK Help file for documentation of these IDs.
The third element is a description script for the current language. Starting with 3ds Max 2010, if the language cannot be retrieved, the third element will contain an error string.
If the optional keyword user : is true (the default), the current user's language is returned. If false , the system's language is returned.
Available in 3ds Max 6 and higher.
This method available in 3ds Max 2010 and higher returns the 3ds Max Language as an array with three elements:
The first two elements are integer values that correspond to the Primary Language and SubLanguage IDs. See the Windows SDK Help file for documentation of these IDs.
The third element is a description script for the current 3ds Max language. If the language cannot be retrieved, the third element will contain an error string.
A method which returns a seven element array containing the system memory status data. The array elements contain the following respectively:
Returns a nine element array containing the 3ds Max memory status data. The array elements contain the following respectively: