human.height

Class for changing height of human.

Attributes
centimetersintHeight of human in centimeters.
metersfloatHeight of human in meters.
Methods
set()Sets height of human.
randomize()Randomize human height.
as_dict() · set_from_dict()Save these settings to a dict and restore them from one.

Attributes

human.height.centimeters: intread-only

source

Height of human in centimeters.

human.height.meters: floatread-only

source

Height of human in meters.

Methods

human.height.set(value_cm: float, context: C = None, realtime: bool = False)

source

Sets height of human.

ParameterTypeDescription
value_cmfloatHeight of human in centimeters.
contextC
default None
Blender context. Defaults to None.
realtimebool
default False
Whether to update the human in realtime. Only needed for sliders in the UI. Defaults to False.

human.height.randomize(context: C = None)

source

Randomize human height.

ParameterTypeDescription
contextC
default None
Blender context. bpy.context if not provided.
Serialization: as_dict, set_from_dict

human.height.as_dict() → dict[str, float]

source

Returns height of human as dictionary.

Returns dict[str, float] — dict[str, float]: Height of human as dictionary.

human.height.set_from_dict(data: dict[str, float], context: C = None) → list[str]

source

Sets height of human from dictionary.

ParameterTypeDescription
datadict[str, float]Dictionary with height of human.
contextC
default None
Blender context. Defaults to None.

Returns list[str] — list[str]: List of occurred errors.