human.face
FaceSettings
human/face/face.pyInherits from PropCollection
Class for manipulating the facial proportions of the human.
| Attributes | ||
|---|---|---|
| keys | List[Union[LiveKeyItem, ShapeKeyItem]] | Filtered subset of human.keys for keys related to facial proportions. |
| is_bpy | isinstance | —from PropCollection |
| Methods | ||
| reset() | Reset all facial proportions to 0. | |
| randomize() | Randomize facial proportions. | |
| find() | int | Find 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
sourceFiltered subset of human.keys for keys related to facial proportions.
No description yet.
Methods
Reset all facial proportions to 0.
| Parameter | Type | Description |
|---|---|---|
| context | C 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)
sourceRandomize facial proportions.
| Parameter | Type | Description |
|---|---|---|
| subcategory | str default 'all' | Subcategory of facial proportions to randomize. Defaults to "all". |
| use_bell_curve | bool default False | Whether to use a bell curve for randomization. |
| use_locks | bool default False | Whether to use locks to prevent randomization of certain facial proportions. Defaults to False. Locks are in UI. |
| context | C default None | Blender context. bpy.context if not provided. |
Find index of item in prop collection.
| Parameter | Type | Description |
|---|---|---|
| item_name | str | Name of item to find |
Returns int — Index in list
No description yet.
| Parameter | Type | Description |
|---|---|---|
| item_name | str | — |
| default | Any default None | — |
Returns Union[ID, Any]
human.face.foreach_get(attr: str, sequence: ndarray)from PropCollection
sourceNo description yet.
| Parameter | Type | Description |
|---|---|---|
| attr | str | — |
| sequence | ndarray | — |
human.face.foreach_set(attr: str, sequence: ndarray)from PropCollection
sourceNo description yet.
| Parameter | Type | Description |
|---|---|---|
| attr | str | — |
| sequence | ndarray | — |
No description yet.
Returns list[Any]
No description yet.
Returns list[Any]
No description yet.
| Parameter | Type | Description |
|---|---|---|
| items | Any default () | — |
No description yet.
| Parameter | Type | Description |
|---|---|---|
| items | str default () | — |