UnitSettings(bpy_struct)

base class — bpy_struct

class bpy.types.UnitSettings(bpy_struct)
length_unit

Unit that will be used to display length values (default 'DEFAULT')

Type:

Literal[‘DEFAULT’]

mass_unit

Unit that will be used to display mass values (default 'DEFAULT')

Type:

Literal[‘DEFAULT’]

scale_length

Scale to use when converting between Blender units and dimensions. When working at microscopic or astronomical scale, a small or large unit scale respectively can be used to avoid numerical precision problems (in [1e-09, inf], default 0.0)

Type:

float

system

The unit system to use for user interface controls (default 'NONE')

Type:

Literal[‘NONE’, ‘METRIC’, ‘IMPERIAL’]

system_rotation

Unit to use for displaying/editing rotation values (default 'DEGREES')

  • DEGREES Degrees – Use degrees for measuring angles and rotations.

  • RADIANS Radians.

Type:

Literal[‘DEGREES’, ‘RADIANS’]

temperature_unit

Unit that will be used to display temperature values (default 'DEFAULT')

Type:

Literal[‘DEFAULT’]

time_unit

Unit that will be used to display time values (default 'DEFAULT')

Type:

Literal[‘DEFAULT’]

use_separate

Display units in pairs (e.g. 1m 0cm) (default False)

Type:

bool

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References