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

Proposal : Allow for the ability to see USD Stage materials as text #55

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

kwokcb
Copy link
Contributor

@kwokcb kwokcb commented Feb 6, 2024

Proposal

It is useful for debugging and interop comparison to be able to see the USD Stage materials.
A simple way to do this is to add a "preview as text" as exists for MaterialX.

Change

  • Addition of "Show USD as text..." menu option.

image
Figure: Shows new proposed menu item and the text box popup

Logic

  • Finds the /MaterialX prim and extracts it out using a new print_usd_prim utiltity which references the prim and exports the children as a string for display.

kwokcb added a commit to kwokcb/QuiltiX that referenced this pull request Feb 6, 2024
@manuelkoester
Copy link
Member

Thank you for the contribution Bernard!

@manuelkoester manuelkoester merged commit 76a2670 into PrismPipeline:main Feb 16, 2024
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