ObjectPreferences Class — NXOpen Python API Reference 12.0.0 documentation

# ObjectPreferences Class

class `NXOpen.Preferences.``ObjectPreferences`

  Bases: `object`

  Captures the UI based calls required for Object Preferences

  To obtain an instance of this class, refer to `NXOpen.UI`

  New in version NX3.0.0.

# Methods

Method | Description
--- | ---
ResetSessionTranslucency | Resets the session translucency
SetSessionTranslucency | Sets the session translucency

# Enumerations

ObjectPreferencesTranslucency Enumeration | Describes whether the translucency is enabled or disabled

# Method Detail

## ResetSessionTranslucency

`ObjectPreferences.``ResetSessionTranslucency`

  Resets the session translucency

  Signature `ResetSessionTranslucency(option)`

  Parameters: | option (bool) – User can set TRUE or FALSE
  Returns: | Return Value
  Return type: | `NXOpen.Preferences.ObjectPreferencesTranslucency`

  New in version NX3.0.0.

  License requirements: None.

## SetSessionTranslucency

`ObjectPreferences.``SetSessionTranslucency`

  Sets the session translucency

  Signature `SetSessionTranslucency(option)`

  Parameters: | option (`NXOpen.Preferences.ObjectPreferencesTranslucency`) –
  Returns: | Return Value
  Return type: | `NXOpen.Preferences.ObjectPreferencesTranslucency`

  New in version NX3.0.0.

  License requirements: None.