Click or drag to resize
SoPreferencesGetColor Method

Returns the value of the specified environment variable in the Open Inventor environment, interpreted as an OIV.Inventor.SbColor.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public static SbColor GetColor(
	string name,
	SbColor defaultValue
)

Parameters

name
Type: SystemString
defaultValue
Type: OIV.InventorSbColor

Return Value

Type: SbColor
Remarks

The search process is the same as for OIV.Inventor.SoPreferences.GetValue(System.String). If the environment variable is not defined in the Open Inventor environment, or if its value cannot be interpreted as an OIV.Inventor.SbColor, the specified default value will be returned. To be correctly interpreted, the environment value must be a series of 3 floats between 0.0 and 1.0, separated by spaces.

See Also