omni.kit.usd module

class omni.kit.usd.PlaceholderAttribute(name, path: pxr.Sdf.Path = None, type_name=None, value=None, metadata=None)

Bases: object

Get()
GetConnections()
GetMetadata(token)
GetName()
GetPath()
GetPrim()
GetTypeName()
HasAuthoredConnections()
HasAuthoredDisplayGroup()
HasAuthoredDisplayName()
HasCustomDataKey(key)
IsA(type=None)
Set(value)
SetName(name)
SetPath(path: pxr.Sdf.Path)
SetTypeName(type_name)
class omni.kit.usd.UiModel(self: omni.kit.ui._ui.Model)None

Bases: omni.kit.ui._ui.Model

add_placeholder_attribute(placeholder)
begin_change_group()
end_change_group()
get_type(self: omni.kit.ui._ui.Model, arg0: str, arg1: str) → omni.kit.ui._ui.ModelNodeType
get_value(path, meta, index, is_time_sampled, time)
on_subscribe_to_change(path, meta, stream)
on_unsubscribe_to_change(path, meta, stream)
remove_placeholder_attribute(placeholder)
set_array_size(path, meta, size, is_time_sampled, time, info)
set_value(path, meta, value, index, is_time_sampled, time, info)
omni.kit.usd.create_usd_attr_widget(attr: pxr.Usd.Attribute, attr_schema_spec: pxr.Sdf.AttributeSpec = None, time_code=Usd.TimeCode.Default()) → omni.kit.ui._ui.Widget

Create UI widget for USD attribute.

Creates proper UI widget depending on USD attribute type and assign USD UI Model to it. That effectively connects this widget with Usd attribute.

Parameters

attrpxr.Usd.Attribute

Returns

omni.kit.ui.Widget. Can be None.

omni.kit.usd.get_ui_model() → omni.kit.usd.model.UiModel

Returns UiModel singleton

omni.kit.usd.usd_attr_has_timesample_key(attr: pxr.Usd.Attribute, time_code: pxr.Usd.TimeCode)
omni.kit.usd.write_refinement_override_enabled_hint(stage)