Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";
/** This module contains some data/methods regarding units handling. */
export interface Api {
/** = bpy.utils.units.categories(NONE='NONE', LENGTH='LENGTH', AREA='AREA', VOLUME='VOLUME', MASS='MASS', ROTATION='ROTATION', TIME='TIME', TIME_ABSOLUTE='TIME_ABSOLUTE', VELOCITY='VELOCITY', ACCELERATION=' */
readonly categories: H.Ref<any>;
/** = bpy.utils.units.systems(NONE='NONE', METRIC='METRIC', IMPERIAL='IMPERIAL') */
readonly systems: H.Ref<any>;
/**
* Convert a given input float value into a string with units.
*
* :raises ValueError: if conversion fails to generate a valid Python string.
* @returns The converted string.
* @param unit_system The unit system, from :attr:`bpy.utils.units.systems`.
* @param unit_category The category of data we are converting (length, area, rotation, etc.), from :attr:`bpy.utils.units.categories`.
* @param value The value to convert to a string.
*/
to_string(unit_system: H.In<string>, unit_category: H.In<string>, value: H.In<number>, kw?: {
/** Number of digits after the decimal point. */
precision?: H.In<number>;
/** Whether to use several units if needed (1m1cm), or always only one (1.01m). */
split_unit?: H.In<boolean>;
/** Whether to use keyboard-friendly units (1m2) or nicer UTF8 ones (1m²). */
compatible_unit?: H.In<boolean>;
}): H.Ref<string>;
/**
* Convert a given input float value into a string with units.
*
* :raises ValueError: if conversion fails to generate a valid Python string.
* @returns The converted string.
* @param unit_system The unit system, from :attr:`bpy.utils.units.systems`.
* @param unit_category The category of data we are converting (length, area, rotation, etc.), from :attr:`bpy.utils.units.categories`.
* @param value The value to convert to a string.
*/
to_string(kw: {
/** The unit system, from :attr:`bpy.utils.units.systems`. */
unit_system: H.In<string>;
/**
* The category of data we are converting (length, area, rotation, etc.),
* from :attr:`bpy.utils.units.categories`.
*/
unit_category: H.In<string>;
/** The value to convert to a string. */
value: H.In<number>;
/** Number of digits after the decimal point. */
precision?: H.In<number>;
/** Whether to use several units if needed (1m1cm), or always only one (1.01m). */
split_unit?: H.In<boolean>;
/** Whether to use keyboard-friendly units (1m2) or nicer UTF8 ones (1m²). */
compatible_unit?: H.In<boolean>;
}): H.Ref<string>;
/**
* Convert a given input string into a float value.
*
* :raises ValueError: if conversion fails to generate a valid Python float value.
* @returns The converted/interpreted value.
* @param unit_system The unit system, from :attr:`bpy.utils.units.systems`.
* @param unit_category The category of data we are converting (length, area, rotation, etc.), from :attr:`bpy.utils.units.categories`.
* @param str_input The string to convert to a float value.
*/
to_value(unit_system: H.In<string>, unit_category: H.In<string>, str_input: H.In<string>, kw?: {
/** A reference string from which to extract a default unit, if none is found in ``str_input``. */
str_ref_unit?: H.In<string | null>;
}): H.Ref<number>;
/**
* Convert a given input string into a float value.
*
* :raises ValueError: if conversion fails to generate a valid Python float value.
* @returns The converted/interpreted value.
* @param unit_system The unit system, from :attr:`bpy.utils.units.systems`.
* @param unit_category The category of data we are converting (length, area, rotation, etc.), from :attr:`bpy.utils.units.categories`.
* @param str_input The string to convert to a float value.
*/
to_value(kw: {
/** The unit system, from :attr:`bpy.utils.units.systems`. */
unit_system: H.In<string>;
/**
* The category of data we are converting (length, area, rotation, etc.),
* from :attr:`bpy.utils.units.categories`.
*/
unit_category: H.In<string>;
/** The string to convert to a float value. */
str_input: H.In<string>;
/** A reference string from which to extract a default unit, if none is found in ``str_input``. */
str_ref_unit?: H.In<string | null>;
}): H.Ref<number>;
}