Wouterdek/NodeNetwork

Input and Output Ports on the Same Level

Sage-of-Mirrors opened this issue · 3 comments

Hello,

Would it be possible to force an output port to share the same Y coordinate with an input port and vice-versa? I would like to have the nodes chained in sequence like this: nodes
Having the output so far down the side of the node causes some cleanliness issues, especially when the nodes have many inputs.

I would also like to ask how to use the execution-style port. I'm wandering blindly into ReactiveUI, and it's a bit intimidating!

Thanks!

I believe the property you are looking for is EndpointsStackingOrientation in the NodeView.

Also, what do you mean exactly by "execution-style port". If you mean the Blueprint-style nodes as in the codegen example, you can find the source code for that example here. Or do you mean something like the shader editor?
If you mean the latter, as your screenshot suggests, I suggest looking at this. This is a simple node that takes in 2 floating point values and combines them using a math function.
Line 63 specifies declaritively that the result value changes when either of the 2 inputs (or the operation to be performed) change, and then uses the .Select to specify how the 2 values should be combined. Note that this is not operating on the floats themselves, but rather on the program code that will produce floats during execution. Similarly, the result node produces a program snippet like a + b rather than an actual value.

Hello Similar problem to Sage-of-Mirrors I want to make the output inline with input is that possible?

I checked EndpointsStackingOrientation but completely clueless?