human.height
HeightSettings
human/height/height.pyClass for changing height of human.
| Attributes | ||
|---|---|---|
| centimeters | int | Height of human in centimeters. |
| meters | float | Height 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
sourceHeight of human in centimeters.
Height of human in meters.
Methods
Sets height of human.
| Parameter | Type | Description |
|---|---|---|
| value_cm | float | Height of human in centimeters. |
| context | C default None | Blender context. Defaults to None. |
| realtime | bool default False | Whether to update the human in realtime. Only needed for sliders in the UI. Defaults to False. |
Randomize human height.
| Parameter | Type | Description |
|---|---|---|
| context | C default None | Blender context. bpy.context if not provided. |
Serialization: as_dict, set_from_dict
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]
sourceSets height of human from dictionary.
| Parameter | Type | Description |
|---|---|---|
| data | dict[str, float] | Dictionary with height of human. |
| context | C default None | Blender context. Defaults to None. |
Returns list[str] — list[str]: List of occurred errors.