EyeSettings
human/eyes/eyes.pyClass for manipulating the eyes of the human.
Also contains properties for changing the material values.
| Attributes | ||
|---|---|---|
| iris_color | NodeInput | — |
| sclera_color | NodeInput | — |
| eye_obj | Object | Blender object of the eyes of the human. |
| outer_material | Optional[Material] | The material used for the outer layer of the eyes (The transparent part). |
| inner_material | Material | The material used for the inner part of the eyes (The colored part). |
| nodes | PropCollection | Nodes of the inner eye material. |
| Methods | ||
| randomize() | Randomizes the color of the pupils based on worlwide statistics. | |
| as_dict() · set_from_dict() | Save these settings to a dict and restore them from one. | |
Attributes
human.eyes.iris_color: NodeInput
sourceNo description yet.
human.eyes.sclera_color: NodeInput
sourceNo description yet.
Blender object of the eyes of the human.
human.eyes.outer_material: Optional[Material]read-only
sourceThe material used for the outer layer of the eyes (The transparent part).
human.eyes.inner_material: Materialread-only
sourceThe material used for the inner part of the eyes (The colored part).
human.eyes.nodes: PropCollectionread-only
sourceNodes of the inner eye material.
Methods
Randomizes the color of the pupils based on worlwide statistics.
Serialization: as_dict, set_from_dict
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.
human.eyes.set_from_dict(data: dict[str, Any]) → list[str]
sourceSets the eye settings from a dictionary.
This dict can be derived from the as_dict method.
| Parameter | Type | Description |
|---|---|---|
| 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.