This module contains some data/methods regarding units handling.
constant value bpy.utils.units.categories(NONE=’NONE’, LENGTH=’LENGTH’, AREA=’AREA’, VOLUME=’VOLUME’, MASS=’MASS’, ROTATION=’ROTATION’, TIME=’TIME’, VELOCITY=’VELOCITY’, ACCELERATION=’ACCELERATION’, CAMERA=’CAMERA’)
constant value bpy.utils.units.systems(NONE=’NONE’, METRIC=’METRIC’, IMPERIAL=’IMPERIAL’)
Convert a given input float value into a string with units.
Parameters: |
|
---|---|
Returns: | The converted string. |
Return type: | str |
Raises ValueError: | |
if conversion fails to generate a valid python string. |
Convert a given input string into a float value.
Parameters: |
|
---|---|
Returns: | The converted/interpreted value. |
Return type: | float |
Raises ValueError: | |
if conversion fails to generate a valid python float value. |