api.catalog.attributes.HairAttributes#

class datagen.api.catalog.attributes.HairAttributes(age_group_match: List[Enum], ethnicity_match: List[Enum], gender_match: List[Enum], length: Enum, style: List[Enum])#

Each hair asset contains the following read-only attributes.

When you call the datagen.api.catalog.hair.get() or datagen.api.catalog.hair.count() functions, you can use this attribute to filter the catalog.

age_group_match: List[Enum]#

Matches the requested hairstyle(s) with a desired age group. Uses the Age enum.

A hairstyle may match with any number of age groups, or even all of them.

NOTE: Age group matches are recommendations only and are not mandatory.

ethnicity_match: List[Enum]#

Matches the requested hairstyle(s) with a desired ethnicity. Uses the Ethnicity enum.

A hair asset may match with any number of ethnicities, or even all of them.

NOTE: Ethnicity matches are recommendations only and are not mandatory.

gender_match: List[Enum]#

Matches the requested hairstyle(s) with a desired gender. Uses the Gender enum.

A hair asset may match with either or both genders.

NOTE: Gender matches are recommendations only and are not mandatory.

length: Enum#

The length of the haircut. Uses the HairLength enum.

style: List[Enum]#

The style of the haircut, e.g., ponytail, crew cut, or afro. Uses the HairStyle enum.

A hair asset may match with more than one style.

For example, one hair asset may be both “balding” and “crew_cut”.