-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UsdView: Display resolved labels in attribute editor #3300
UsdView: Display resolved labels in attribute editor #3300
Conversation
@@ -5,7 +5,8 @@ | |||
# https://openusd.org/license. | |||
# | |||
|
|||
from pxr import Usd, UsdGeom, UsdShade | |||
from collections import defaultdict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unused.
3f9c8da
to
7c02ddd
Compare
Filed as internal issue #USD-10151 |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
7c02ddd
to
cb279f6
Compare
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
8fd8f89
to
ad5e444
Compare
ad5e444
to
dd36305
Compare
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
…les in the attributes editor
dd36305
to
7dfa6f6
Compare
bookshelf.zip |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
…d-resolved-labels-to-attribute-editor
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Thanks for the example file, it was helpful to validate the change on our end. We've completed our review and this should be merged shortly. |
Description of Change(s)
This PR uses the
usdSemantics
schema and API to compute the taxonomies and the associated labels and display them inUsdView's
attribute editor under a new row namedResolved Labels
.The
Resolved Labels
for a selected prim include the labels on the prim itself and those on all its ancestors (inherited labels).For each taxonomy, the unique set of labels is computed and sorted lexicographically by the 'UsdSemantics.LabelsQuery.ComputeUniqueInheritedLabels()` API.
Performance considerations
The computation of direct and indirect taxonomies and their labels is instantaneous for prim hierarchies that are ~30 items deep with ~10 taxonomies and ~10 labels each. The same seems to lag just very slightly with hierarchies that are ~30 items deep and with a random number of maximum of 100 taxonomies, each with a random number of maximum of of 100 labels.
Fixes Issue(s)