NodeGraphProcessor icon indicating copy to clipboard operation
NodeGraphProcessor copied to clipboard

Ports in node header

Open leissler opened this issue 4 years ago • 1 comments

Is it somehow possible to have an input/output port in the header of a node, like here, for example: image

This would be useful if you want to create visual scripting applications that have an execution flow and (optionally) a separate data flow along the nodes of the graph. The author of the tool in the above screenshot simply used a USS stylesheet cheat with negative vertical offset. But maybe this could be more cleanly done, as I think it could be a potentially valuable use-case.

leissler avatar Jan 16 '22 20:01 leissler

Ok, I found a way to do this, but it requires the methods AddPort(), InsertPort(), and RemovePort() in the BaseNodeView class to be virtual and overridable. Could you make this update in the NGP code, so developers can override adding/inserting/removing ports?

leissler avatar Feb 08 '22 22:02 leissler