Layers#
- class omni.kit.usd.layers.Layers(layers_instance, usd_context: UsdContext)#
Bases:
object
Layers is the Python container of ILayersInstance, through which you can access all interfaces. For each UsdContext, it has a separate Layers instance.
Methods
__init__
(layers_instance, usd_context)Delivers queued events.
Gets AutoAuthoring interface.
Gets the current edit mode.
Returns the event key filter for this instance.
Gets event stream of Layers instance.
Gets the last error string.
Gets the last error type.
Gets LayersState interface.
Gets LiveSyncing interface.
Gets SpecsLinking interface.
Gets SpecsLocking interface.
send_event
(event_name[, payload])Dispatches an event for this layer
set_edit_mode
(edit_mode)Sets the current edit mode.
Attributes
The UsdContext this instance is bound to.
- __init__(
- layers_instance,
- usd_context: UsdContext,
- deliver_queued_events()#
Delivers queued events.
- get_auto_authoring() AutoAuthoring #
Gets AutoAuthoring interface.
- get_edit_mode() LayerEditMode #
Gets the current edit mode.
- get_event_key()#
Returns the event key filter for this instance.
- get_event_stream()#
Gets event stream of Layers instance.
- get_last_error_string()#
Gets the last error string.
- get_last_error_type() LayerErrorType #
Gets the last error type.
- get_layers_state() LayersState #
Gets LayersState interface.
- get_live_syncing() LiveSyncing #
Gets LiveSyncing interface.
- get_specs_linking() SpecsLinking #
Gets SpecsLinking interface.
- get_specs_locking() SpecsLocking #
Gets SpecsLocking interface.
- send_event(event_name: str, payload: dict = {})#
Dispatches an event for this layer
- set_edit_mode(
- edit_mode: LayerEditMode,
Sets the current edit mode.
- property usd_context: UsdContext#
The UsdContext this instance is bound to.