![]() |
|
This module provides schemas for encoding information on USD prims for client graphical user interface tools to use in deciding how to organize and present the prims in UI layouts. This information does not guide the 3D rendering of data contained in a scene, rather it's about how to visualize the nodes in the graph that comprises a UsdStage.
The primary classes are:
uiHints metadata dictionary. uiHints metadata dictionary. uiHints metadata dictionary. uiHints metadata dictionary.UsdUI additionally has schemas that describe accessibility information used in assistive UI, and UI hints that provide hints on how prims and properties should be presented in a UI.
The AccessibilityAPI schema describes accessibility information on a prim that may be surfaced to a given runtime's accessibility frameworks. This information may be used by assistive features in tools, such as voice controls or screen readers.
Accessibility information is provided as a standard triplet of label, description, and priority. This is a multiple-apply schema, and so may have multiple namespaced accessibility triplets, where an instance name may reflect a given purpose for that triplet. For example, you may desire to express different information for different aspects of the prim, such as size or color.
UI hints are, broadly speaking, metadata fields that pertain to presentation of scene data in a UI. Most such fields in USD are held in the uiHints metadata dictionary belonging to prims and properties. UsdUI provides API for reading and writing these values in the form of "hints" objects corresponding to the relevant core object types: UsdUIObjectHints, UsdUIPrimHints, UsdUIPropertyHints, and UsdUIAttributeHints. No unique hints apply only to UsdRelationship, so there is no UsdUIRelationshipHints.
These objects provide access to the following hint fields:
shownIf expressions with a prim's display groupsOther UI-relevant metadata fields that are, for various reasons, not part of the uiHints dictionary include: