EyebrowSettings
human/hair/eyebrows.pyInherits from BaseHair
Class for manipulating human eyebrows.
| Attributes | ||
|---|---|---|
| lightness | NodeInput | —from BaseHair |
| redness | NodeInput | —from BaseHair |
| roughness | NodeInput | —from BaseHair |
| salt_and_pepper | NodeInput | —from BaseHair |
| roots | NodeInput | —from BaseHair |
| root_lightness | NodeInput | —from BaseHair |
| root_redness | NodeInput | —from BaseHair |
| roots_hue | NodeInput | —from BaseHair |
| fast_or_accurate | NodeInput | —from BaseHair |
| hue | NodeInput | —from BaseHair |
| particle_systems | PropCollection | Get propcollection of particle systems on the human used by this hair type.from BaseHair |
| modifiers | PropCollection | Modifiers associated with the particle systems of this hair type.from BaseHair |
| haircard_obj | Optional[bpy.types.Object] | Blender object of haircards IF generated.from BaseHair |
| materials | list[bpy.types.Material] | List of materials used for this type of hair.from BaseHair |
| nodes | PropCollection | PropCollection of nodes used in the materials for this type of hair. # noqafrom BaseHair |
| Methods | ||
| remove_unused() | Remove unused eyebrow systems. | |
| set() | Sets the eyebrow named in preset_data as the only visible eyebrow system. | |
| convert_to_haircards() | bpy.types.Object | Convert the hair of this type to haircards.from BaseHair |
| get_evaluated_particle_systems() | PropCollection | Get an evaluated version of the particle systems of this hair type.from BaseHair |
| delete_all() | —from BaseHair | |
| randomize_color() | Randomize the color of the hair of this type.from BaseHair | |
| as_dict() | Save these settings to a dict and restore them from one. | |
Attributes
No description yet.
No description yet.
No description yet.
human.hair.eyebrows.salt_and_pepper: NodeInputfrom BaseHair
sourceNo description yet.
No description yet.
human.hair.eyebrows.root_lightness: NodeInputfrom BaseHair
sourceNo description yet.
human.hair.eyebrows.root_redness: NodeInputfrom BaseHair
sourceNo description yet.
No description yet.
human.hair.eyebrows.fast_or_accurate: NodeInputfrom BaseHair
sourceNo description yet.
No description yet.
human.hair.eyebrows.particle_systems: PropCollectionread-onlyfrom BaseHair
sourceGet propcollection of particle systems on the human used by this hair type.
human.hair.eyebrows.modifiers: PropCollectionread-onlyfrom BaseHair
sourceModifiers associated with the particle systems of this hair type.
human.hair.eyebrows.haircard_obj: Optional[bpy.types.Object]read-onlyfrom BaseHair
sourceBlender object of haircards IF generated.
List of materials used for this type of hair.
Usually singleton, but will contain multiple values if haircards are generated.
human.hair.eyebrows.nodes: PropCollectionread-onlyfrom BaseHair
sourcePropCollection of nodes used in the materials for this type of hair. # noqa
Methods
human.hair.eyebrows.remove_unused(context: C = None, _internal: bool = False)
sourceRemove unused eyebrow systems.
| Parameter | Type | Description |
|---|---|---|
| context | C default None | Blender context. Defaults to None. |
| _internal | bool default False | — |
Sets the eyebrow named in preset_data as the only visible eyebrow system.
| Parameter | Type | Description |
|---|---|---|
| preset_eyebrow | str | Name of eyebrows to set as active |
human.hair.eyebrows.convert_to_haircards(quality: Literal['ultra', 'high', 'medium', 'low', 'haircap_only'] = 'high', context: C = None, triangle_budget: Optional[int] = None) → bpy.types.Objectfrom BaseHair
sourceConvert the hair of this type to haircards.
Will generate a mesh object consisting of a haircap and haircards, skinned to the rig of the human. For eye systems only a haircap will be generated. The object follows the expressions of the human.
| Parameter | Type | Description |
|---|---|---|
| quality | Literal['ultra', 'high', 'medium', 'low', 'haircap_only'] default 'high' | Quality of the haircards, which sets the number of triangles of the generated object. Defaults to high. |
| context | C default None | Blender context. bpy.context if not provided. |
| triangle_budget | Optional[int] default None | Maximum number of triangles of the generated object, overrides the budget of the quality. |
Returns bpy.types.Object — bpy.types.Object: Blender object of the haircap and haircards
Raises HumGenException — If this human has no hair of this type to convert.
human.hair.eyebrows.get_evaluated_particle_systems(context: C = None) → PropCollectionfrom BaseHair
sourceGet an evaluated version of the particle systems of this hair type.
| Parameter | Type | Description |
|---|---|---|
| context | C default None | Blender context. bpy.context if not provided. |
Returns PropCollection — PropCollection of evaluated particle systems
human.hair.eyebrows.delete_all()from BaseHair
sourceNo description yet.
human.hair.eyebrows.randomize_color()from BaseHair
sourceRandomize the color of the hair of this type.