AcademySoftwareFoundation / AcademySoftwareFoundation/MaterialX

Nodegraph inputs are not propagated to all connections

Open
#779 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.3k
Forks
451
Avg merge
6d 6h
Merged PRs (30d)
5

Description

We are experimenting with `standard_surface_brick_procedural.mtlx` and changing its properties. It seems to me that the inputs in the nodegraph (for example `hue_variation`) are copied by value to each node that is connected to it, and then is only one of those nodes stored as a path for the input variable. Here is a simple repro to show what I mean:

```xml














```
When opening this in MaterialXView and changing `in_color` in Property Editor, only one of the inputs to the split node is updated:
![image](https://user-images.githubusercontent.com/4532327/145419802-4a58bd36-7baf-46c0-9b88-c683b756d7b6.png)

Version tested: MaterialX main branch as of today (`a78d13f6`)

Contributor guide

Open the contributing guide

Research direction

Start with the supplied XML repro in MaterialXView and change in_color in the Property Editor. Trace how the nodegraph interface input reaches both splitlr connections, then verify the issue is resolved when changing in_color updates both valuel and valuer.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.