# EyeSettings

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

Reached as: `human.eyes`

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/eyes/eyes.py#L56

Class for manipulating the eyes of the human.

Also contains properties for changing the material values.

## Attributes

### iris_color

```python
human.eyes.iris_color: NodeInput
```

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

### sclera_color

```python
human.eyes.sclera_color: NodeInput
```

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

### eye_obj

```python
human.eyes.eye_obj: Object
```

*read-only*

Blender object of the eyes of the human.

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

### outer_material

```python
human.eyes.outer_material: Optional[Material]
```

*read-only*

The material used for the outer layer of the eyes (The transparent part).

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/eyes/eyes.py#L78

### inner_material

```python
human.eyes.inner_material: Material
```

*read-only*

The material used for the inner part of the eyes (The colored part).

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/eyes/eyes.py#L88

### nodes

```python
human.eyes.nodes: PropCollection
```

*read-only*

Nodes of the inner eye material.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/eyes/eyes.py#L97

## Methods

### randomize()

```python
human.eyes.randomize()
```

Randomizes the color of the pupils based on worlwide statistics.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/eyes/eyes.py#L105

### as_dict()

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

Returns the current eye settings as a dictionary.

Returns: dict[str, tuple[float, float, float, float]] — Dictionary containing the current eye settings. Currently color only.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/eyes/eyes.py#L135

### set_from_dict()

```python
human.eyes.set_from_dict(data: dict[str, Any]) -> list[str]
```

Sets the eye settings from a dictionary.

This dict can be derived from the as_dict method.

Parameters:
- `data` (dict[str, Any]): Dictionary to set the eye settings from.

Returns: list[str] — list[str]: List of errors that occured during setting the eye settings.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/eyes/eyes.py#L146
