Hello,
I’d like to add a custom event, and I am running the following script on the Script Editor as described on the Event Streams documentation:
import carb.events
import omni.kit.app
import carb
event_id = carb.events.type_from_string("my.extension.MY_CUSTOM_EVENT")
es = omni.kit.app.get_app().get_message_bus_event_stream()
def on_event(e):
carb.log_warn("testing")
sub = es.create_subscription_to_pop_by_type(event_id, on_event)
As stated on the documentation, I was expecting to see testing
output on the console as a warning on every frame update, but it is not showing anything. I tried start/stop/pause, but it won’t make any difference.
The documentation I am following is here: Event streams — Omniverse Kit 106.1.0 documentation
What could be the problem here? I am also wondering if there is a way to create custom event streams, like the PhysX event stream.
Thanks!