get_setting#

omni.kit.test.get_setting(path, default=None)#

Retrieve a setting from the settings interface using the specified path and return its value. If the setting does not exist, the provided default is returned.

Parameters:
  • path (str) – The setting path used to retrieve the specific value.

  • default (any) – The default value to return if the setting is not found.

Returns:

The retrieved setting value or the default if the setting is absent.

Return type:

any