Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom node pin location #2436

Open
uxy-byte opened this issue Dec 4, 2024 · 2 comments
Open

Custom node pin location #2436

uxy-byte opened this issue Dec 4, 2024 · 2 comments
Labels
state: pending not addressed yet

Comments

@uxy-byte
Copy link

uxy-byte commented Dec 4, 2024

Hi,

When creating new nodes in a node_editor, would it be possible to allow the location of the pins (input and output) to be user-defined such that they can be located anywhere along the edges of a node? I ran into an issue in my project, where the node hierarchy/network would be more user friendly if the connections would run top-bottom, rather than left-right.

Currently I don't see any workaround for customizing the locations of the input and output pins for a node widget, other than being on the left or right side.

Thank you!

@uxy-byte uxy-byte added the state: pending not addressed yet label Dec 4, 2024
@v-ein
Copy link
Contributor

v-ein commented Dec 5, 2024

Unfortunately ImNodes, the backbone of DPG node editor, does not support pins on top/bottom edges. Even at the left/right side, it takes quite an effort to place pins at specific locations/offsets.

@v-ein
Copy link
Contributor

v-ein commented Dec 5, 2024

Just FYI, here's an example of how one can place dots on the left and right side at the same level:
https://github.com/my1e5/dpg-examples/blob/main/misc/multiple_node_attributes_one_line.py

Not sure how much effort it would be to support this inside of DPG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet
Projects
None yet
Development

No branches or pull requests

2 participants