thedmd / imgui-node-editor

Node Editor built using Dear ImGui
MIT License
3.73k stars 550 forks source link

Feature request: Fancy links (multi-segment) #309

Open bgribble opened 1 month ago

bgribble commented 1 month ago

This Max 8 tutorial shows a node editor very much like what I am working on. At the point of the clip below, the narrator is creating some new nodes and linking them, then using keyboard shortcuts to make the links "tidier" (auto routing around nodes, multiple segments instead of a single spline, can tweak connection parameters to overlap other ones).

https://youtu.be/5RYy8Cvgkqk?si=7TB7l9fhmggNmFfb&t=222

I don't know what the controls are that the person is using since I don't have Max 8 myself, but you see some apparently grabbable knots on the link line and I am guessing that the jump to "routed multiple segments" is a keypress since it happens so suddenly.

I know this is a big ask but I thought I would add the ticket in case it is of interest.

I may implement something like this myself using multiple (invisible) nodes and links, but that feels really hacky and it would be nicer if it was built in.