ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Pinning / Unpinning multiple nodes at the same time doesn't work

Open MNeMoNiCuZ opened this issue 1 year ago • 5 comments

Expected Behavior

When having multiple nodes selected, I expect to be able to pin and unpin several nodes.

Additionally, pinning is not visible in the editor. It should, similar to LOCKING have a PIN-icon to make this state clear to the user.

It can be very frustrating to get a workflow where you can't move stuff around, but you don't understand why.

Actual Behavior

Selecting multiple nodes and pinning/unpinning only pins/unpins the node that you right-clicked on.

Steps to Reproduce

Open default workflow CTRL + A to select all nodes Right-click on a node Select Pin from the list

Only the node you right-clicked on is pinned.

Debug Logs

Starting server

To see the GUI go to: http://127.0.0.1:8188

Other

I understand this may not be intended behavior, since the "Pin" is an option on the context menu of the node you selected. It's possible that not all nodes or things in the UI support pinning.

But I believe this is not a good behavior. Pinning, like Grouping, is a general behavior, and should not be node-specific.

Or rather: When you have multiple things selected, the list should only show things that are available to be done on everything that you have selected.

MNeMoNiCuZ avatar Sep 09 '24 15:09 MNeMoNiCuZ

Multiple unpin doesn't work, we should also be able to collapse if pinned, just like before.

PGCRT avatar Sep 10 '24 17:09 PGCRT

So I came here first to post a request about missing node color and BG options since the new frontend update, and I just found the solution, this is also fixing the Pin issue ,) How many things this will fix I don't know yet but hey, I just removed this argument from the launcher, "--front-end-version Comfy-Org/ComfyUI_frontend@latest" thats it!

I guess we read too well the documentations ,) I hope this will help

PGCRT avatar Sep 10 '24 17:09 PGCRT

So I came here first to post a request about missing node color and BG options since the new frontend update, and I just found the solution, this is also fixing the Pin issue ,) How many things this will fix I don't know yet but hey, I just removed this argument from the launcher, "--front-end-version Comfy-Org/ComfyUI_frontend@latest" thats it!

I guess we read too well the documentations ,) I hope this will help

That could be a workaround if it's something you need urgently. But looking for future stability, a proper solution is better :)

MNeMoNiCuZ avatar Sep 10 '24 18:09 MNeMoNiCuZ

Also now that the "lock" function was replaced by the "pinned" one.

Replaced locking with pinning in core https://github.com/Comfy-Org/ComfyUI_frontend/pull/734)

A visual indicator of a "pinned" node would be nice for fast visual confirmation.

darkflare avatar Sep 10 '24 20:09 darkflare

Press "p" should pin/unpin all selected nodes.

huchenlei avatar Sep 11 '24 23:09 huchenlei

Press "p" should pin/unpin all selected nodes.

@huchenlei Thanks for the advice. That's good, but it should also be contextually changed to "Pin All" or "Unpin All" if you have multiple nodes selected.

I think it doesn't make sense to show the context menu for one item, when you have multiple selected. Having multiple items selected means you're intending to do something with the selected things.

MNeMoNiCuZ avatar Sep 12 '24 08:09 MNeMoNiCuZ