human.age

AgeSettings

human/age.py

Class to edit age of the human.

Attributes
age_colorNodeInput—
age_wrinklesNodeInput—
keyslist[Union[ShapeKeyItem, LiveKeyItem]]Get a list of all shapekeys and livekeys that affect the age of the human.
Methods
set()Set the age of the human.
as_dict() · set_from_dict()Save these settings to a dict and restore them from one.

Attributes

No description yet.

No description yet.

human.age.keys: list[Union[ShapeKeyItem, LiveKeyItem]]read-only

source

Get a list of all shapekeys and livekeys that affect the age of the human.

Methods

human.age.set(age: int, realtime: bool = False)

source

Set the age of the human.

ParameterTypeDescription
ageintAge to set. UI uses increments of 10.
realtimebool
default False
Use true if the value will be changed in realtime by a slider in the UI.
Serialization: as_dict, set_from_dict

human.age.as_dict() → dict[str, Any]

source

Get the age settings of the human as a dictionary.

Returns dict[str, Any] — Dictionary with the age settings of the human.

human.age.set_from_dict(data: dict[str, Any])

source

Set the age of the human from a dictionary.

ParameterTypeDescription
datadict[str, Any]Dictionary with the age of the human.