Call a function on selection of a prim object

Experts,

 I have a need to write a custom extension using code or a create app, wherein upon selection of a loaded prim object in the scene, I need to call a python script to connect to an external application to get some metadata info (e.x asset id). I already wrote the python script that returns me the asset id. What I am looking for is, this return string from the script I want to display as a label right above the selected prim object.  Appreciate if anyone can guide me how to achieve this.

I would take a look at how it is being done in this sample: GitHub - NVIDIA-Omniverse/kit-extension-sample-ui-scene: Sample Repository to create Kit Extension using the ui.scene API

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