human.body

BodySettings

human/body/body.py

Class to edit body proportions of the human.

The body proportions are changed by changing the values of the LiveKeys stored in the folder livekeys/body_proportions. These are accessible in the API under human.body.keys.

Note: By default Human Generator does not come with shape keys for changing body proportions, but either by users converting them or by new 3rd party packs adding them you can expect shape keys too.

For more info on LiveKeys see LiveKeys.

Attributes
keyslist[Union[ShapeKeyItem, LiveKeyItem]]Access ShapeKeyItems and LiveKeyItems for changing body proportions.
Methods
randomize()Randomizes the values of the body keys of this human.
reset_values()Reset all body keys to their default values.

Attributes

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

source

Access ShapeKeyItems and LiveKeyItems for changing body proportions.

Gets all LiveKeyItems and ShapeKeyItems from the global Human Generator key collection (Human.keys.all_keys) that belong to the body proportion category.

Methods

human.body.randomize(category: str = ALL, use_locks: bool = False, context: C = None)

source

Randomizes the values of the body keys of this human.

Uses a random value retreived from a normal distrubition with mean 0 and sigma of 0.5.

ParameterTypeDescription
categorystr
default ALL
Category of keys to randomize. Defaults to ALL.
use_locksbool
default False
Whether to use locks shown in UI. Defaults to False.
contextC
default None
Blender context

human.body.reset_values(context: C = None)

source

Reset all body keys to their default values.

ParameterTypeDescription
contextC
default None
Blender context