I am trying to create a new custom extension and have it as part of a webapp. What I am looking for is, when the app is launched, I need to display a viewport window with a cad model (usd) being loaded into the viewport and have a camera pointed to the model. Finally, I want to display the object name (a label) when a prim is selected. Meaning it should display camera1 as a label when the camera is selected and model name when the model is selected.
I want to achieve this with a python script. Appreciate if anyone can guide me to achieve the above.