Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

How to remove connections when using ConnectionCount.Multi? #145

Closed
RomanZhu opened this issue Nov 29, 2017 · 8 comments
Closed

How to remove connections when using ConnectionCount.Multi? #145

RomanZhu opened this issue Nov 29, 2017 · 8 comments

Comments

@RomanZhu
Copy link

For example, i have that situation:

ciwafnflrgirwrnvyokwtg

And i want to remove one of connections. As i see there is no way built-in :(

I wrote dirty fix to get it semi-working and continue on writing extension

dsoux64wrquuqpxcjbabjq

Is there a way to remove connections which i'm missing? Like holding some button and dragging left mouse over wires? (Which is desired behavior, as it's used in many other applications)

@RomanZhu
Copy link
Author

I'm using develop branch

@Seneral
Copy link
Owner

Seneral commented Nov 29, 2017

From multi connection knobs, there is unfortunately now way, no.
Before the revamp, there were only Mult-Single connections so it was 'create from multi and delete from single'. Since that became interchangeable, single-single connections were also supported, but for multi-multi a new concept was required. This is not yet implemented, but it will be similar to what you said. Do you require multi-multi? Then I might try to do that whenever I have time soon:)

@Seneral Seneral closed this as completed Nov 29, 2017
@Seneral Seneral reopened this Nov 29, 2017
@RomanZhu
Copy link
Author

Yeah we need it :D
I can get away with my solution while developing extension, but i'll need properly working one at the end.

What i'm doing is parsing UnityEvents from scene objects and building tree procedurally with custom nodes, then modifying those events when connections changes in node editor

@Seneral
Copy link
Owner

Seneral commented Nov 29, 2017

Ok, will try it at some point. Core is the hit detection for the bezier curves.
Then, what would you prefer? Clicking the curve to delete or dragging a line to detach all connections under it? Last would be nice but would require an additional key to hold...

@RomanZhu
Copy link
Author

I prefer line-cuts with preview of that line (if we dragging mouse and button).
Main reason for that is high possibility of random missed clicks.

Also it would be good to fast remove connection when clicking on them while holding same button (not too close to Knobs in case of multi connections (as that editor has no undo and random)

One more common way is selecting wire and deleting it by context menu or buttons

@RomanZhu
Copy link
Author

RomanZhu commented Dec 2, 2017

https://youtu.be/XKbSu5PC8VA?t=633

Just to visualize what i mean

@Seneral
Copy link
Owner

Seneral commented Dec 3, 2017

Btw, you can check out #148, which is a good temporary workaround:)

@RomanZhu
Copy link
Author

RomanZhu commented Dec 3, 2017

Yeah, i saw that :)
Will check it out tomorrow

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants