Interface: IDisplayGamma

Interfaces > Core Interfaces > IDisplayGamma

 

   

Viewport Shading - Quick Navigation

   

Core Interfaces - Quick Navigation

The IDisplayGamma Core Interface exposes some Display Gamma settings to MAXScript.

The interface was exposed without any properties in 3ds Max 8.

It was changed to actually expose Color Correction properties in 3ds Max 2008 and was extended in 3ds Max 2010 to affect more aspects of the UI including Material Editor and color pickers.

   

Interface: IDisplayGamma 

Properties:

IDisplayGamma.colorCorrectionMode : enum : Read|Write   

colorCorrectionMode enums: {#LUT|#gamma|#none} 

Get/Set the Display Color Correction mode to LUT, Gamma, or disables it.

Available in 3ds Max 2008 and higher.

   

IDisplayGamma.LUTFileName : filename : Read|Write 

Get/Set the LUT file name.

Available in 3ds Max 2008 and higher.

   

IDisplayGamma.gamma : float : Read|Write 

Get/Set the Gamma value.

Available in 3ds Max 2008 and higher.

Equivalent to the System Global Variable displayGamma available in previous releases.

EXAMPLE:

IDisplayGamma.colorCorrectionMode = #gamma --enable Gamma
IDisplayGamma.gamma = 1.8 --set the Gamma to 1.8

   

IDisplayGamma.colorCorrectionPrefMode : enum : Read|Write 

colorCorrectionPrefMode enums: {#LUT|#gamma|#none} 

Get/Set the Preferred Display Color Correction mode to LUT, Gamma, or disabled.

In versions prior to 3ds Max 2010, loading a file with Display Gamma/LUT Correction enabled turned the feature on and set it to the saved settings.

Since 3ds Max 2010, loading a file with Display Gamma/LUT Correction on will only turn the feature on, but use the Preferred settings which are saved locally in an INI file.

   

IDisplayGamma.affectColorPickers : boolean : Read|Write 

Get/Set whether the Gamma/LUT Correction will affect the Color Picker colors.

Defaults to false.

Available in 3ds Max 2010 and higher.

   

IDisplayGamma.affectMEdit : boolean : Read|Write 

Get/Set whether the Gamma/LUT Correction will affect the colors in the Material Editor.

Defaults to false.

Available in 3ds Max 2010 and higher.

See Also