LogicEditor | Reroute-Node
Summary
Implementation of a reroute node in the LogicEditor for routing a single input to multiple outputs.
Problem or need
The current LogicEditor graph can be complex and difficult to read due to multiple interconnected nodes. A relay node would simplify the graph by allowing a single input to be routed, improving readability.
Edit: The package our solution is built upon supports a relay node, which is currently not compatible to our extensions.
Proposed solution
Introduce a relay node that accepts a single input and routes it to multiple outputs. This would make the graph easier to understand and navigate, especially for complex logic with multiple branches or triggers.
-
Disable the relay
node of the source package. Currently this is still available when routing from a port. -
Build a custom reroute
node compatible to our extensions.
Alternatives considered
- Using existing nodes to achieve the same functionality. This could lead to a cluttered graph and may not be as clear as a dedicated relay node.
- Not implementing the relay node. This would maintain the current complexity of the graph but could potentially hinder collaboration and understanding of the logic.
Additional context
A relay node would be particularly beneficial for a trigger that needs to activate multiple things. Currently, this would require multiple connections from the trigger node to each target node, which can be confusing. With a relay node, the trigger would connect to the relay node, and the relay node would then connect to each target node, making the graph more organized and easier to understand.