kiss (functionality like in autodesk flame and smoke) v3.1


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Simon Jokuschies
Kiss functionality like in autodesk flame and smoke to quickly connect nodes.
Requirements:
12.0, 11.3, 11.2, 11.1, 11.0, 10.5, 10.0, 9.0, 8.0 or later
03 Aug 2020
631

watch the video Tool Video

In Autodesk Flame and Smoke you can use the kiss function to quickly connect nodes. With this script that feature is now accessible inside Nuke as well. After it is installed simply select a node and move it to another node. When both nodes overlap press A on your keyboard and the nodes get connected. You can also press A first and then move one node to another. Works in both directions. Shortcut and connection radius are adjustable. See documentation within the download to get more information.


In daily work, this method has has proven for me to be faster than connecting nodes the traditional way using the input or output pipes as selecting a node is quicker than grabbing the small node input handle thingy. With several hundreds or thousands of nodes per day this makes a lot of time savings.

 

How to install kiss

 


Download kiss and copy it into your nuke home directory.
In your init.py add this one line:
nuke.pluginAddPath('kiss')

 

 

connecting

02

02

 

 

Please login in order to download these files.

Comments   

 
0 # romain Bouvard 2014-04-12 09:38
hey Simon,

Nice one you've got here... it's fun to used but I found something strange as you 're resulting with multiple input for some simple nodes.. which could break the script.
Don't have this problem since I removed it.

Cheers
Romain
 
 
+3 # Simon Jokuschies 2020-07-25 23:10
Hi Romain,
Wow, better 6 years later than never, haha. Sorry, I did not see your comment as I did not get any notification about it. I just did a complete rewrite of the tool. Please see if this new version fixes your issue. If not let me know all steps you are taking in order to reproduce your stated behavior. Thanks and cheers, Simon
 
 
0 # Yunsik Noh 2020-07-26 00:28
Thank you for this new version, Simon.
 
 
0 # Frank Rueter 2020-08-03 00:26
great tool! the default hotkey overwrites the default "a" hotkey in the viewer though which may cause confusion.
 
 
+1 # Simon Jokuschies 2020-08-03 19:36
Hi Frank,
thanks. What are your steps to reproduce this?

Although there is a shortcutContext kwarg when adding the command in the package's menu.py it should not be necessary to my mind. I just tried it under mac, win and linux and pressing A switched to the alpha channel which should be the expected behavior. Or am I missing something?
 
 
0 # Octavio Mancilla 2020-08-05 02:47
Amazing tool, thanks for sharing! I have a strange thing happening here (10.5v6):
1) I activate the kiss function with the shortcut A while moving node1 towards node2.
2) Release once the connection is made.
3) Disconnect node1 because I don't want the link anymore for whatever reason.
4) node1 remains "hot" for one more kiss even though I'm no longer pressing the shortcut to activate it again. This means that if I move it to any nodeN it will create a connection again with it.

This happens only for one last kiss. After that node1 gets back to normal behavior.

Thanks again!
 
 
0 # Simon Jokuschies 2020-08-10 21:10
Hi Octavia,
Please see if this issue persists when simply pressing your custom shortcut once. The workflow is to simply press it once and not hold it.
 
 
0 # Octavio Mancilla 2020-08-24 15:14
That's what I'm doing, pressing only once the shortcut without holding it.
 
 
0 # Sal Sol 2020-08-22 09:22
hi, wow looks very cool!
but i tried to install it by coping the the folder kiss_3.1.0 into my windows system nuke folder .nuke, and added the (nuke.pluginAdd Path('kiss')) to the init file, but it didnt work for me, is there anything else i need to do?
i noticed there's files in the kiss folder such as menu and CHANGELOG, do i need to edit any of those?
thanks!
 
 
0 # Simon Jokuschies 2020-08-22 21:15
Hi Sal Sol,
Your described steps sound correct and there is no further adjustment needed.

What do you actually mean with: "but it didnt work for me"? Do you get any errors in your terminal? Or what exactly did not work for you?

I just downloaded the latest version myself under Windows-10, installed it and it works for me (Just tested with nuke-12.0). Here are a few things to further trouble shoot this on your end:

1) Please double check the following if it actually happens on your end: The download is a .zip file and when it comes to extracting the zip file under Windows and depending on your installed zip application, it might tend to create a sub folder with the same name of the zip file. After unzipping, you might end up with something like:

C:/Users/your.username/Downloads/kiss_3.1.0/kiss_3.1.0

This is a behaviour that only happens under Windows and is a Windows specific strangeness. If that's the case on your end as well make sure that you are stating this folder correctly. When adding the path to Nuke's pluginPath, make sure to direct it up to the folder that contains the actual menu.py, CHANGELOG, etc. After having added it to your init.py launch Nuke, launch a script editor and type in:

nuke.pluginPath()

And make sure the absolute path to kiss is contained in the resulting list. It should point to the directory that contains the menu.py as stated above.

2) When having added the path to Nuke's pluginPath, you should be able to see a menubar command: Edit -> kiss.

I hope that helps. Let me know if you need more help.

Cheers, Simon
 
 
+1 # matteo bacci 2020-11-18 11:04
i renamed the folder to kiss couse it seems to me there was an issue bind to the _3.1.0 ---- not it works.
great tool
 
 
0 # matteo bacci 2020-11-18 11:05
by the way, is it possibile to have that A key always pressed, as default?

it is annoying pressing A before creating the link, i d like to grag the node over the other node and have them linked....then if i press A i disable the tool..... how ever could i implement this??
i think it is possible,....le t me know|!;)))
however great really great tool
 
 
0 # Sameh Bijou 2022-12-30 07:36
I still think that a video explaining how to instal the plugin for beginners like me is necessary,
I still can't install the plugin and the explanation assumes that the user knows what is init.py is.
It would be great if I could get some help with this.

Thanks
 
 
0 # Simon Jokuschies 2022-12-30 08:09
Hi Sameh, here is a video that also covers the installation: https://www.leafpictures.de/code/kiss-for-nuke

This is an older video. Use the name that the folder is called. I recommend also having a look at the following which explains what an init.py and menu.py file are as these are fundamental concepts you should know when using nuke:

https://support.foundry.com/hc/en-us/articles/360003811839-Q100490-What-are-the-init-py-and-menu-py-files
 
 
0 # Anton Sergeev 2023-03-12 14:28
Update for Nuke v14, please!
 
 
+1 # Simon Jokuschies 2023-03-14 21:01
Hi Anton,
Everything should be Nuke-14 (Python-3.9) compatible. In fact I am using kiss in Nuke-14 right now. In case you get any error trying this is Nuke-14 please let me know your used operating system, the steps you are taking and the error message you are getting in your terminal.

Cheers, Simon
 
 
0 # Anton Sergeev 2023-04-02 08:16
Hello Simon! My Nuke 14 had some kind of mistake. Now I fixed it and everything has been earned! Thank you very much, your addition is just great!
 
 
+2 # Simon Jokuschies 2023-04-02 17:54
Hi Anton, great to hear this works now for you :)
 

You have no rights to post comments

We have 2789 guests and 62 members online