SkinSettings
human/skin/skin.pyClass for manipulating skin material of human.
| Attributes | ||
|---|---|---|
| cavity_strength | NodeInput | — |
| tone | NodeInput | — |
| redness | NodeInput | — |
| saturation | NodeInput | — |
| normal_strength | NodeInput | — |
| roughness_multiplier | NodeInput | — |
| freckles | NodeInput | — |
| splotches | NodeInput | — |
| texture | TextureSettings | Gives acces to texture settings, for setting and changing textures. |
| nodes | SkinNodes | All nodes of the human skin material. |
| links | SkinLinks | All links on the human skin material. |
| material | Material | Human skin material. |
| gender_specific | Union[MaleSkin, FemaleSkin] | Returns an instance to change node settings specifically related to gender. |
| Methods | ||
| randomize() | Randomize the skin material of the human. | |
| set_subsurface_scattering() | Set the subsurface scattering on or off. | |
| set_underwear() | Turn on/off the underwear/censoring on the human skin material. | |
| as_dict() · set_from_dict() | Save these settings to a dict and restore them from one. | |
Attributes
human.skin.cavity_strength: NodeInput
sourceNo description yet.
No description yet.
No description yet.
human.skin.saturation: NodeInput
sourceNo description yet.
human.skin.normal_strength: NodeInput
sourceNo description yet.
human.skin.roughness_multiplier: NodeInput
sourceNo description yet.
No description yet.
No description yet.
human.skin.texture: TextureSettingsread-only
sourceGives acces to texture settings, for setting and changing textures.
All nodes of the human skin material.
All links on the human skin material.
Human skin material.
human.skin.gender_specific: Union[MaleSkin, FemaleSkin]read-only
sourceReturns an instance to change node settings specifically related to gender.
Methods
Randomize the skin material of the human.
human.skin.set_subsurface_scattering(turn_on: bool, context: C = None)
sourceSet the subsurface scattering on or off.
| Parameter | Type | Description |
|---|---|---|
| turn_on | bool | True for turning on, False for turning off. |
| context | C default None | Blender context. Defaults to None. |
human.skin.set_underwear(turn_on: bool, context: C = None)
sourceTurn on/off the underwear/censoring on the human skin material.
| Parameter | Type | Description |
|---|---|---|
| turn_on | bool | True for showing underwear, False for hiding it |
| context | C default None | Blender context. bpy.context if not provided. |
Serialization: as_dict, set_from_dict
Returns a dictionary representation of the skin material.
Returns dict[str, Any] — dict[str, Any]: Dictionary representation of the skin material.
human.skin.set_from_dict(data: dict[str, Any], context: C = None) → list[str]
sourceSet the skin material from a dictionary representation.
| Parameter | Type | Description |
|---|---|---|
| data | dict[str, Any] | Dictionary representation of the skin material. |
| context | C default None | Blender context. bpy.context if not provided. |
Returns list[str] — list[str]: List of occurred errors.