human.face

FaceSettings

human/face/face.py

Inherits from PropCollection

Class for manipulating the facial proportions of the human.

Attributes
keysList[Union[LiveKeyItem, ShapeKeyItem]]Filtered subset of human.keys for keys related to facial proportions.
is_bpyisinstance—from PropCollection
Methods
reset()Reset all facial proportions to 0.
randomize()Randomize facial proportions.
find()intFind index of item in prop collection.from PropCollection
get()Union[ID, Any]—from PropCollection
foreach_get()—from PropCollection
foreach_set()—from PropCollection
items()list[Any]—from PropCollection
values()list[Any]—from PropCollection
new()—from PropCollection
remove()—from PropCollection

Attributes

human.face.keys: List[Union[LiveKeyItem, ShapeKeyItem]]read-only

source

Filtered subset of human.keys for keys related to facial proportions.

human.face.is_bpy: isinstancefrom PropCollection

source

No description yet.

Methods

human.face.reset(context: C = None)

source

Reset all facial proportions to 0.

ParameterTypeDescription
contextC
default None
Blender context. bpy.context if not provided.

human.face.randomize(subcategory: str = 'all', use_bell_curve: bool = False, use_locks: bool = False, context: C = None)

source

Randomize facial proportions.

ParameterTypeDescription
subcategorystr
default 'all'
Subcategory of facial proportions to randomize. Defaults to "all".
use_bell_curvebool
default False
Whether to use a bell curve for randomization.
use_locksbool
default False
Whether to use locks to prevent randomization of certain facial proportions. Defaults to False. Locks are in UI.
contextC
default None
Blender context. bpy.context if not provided.

human.face.find(item_name: str) → intfrom PropCollection

source

Find index of item in prop collection.

ParameterTypeDescription
item_namestrName of item to find

Returns int — Index in list

human.face.get(item_name: str, default: Any = None) → Union[ID, Any]from PropCollection

source

No description yet.

ParameterTypeDescription
item_namestr—
defaultAny
default None
—

Returns Union[ID, Any]

human.face.foreach_get(attr: str, sequence: ndarray)from PropCollection

source

No description yet.

ParameterTypeDescription
attrstr—
sequencendarray—

human.face.foreach_set(attr: str, sequence: ndarray)from PropCollection

source

No description yet.

ParameterTypeDescription
attrstr—
sequencendarray—

human.face.items() → list[Any]from PropCollection

source

No description yet.

Returns list[Any]

human.face.values() → list[Any]from PropCollection

source

No description yet.

Returns list[Any]

human.face.new(*items: Any = ())from PropCollection

source

No description yet.

ParameterTypeDescription
itemsAny
default ()
—

human.face.remove(*items: str = ())from PropCollection

source

No description yet.

ParameterTypeDescription
itemsstr
default ()
—