Getting and Setting User Preferences
 
 
 

This section provides an overview of the global functions, classes and methods used to retrieve and set the user preferences of 3ds Max. Many of these are from the various pages of the Customize / Preferences... dialog.

User Interface Colors

A 3ds Max user may set various colors in the user interface via the settings in the Customize... ¦ Preferences... ¦ Color tab dialog. A developer may access and set these settings using the following global functions:

Access to the 3ds Max Viewport settings:

Access to the user settings includes the 3ds Max toolbars, snap settings, crossing setting, animate button, 3ds Max window handle, sub-object selection color, axis constraints, coordinate centers, and reference coordinate system setting. Some of the viewport settings are global in nature -- that is they affect all the viewports. These methods are in class Interface. Examples are Interface::getBkgImageName(), Interface::GetGridSpacing(), etc.

Other viewport settings are specific to a viewport. These are available in class ViewExp. Examples are getBkgImageDsp(), getSFDisplay(), etc.

Access to the 3ds Max gamma settings:

The GammaMgr class allows access to the user specified gamma settings for display gamma, file input and output gamma.

System Settings

There is also another API that allows a plug-in to query various system settings.

GetSystemSetting() - This method will return nonzero if the setting whose id is passed is on; otherwise zero. You may pass the following values: