human.eyes

Class for manipulating the eyes of the human.

Also contains properties for changing the material values.

Attributes
iris_colorNodeInput—
sclera_colorNodeInput—
eye_objObjectBlender object of the eyes of the human.
outer_materialOptional[Material]The material used for the outer layer of the eyes (The transparent part).
inner_materialMaterialThe material used for the inner part of the eyes (The colored part).
nodesPropCollectionNodes 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

No description yet.

No description yet.

human.eyes.eye_obj: Objectread-only

source

Blender object of the eyes of the human.

human.eyes.outer_material: Optional[Material]read-only

source

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

human.eyes.inner_material: Materialread-only

source

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

human.eyes.nodes: PropCollectionread-only

source

Nodes of the inner eye material.

Methods

human.eyes.randomize()

source

Randomizes the color of the pupils based on worlwide statistics.

Serialization: as_dict, set_from_dict

human.eyes.as_dict() → dict[str, tuple[float, float, float, float]]

source

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]

source

Sets the eye settings from a dictionary.

This dict can be derived from the as_dict method.

ParameterTypeDescription
datadict[str, Any]Dictionary to set the eye settings from.

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