GeomPrimSchemeDelegate#
- class omni.kit.property.bundle.GeomPrimSchemeDelegate#
Bases:
PropertySchemeDelegateA delegate class that provides widget building schemes for geometric primitives in a property window.
This class extends the PropertySchemeDelegate and overrides methods to determine the appropriate widgets to display or hide, based on the type of USD geometric primitives encountered. The widget construction is primarily guided by the type of the USD primitive provided in the payload, such as UsdGeom.Mesh, UsdGeom.Camera, or UsdLux.Light among others. It caters to both the inclusion of relevant widgets and the exclusion of irrelevant or unwanted widgets for a given primitive.
Methods
get_unwanted_widgets(payload)Identifies unwanted widgets for removal based on the given payload.
get_widgets(payload)Determines widgets to build based on the given payload.
- __init__()#
- get_unwanted_widgets(payload)#
Identifies unwanted widgets for removal based on the given payload.
- Parameters:
payload (dict) – Payload containing stage and prim paths to identify unwanted widgets.
- Returns:
A list of unwanted widget names.
- Return type:
list
- get_widgets(payload)#
Determines widgets to build based on the given payload.
- Parameters:
payload (dict) – Payload containing stage and prim paths to determine widgets.
- Returns:
A list of widget names to be built.
- Return type:
list