You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a custom Node Editor with self linking and duplicate links capability. Following are my observations:
self linking (link output attribute and input attribute of same node)
Cant do through UI drag and connect.
Achievable through code => dpg.add_node_link(29, 27, parent=myeditorWindow, label="my label") (assuming 29 and 27 are attributes of same node)
But the link gets connected under the node and therefore hidden.
duplicate links
Cant do through UI drag and connect.
Achievable through code by connecting same pair of attributes twice =>
dpg.add_node_link(29, 27, parent=myeditorWindow, label="my label_duplicate1")
dpg.add_node_link(29, 27, parent=myeditorWindow, label="my label_duplicate2")
But duplicate edge is hidden as it is drawn over the original. I wish to see both separately
Now What I wish to do is:
Be able to do both the above through UI (not using extra buttons but by simply dragging and connecting)
Make Link labels/user data visible over the link in the UI / Node Editor Window so as to make it easier to identify visually
Improve link visibilty for the duplicate links and links connecting output to input of same node
How can I do this ? Can I override/customize the behaviour somehow ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to create a custom Node Editor with self linking and duplicate links capability. Following are my observations:
Cant do through UI drag and connect.
Achievable through code => dpg.add_node_link(29, 27, parent=myeditorWindow, label="my label") (assuming 29 and 27 are attributes of same node)
But the link gets connected under the node and therefore hidden.
Cant do through UI drag and connect.
Achievable through code by connecting same pair of attributes twice =>
dpg.add_node_link(29, 27, parent=myeditorWindow, label="my label_duplicate1")
dpg.add_node_link(29, 27, parent=myeditorWindow, label="my label_duplicate2")
But duplicate edge is hidden as it is drawn over the original. I wish to see both separately
Now What I wish to do is:
How can I do this ? Can I override/customize the behaviour somehow ?
Beta Was this translation helpful? Give feedback.
All reactions