datagen.api.catalog.humans#

class datagen.api.catalog.humans#

This class gives you access to the catalog of human assets. When you get a 3D asset from this catalog, it comes in the form of a datagen.api.assets.Human object.

Each human asset comes with a default set of hair, eyes, eyebrows, and facial hair - all of which you can edit or replace if you like.

You can query the humans catalog using these functions:

get(self, id: str = None, limit: int = None, **attributes) Union[Human, List[Human]]:#

Gets human assets from the asset catalog.

Parameters:
Returns:

The human asset or assets that match your search query

Return type:

count(self, **attributes) int:#

Queries the catalog for the number of human assets matching a request

Parameters:

attributes (Any) – Optional. A dictionary of attributes matching one or more of the properties in datagen.api.catalog.attributes.HumanAttributes.

Returns:

The number of human assets in the catalog matching your query.

Return type:

int