# BatchHumanGenerator

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

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L16

Generator/factory (?) for making completed HG_Humans in the background.

Also used by the batch panel in the Human Generator GUI

## Attributes

### female_chance

```python
BatchHumanGenerator.female_chance: float
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L22

### male_chance

```python
BatchHumanGenerator.male_chance: float
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L23

### human_preset_category_chances

```python
BatchHumanGenerator.human_preset_category_chances: Optional[dict[str, float]]
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L24

### clothing_categories

```python
BatchHumanGenerator.clothing_categories: Optional[list[str]]
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L26

### expression_type

```python
BatchHumanGenerator.expression_type: Literal['natural', 'most_varied']
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L28

### hair_type

```python
BatchHumanGenerator.hair_type: Literal['particle', 'haircards']
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L30

### hair_quality

```python
BatchHumanGenerator.hair_quality: Literal['high', 'medium', 'low', 'ultralow', 'haircap_only']
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L31

### average_height_male

```python
BatchHumanGenerator.average_height_male: int
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L34

### average_height_female

```python
BatchHumanGenerator.average_height_female: int
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L35

### height_one_standard_deviation

```python
BatchHumanGenerator.height_one_standard_deviation: float
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L36

### texture_resolution

```python
BatchHumanGenerator.texture_resolution: Literal['high', 'medium', 'low']
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L37

### add_clothing

```python
BatchHumanGenerator.add_clothing: bool
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L45

### add_hair

```python
BatchHumanGenerator.add_hair: bool
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L46

### add_expression

```python
BatchHumanGenerator.add_expression: bool
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L47

## Methods

### generate_human()

```python
BatchHumanGenerator.generate_human(context: C = None, pose_type: str = 'a_pose') -> Human
```

Parameters:
- `context` (C, default None)
- `pose_type` (str, default 'a_pose')

Returns: [Human](https://humgen3d.com/docs/api/human)

Source: https://github.com/OliverJPost/HumGen3D/blob/main/batch_generator/generator.py#L49
