I am currently developing scripts using the Pixyz Studio 2025.1 Python API, and I am specifically working on identifying and processing geometrically duplicated or similar Part Occurrences within a scene.
In the API documentation, I found the scene.findDuplicatedPartOccurrences function, which appears highly relevant to this task.
Based on my observations, it seems that the function returns a list containing only one representative Occurrence ID for each pair or group of duplicated occurrences, rather than returning the IDs of all the occurrences within those groups.
For instance, if there are 4 pairs of duplicated objects in the scene (meaning a total of 8 occurrences are duplicated across these 4 groups), the findDuplicatedPartOccurrences function appears to return a list containing only 4 Occurrence IDs (one ID from each duplicated pair/group). My objective is to obtain the IDs of all 8 duplicated occurrences.
Therefore, I would be very grateful if you could provide clarification on the following:
- Could you please confirm if the observed behavior is correct?
Doesscene.findDuplicatedPartOccurrencesindeed return only one representative Occurrence ID per duplicated pair or group? - If this is the intended behavior, could you please advise on how I can programmatically obtain the IDs of all occurrences within the duplicated pairs or groups using the Pixyz Studio 2025.1 Python API?
Thank you very much for your time and assistance.