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

Add support for top level inputs #1453

Merged

Conversation

kwokcb
Copy link
Contributor

@kwokcb kwokcb commented Aug 16, 2023

Issue

Fix so that top level inputs are parsed properly and values and path reflection data is correct (for uniform updates).
Fixes:

Defaults

Fix top level input discovery to include GraphElements and not just NodeGraphs (a Document where top level inputs reside is a GraphElement).

Once discovered the proper value and path can be pulled from the interface. The path is important since global uniform update relies on path matching.

Tests

Added in a simple top level test: stdlib/nodegraph_inputs/top_level_input.mtlx

Result in MaterialXView:
image
image

Result in MaterialX Graph Editor:
image
image

Test files From Issues

  • 1445
    image

  • 1383
    image

…odeGraphs (a Document is a GraphElement).

Once discovered the proper value and path can be pulled from the interface. The path is important since global uniform update relies on path matching.
@jstone-lucasfilm jstone-lucasfilm changed the title Support top level interface inputs Add support for root scope inputs Aug 18, 2023
@jstone-lucasfilm jstone-lucasfilm changed the title Add support for root scope inputs Add support for top level inputs Aug 18, 2023
Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me, thanks @kwokcb!

@jstone-lucasfilm jstone-lucasfilm merged commit b23de80 into AcademySoftwareFoundation:main Aug 18, 2023
12 checks passed
Michaelredaa pushed a commit to Michaelredaa/MaterialX that referenced this pull request Oct 21, 2023
Fix so that top level inputs are parsed properly and values and path reflection data is correct (for uniform updates).
@kwokcb kwokcb deleted the top_level_inputs branch May 28, 2024 15:38
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