Share

Interface: IDisplayGamma

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

Note:

As of 3ds Max 2024 the ColorPipelineMgr interface exposes functionality for both legacy gamma and OCIO-based color management.

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.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: {#gamma|#none} 

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

Note:

the #LUT mode enum is removed as of 3ds Max 2024.


Note: In 3ds Max 2024 these properties are removed:
IDisplayGamma.LUTFileName : filename : Read|Write 

Get/Set the LUT file name.

IDisplayGamma.affectMEdit : boolean : Read|Write 

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

Defaults to false.

IDisplayGamma.affectColorPickers : boolean : Read|Write 

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

Defaults to false.

Was this information helpful?