AYON Python API - Get Representations from Product Entity

Hello,

Is there a way to get all the representations from a product entity using AYON python API?

Here is what I’ve tried, but it does not seem to work as expected.

 filters = {"product.id": [product_entity['id']]}
 repre_ids = server.get_repre_ids_by_context_filters(project_name, filters)

Additionally, what is the best way to explore what are the available filters for the get_repre_ids_by_context_filters ?

Regards.
Tu

To get all representation from a product, you’d need to specify the product version.

Here’s an example code that fetches products data.

1 Like

@mustafa_jafar You are a legend.

1 Like