# HeightSettings

> Human Generator for Blender documentation. Web version: https://humgen3d.com/docs/api/heightsettings

Reached as: `human.height`

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/height/height.py#L37

Class for changing height of human.

## Attributes

### centimeters

```python
human.height.centimeters: int
```

*read-only*

Height of human in centimeters.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/height/height.py#L44

### meters

```python
human.height.meters: float
```

*read-only*

Height of human in meters.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/height/height.py#L53

## Methods

### set()

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

Sets height of human.

Parameters:
- `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.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/height/height.py#L66

### as_dict()

```python
human.height.as_dict() -> dict[str, float]
```

Returns height of human as dictionary.

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

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/height/height.py#L110

### set_from_dict()

```python
human.height.set_from_dict(data: dict[str, float], context: C = None) -> list[str]
```

Sets height of human from dictionary.

Parameters:
- `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.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/height/height.py#L118

### randomize()

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

Randomize human height.

Parameters:
- `context` (C, default None): Blender context. bpy.context if not provided.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/height/height.py#L196
