set_units
Configure a Blender scene's unit system for real-world sizing, such as millimetres for 3D prints, by setting unit system, scale, and display units.
Instructions
Set the scene's units, for real-world sizes (e.g. a 3D print in millimetres).
Only the settings given are changed. Unit names depend on the system: METRIC lengths are KILOMETERS, METERS, CENTIMETERS, MILLIMETERS, MICROMETERS; IMPERIAL lengths are MILES, FEET, INCHES, THOU. ADAPTIVE picks per value.
Args: system: NONE, METRIC or IMPERIAL. NONE takes no units. scale_length: Blender units to scene units, e.g. 0.001 so 1 unit reads 1 mm. length_unit: Display unit for lengths. mass_unit: METRIC: TONNES, KILOGRAMS, GRAMS, MILLIGRAMS; IMPERIAL: TONNES, CENTUM_WEIGHTS, STONES, POUNDS, OUNCES. time_unit: DAYS, HOURS, MINUTES, SECONDS, MILLISECONDS, MICROSECONDS. temperature_unit: KELVIN plus CELSIUS (METRIC) or FAHRENHEIT (IMPERIAL). rotation: DEGREES or RADIANS. use_separate: Show compound values like 1 m 20 cm.
Returns: Every unit setting after the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system | No | ||
| rotation | No | ||
| mass_unit | No | ||
| time_unit | No | ||
| length_unit | No | ||
| scale_length | No | ||
| use_separate | No | ||
| temperature_unit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||