MaterialPropertyExtension
- class omni.kit.property.material.scripts.MaterialPropertyExtension
Bases:
IExt
A class that extends the OmniKit Editor by registering and managing custom widgets related to material properties.
This extension is responsible for adding custom UI elements to the Properties Window within the OmniKit environment, specifically tailored for editing USD shade attributes and materials. It ensures the proper registration and unregistration of these widgets during the extension’s startup and shutdown lifecycle events.
Methods
__init__
()Initializes the extension and sets up necessary properties.
Called when the extension is being shut down.
on_startup
(ext_id)Called when the extension is started.
- __init__()
Initializes the extension and sets up necessary properties.
- on_shutdown()
Called when the extension is being shut down.
- on_startup(ext_id)
Called when the extension is started.
- Parameters
ext_id (str) – The ID of the extension being started.