# SkinSettings

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

Reached as: `human.skin`

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L59

Class for manipulating skin material of human.

## Attributes

### cavity_strength

```python
human.skin.cavity_strength: NodeInput
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L65

### tone

```python
human.skin.tone: NodeInput
```

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

### redness

```python
human.skin.redness: NodeInput
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L67

### saturation

```python
human.skin.saturation: NodeInput
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L68

### normal_strength

```python
human.skin.normal_strength: NodeInput
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L69

### roughness_multiplier

```python
human.skin.roughness_multiplier: NodeInput
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L70

### freckles

```python
human.skin.freckles: NodeInput
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L71

### splotches

```python
human.skin.splotches: NodeInput
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L72

### texture

```python
human.skin.texture: TextureSettings
```

*read-only*

Gives acces to texture settings, for setting and changing textures.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L75

### nodes

```python
human.skin.nodes: SkinNodes
```

*read-only*

All nodes of the human skin material.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L84

### links

```python
human.skin.links: SkinLinks
```

*read-only*

All links on the human skin material.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L94

### material

```python
human.skin.material: Material
```

*read-only*

Human skin material.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L104

### gender_specific

```python
human.skin.gender_specific: Union[MaleSkin, FemaleSkin]
```

*read-only*

Returns an instance to change node settings specifically related to gender.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L113

## Methods

### randomize()

```python
human.skin.randomize()
```

Randomize the skin material of the human.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L126

### set_subsurface_scattering()

```python
human.skin.set_subsurface_scattering(turn_on: bool, context: C = None)
```

Set the subsurface scattering on or off.

Parameters:
- `turn_on` (bool): True for turning on, False for turning off.
- `context` (C, default None): Blender context. Defaults to None.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L167

### set_underwear()

```python
human.skin.set_underwear(turn_on: bool, context: C = None)
```

Turn on/off the underwear/censoring on the human skin material.

Parameters:
- `turn_on` (bool): True for showing underwear, False for hiding it
- `context` (C, default None): Blender context. bpy.context if not provided.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L186

### as_dict()

```python
human.skin.as_dict() -> dict[str, Any]
```

Returns a dictionary representation of the skin material.

Returns: dict[str, Any] — dict[str, Any]: Dictionary representation of the skin material.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L203

### set_from_dict()

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

Set the skin material from a dictionary representation.

Parameters:
- `data` (dict[str, Any]): Dictionary representation of the skin material.
- `context` (C, default None): Blender context. bpy.context if not provided.

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

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/skin/skin.py#L226
