Skip to content
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 prim rollover window #3460

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

nvaszabo
Copy link

@nvaszabo nvaszabo commented Dec 11, 2024

Description of Change(s)

This PR uses the usdSemantics schema and API to compute the taxonomies and the associated labels and display them in UsdView's prim rollover window.

The resolved labels for a prim under the cursor and for its bound materials are computed as follows:

  • The taxonomies and their labels on the prim and all its ancestors (inherited labels).
  • For each taxonomy, the unique set of labels is computed and sorted lexicographically by the 'UsdSemantics.LabelsQuery.ComputeUniqueInheritedLabels()` API.

Note that the list of taxonomies and resolved labels is truncated to fit in the rollover window, using the new TruncateMiddle() utility function, by omitting the middle part of the list and displaying its start and end. This provides a user experience similar to that provided by the Qt widgets used in the attribute editor.

image

Link to proposal

N/A

Fixes Issue(s)

N/A

Checklist

[x] I have created this PR based on the dev branch

[x] I have followed the coding conventions

[ ] I have added unit tests that exercise this functionality (Reference:
testing guidelines)

[x] I have verified that all unit tests pass with the proposed changes

[x] I have submitted a signed Contributor License Agreement (Reference:
Contributor License Agreement instructions)

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10504

(This is an automated message. See here for more information.)

@jesschimein
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants