MAXScript Language Reference > 3ds Max Objects > Interfaces > Core Interfaces > Core Interfaces Documentation > L >

# Interface: LightingUnits

Interfaces > Core Interfaces > LightingUnits

| Core Interfaces - Quick Navigation

The LightingUnits Core Interface exposes the Lighting Units settings to MAXScript.

    Interface: LightingUnits

Methods:

    <bool>LightingUnits.IsLightingSystemSI()

Returns true if the Lighting Units are set to International (SI) system, false if set to American (AS) sytem.

    <bool>LightingUnits.IsLightingSystemAS()

Returns true if the Lighting Units are set to American (AS) system, false if set to International (SI) system.

    <void>LightingUnits.SetLightingSystemToSI()

Sets the Lighting Units to International (SI) system.

    <void>LightingUnits.SetLightingSystemToAS()

Sets the Lighting Units to American (AS) system.

    <string>LightingUnits.GetLuminanceUnits()

Returns a string containing the Luminance Units, for example "cd/m^2" for SI and "cd/ft^2" for AS.

    <string>LightingUnits.GetIlluminanceUnits()

Returns a string containing the Illuminance Units, for example "lx" for SI and "fc" for AS.

    <float>LightingUnits.ConvertASToSI <float>as_value

Returns the SI value corresponding to the supplied AS value.

    <float>LightingUnits.ConvertSIToAS <float>si_value

Returns the AS value corresponding to the supplied SI value.

    <float>LightingUnits.ConvertToCurrentSystem <float>value <bool>is_SI_value

Returns the value in the current system corresponding to the supplied value. When is_SI_value is true , the input value is taken as SI, when false , it is taken as AS value.