API (python)#
Module Summary:
This module contains bindings to C++ omni::kit::IApp interface, core C++ part of Omniverse Kit. |
|
This module contains bindings to C++ omni::ext::IExtensions interface. Extension system of Omniverse Kit. |
|
This package is the gateway to all things Carbonite. If you are starting from scratch: |
|
Bindings for carb::settings::ISettings interface. Settings is a runtime representation of typical configuration formats (like json, toml, xml), it is a nested dictionary of values. |
|
Bindings for carb::tokens::ITokens interface. It is used for storing tokens and resolving strings containing them. |
|
This module contains bindings to C++ carb::IEvents interface. |
|
This module contains bindings to C++ carb::IDictionary interface. |
|
pybind11 carb.input bindings |
|
This module contains bindings to C++ carb::profiler::IProfiler interface. |
|
pybind11 carb.windowing bindings |
|
This module contains bindings to C++ carb::eventdispatcher::IEventDispatcher interface. |
|
This module contains bindings to C++ carb::variant::IVariant interface. |
|
Module Details::
This module contains bindings to C++ omni::kit::IApp interface, core C++ part of Omniverse Kit.
All the function are in omni.kit.IApp class, to get it use get_app_interface method, which caches acquire interface call:
>>> import omni.kit.app
>>> a = omni.kit.app.get_app()
This module contains bindings to C++ omni::ext::IExtensions interface. Extension system of Omniverse Kit.
carb:
This package is the gateway to all things Carbonite. If you are starting from scratch:
>>> import carb
>>> f = carb.get_framework()
>>> f.startup()
There is however no need to start up the framework if you are working within a Carbonite based application. This has already been handled.
- Attributes:
- logging (carb.pycarb.logging.ILogging): Gives access to the ILogging interface, which
can be used to set configuration for logging.
- filesystem (carb.pycarb.filesystem.IFileSystem): Gives access to the IFileSystem interface, which is used to
read and write files in a platform independent manner, using a uniform path format that supports utf8 and long paths.
Bindings for carb::settings::ISettings interface. Settings is a runtime representation of typical configuration formats (like json, toml, xml), it is a nested dictionary of values.
This module contains bindings to C++ carb::ISettings interface.
Bindings for carb::tokens::ITokens interface. It is used for storing tokens and resolving strings containing them.
This module contains bindings to C++ carb::ITokens interface.
This module contains bindings to C++ carb::IEvents interface.
Use get_events_interface method, which caches acquire interface call:
import carb.events
events = carb.events.get_events_interface()
s = events.create_event_stream()
s.push(0, { "x" : 2 })
e = s.pop()
print(e.type)
print(e.payload)
You also can subscribe to IEventStream
import carb.events
events = carb.events.get_events_interface()
s = events.create_event_stream()
def on_event(e):
print(e.type)
print(e.payload)
subscription = s.create_subscription_to_pop(on_event)
# Some code which pushes events
# ...
# unsubscribe
subscription = None
IEventStream
object can often be received from other APIs. Use it to subscribe for events, or push your events.
No module docstring provided
No module docstring provided
This module contains bindings to C++ carb::IDictionary interface.
pybind11 carb.input bindings
This module contains bindings to C++ carb::profiler::IProfiler interface.
pybind11 carb.windowing bindings
This module contains bindings to C++ carb::eventdispatcher::IEventDispatcher interface.
This module contains bindings to C++ carb::variant::IVariant interface.
No module docstring provided
No module docstring provided