Get list of objects in a scene

Based on the Hello World Core API Tutorial I would like to print the position of every object in the scene over the Python API. The catch is, I do not generate all the objects programmatically in the python script, so I don’t know how many objects there are and what their names are.

Is there a possibility to get a list of objects in a scene? The information exists in the SceneRegistry, e.g. for rigid objects. I just don’t know how I can access it from the scene class, since there is only a function to get information about a specific object when you know the name of the object.

I figured it out. I use get_prim_at_path to get a high-level prim, I know and then I use get_prim_children to iterate down.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.