MaterialPropertyExtension

class omni.kit.property.material.scripts.MaterialPropertyExtension

Bases: IExt

A class provides custom property widgets for materials, shaders, node graphs, and backdrops in USD.

Upon startup, the extension registers custom property widgets that enhance the display and editing capabilities for various USD prim types related to material and shading within the application. It supports adding custom context menus and handling visual aspects such as display color, expansion state, and icons for node graphs and backdrops.

During shutdown, the extension unregisters all the custom widgets to clean up the environment. It ensures that any changes made to the property window are reverted, maintaining the application’s state.

The extension uses a combination of USD and OmniKit APIs to interact with the application and manipulate USD schemas. It provides an improved user experience for artists and technical directors working with materials and shaders in USD-driven projects.

Methods

__init__()

Initializes the MaterialPropertyExtension and sets up internal state.

on_shutdown()

Cleans up the extension state on shutdown.

on_startup(ext_id)

Initializes the extension with the given extension ID.

__init__()

Initializes the MaterialPropertyExtension and sets up internal state.

on_shutdown()

Cleans up the extension state on shutdown.

on_startup(ext_id)

Initializes the extension with the given extension ID.

Parameters

ext_id (str) – The ID of the extension being started up.