strike-digital / node_pie

A blender addon that adds a pie menu for adding new nodes to the node editor quickly
141 stars 8 forks source link

Socket drag add #26

Closed KristjanLaane closed 3 weeks ago

KristjanLaane commented 4 weeks ago

it would be great to support using node pie from socket drag: image

currently the Blender native add search box shows up: image

im aware that link drag exists, but that is not the same thing thank you for making useful stuff!

strike-digital commented 4 weeks ago

Hi, unfortunately it's not possible to replace the socket drag menu directly, it's just one of the limitations of the API.

I'm not too how link drag is that different, though, other than having to press control before dragging?

KristjanLaane commented 3 weeks ago

i tried link dragging and the way it worked for me at least is that you have to have an existing link between two sockets. socket dragging is my preferred workflow though when im building networks, where there is no previous link prerequisite.

strike-digital commented 3 weeks ago

Ah right, that is something different. Currently, if you control click and drag on a socket, you should be able to get the functionality you want:

https://github.com/strike-digital/node_pie/assets/59890307/9c7492ec-7416-450a-8a9d-61ef69b8d2ac

KristjanLaane commented 3 weeks ago

i discovered that the reason it did not work is because i had changed my node pie shortcut to just RMB: image

normal add works then but socket drag does not. when i changed teh shortcut back to the default of Ctrl LMB then socket drag started to work as well. the reason i do not like the original shortcut is because it messes up an already existing shortcut of changing output socket of an existing link. For example, in order to change the output connection going out from Fac to going out from Color i need to hold down Control and use LMB to unconnect from Fac: image

image But with node pie default shortcut this stops working completely (and i spent hours some time ago figuring out why it is not working) I found another solution now, i changed the socket changing shortcut to Alt LMB and left the node pie shortcut to oringial Ctrl LMB so i could do the socket drag. it all works now. thanks!