Dots v5.1


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Alexey Kuchinski
Help to keep node graph more organised by putting Dots and making connection 90 degrees
Requirements:
14.0, 13.2, 13.1, 13.0, 12.2, 12.1, 12.0, 11.3, 11 or later
Linux, Mac, Windows
03 Mar 2024
2378

V 5.1 - fixed inconvenient dots creation when a dot or other node already exists in the same place, thanks to Lega Pugliese for catching and ultimately fixing it!

V 5.0 - should work with Nuke 13

V 4.3 - fixed issue that if node is not default size nodes were positioned with an offset

         - will work now with any dot size without problem

V 4.0 - code cleanups, more precise dots positioning

V 4.0 - more predictable behaviour when mask input is connected in the merge node, scanlinerender node and paint node.

have fun

I like to keep my NodeGraph organised, so what this script does, it breaks each diagonal line in two, connected by dot in 90 degrees. i gave to it short cut 'Alt+,'

See short examle here: http://www.youtube.com/watch?v=FwCkM6FwO2M&feature=youtu.be

Hope you will find this useful. 

 

to install:

put the file to your plugin directory.

add those lines to your menu.py

 

import Dots

m=nuke.menu('Nuke')

n=m.addMenu('coolDotFromInternet/NodeGraph',icon='NodeGrapf.png')

n.addCommand ('Dots', 'Dots.Dots()', ',')

 

 

Please login in order to download these files.

Comments   

 
0 # life srichathi 2011-02-27 09:18
its giving the module error..
 
 
0 # Alexey Kuchinski 2011-02-27 09:21
Hi, can you copy paste, what you had added to your meny.py and error message as well?
 
 
0 # life srichathi 2011-02-27 09:29
Hi Alex,

Tnx for reply very fast . i solved the problem just sec ago ..

and i want one Node list same like MAX, Maya.. it is possible .. can u give ur email id
 
 
0 # Alexey Kuchinski 2011-02-27 09:32
not sure what you mean but here is my mail,
 
 
0 # life srichathi 2011-02-27 09:35
i want to apply to the selected nodes .. not only one node .. it is possible
 
 
0 # steve morel 2011-03-28 09:55
Hey Alexey,
Thanks for this script, it's pretty useful, and help keeping a graph organised !
I'm not sure if it's a bug, or if it's not implemented yet, but it could be great, that the script apply on all the selected node, here it apply only on one pair :sad:
 
 
0 # shakil shaikh 2022-04-11 13:24
same problem for me
 
 
0 # Howard Jones 2011-08-21 09:22
change the first line to
for selected in nuke.selectedNodes():
and indent the rest will work on more than one node
 
 
0 # michael love 2024-02-22 22:09
Like this?:

for selected in nuke.selectedNo des():
m = nuke.menu('Nuke ')
n = m.addMenu('dots ')
n.addCommand('D ots','Dots.Dots ()','Alt+,')
 
 
0 # Alexey Kuchinski 2013-01-05 14:30
Hi Dots users :-)
just uploaded update, please have a look on new features:
http://www.youtube.com/watch?v=FwCkM6FwO2M&feature=youtu.be
Enjoy!
 
 
0 # Zakary P 2013-01-07 19:08
It'd be nice in nuke 7
;-)
 
 
0 # Misho Ristov 2013-01-09 05:05
thanks! works nice
 
 
0 # Richard Courtman 2013-05-14 07:03
Hi, what do I put in my menu.py exactly? thanks!
 
 
+1 # Alexey Kuchinski 2013-05-14 07:31
put those lines to your menu.py

import Dots
m = nuke.menu('Nuke')
n = m.addMenu('dots')
n.addCommand('Dots','Dots.Dots()','Alt+,')
 
 
0 # Richard Courtman 2013-05-14 07:42
Many thanks, is that written somewhere or is it assumed that we know it? Having trouble getting it to work with the keyboard shortcut (though from the toolbar it works great) Any ideas?

Traceback (most recent call last):
File "", line 1, in
File "/net/homes/myu sername/.nuke/D ots.py", line 11, in Dots
AX = A.xpos()
AttributeError: 'NoneType' object has no attribute 'xpos'
 
 
0 # Alexey Kuchinski 2013-05-14 07:51
I just erased explanation by mistake when updated the version, sorry.
regarding the error - your merge node have to be connected with both inputs A and B.
connect it and it should solve the problem
 
 
0 # Richard Courtman 2013-05-14 07:56
Brilliant thanks very much!
 
 
0 # quentin delsart 2015-10-16 15:09
Thanks, great ! But there is a strange result when connecting RotoPaint Node with bg1 as second input...
 
 
0 # Alexey Kuchinski 2016-04-22 10:06
Hi quentin,
fixed!
V 4.0 - more predictable behaviour when mask input is connected in the merge node, scanlinerender node and paint node.
 
 
0 # Marcel Pichert 2017-12-07 11:22
does it work for nuke 10.5v6?
if not could you update it?
 
 
0 # Alexey Kuchinski 2017-12-08 13:17
check v4.1
please write if it is not working
please add the error you are getting
thanks
 
 
0 # Marcel Pichert 2017-12-11 10:10
thanks it works now :)
 
 
0 # Alexey Kuchinski 2017-12-12 07:30
Cool, thank you for a feedback :-)
 
 
0 # Tor Andreassen 2017-12-14 04:06
HI Alexey, looks very handy :)
Just curious - whats the difference between Dots() and DotsBKP() ?
 
 
0 # Tor Andreassen 2017-12-14 04:17
would be very cool if the mask input also worked the same way but on the right side of the node in stead of creating a dot in the center of the node as its currently doing , just a friendly feature request :) Awesome script!
 
 
0 # Alexey Kuchinski 2017-12-14 14:59
Quoting Tor Andreassen:
would be very cool if the mask input also worked the same way but on the right side of the node in stead of creating a dot in the center of the node as its currently doing , just a friendly feature request :) Awesome script!


Hi Tom, it is actually does what you asking, on which node did you try it?
 
 
0 # Tor Andreassen 2017-12-17 06:15
Hey Alexey,
Maybe it works on earlier version than 11 only?
Does not lay it out to the right side on nuke11, the dot gets placed on top of the node for the mask input..
 
 
0 # Alexey Kuchinski 2017-12-17 08:53
Hi Tor, i apologize for misspelling your name previously.
just did cjeck on Nuke 9 and 10.5 and had no problem, except of additional dot was created on the side().
thank you for reporting, will investigate later this week.
 
 
+1 # Alexey Kuchinski 2017-12-14 14:56
what a strange question
Dots() is actual script
DotsBKP() - is something i just forgot to erase :D :D
thank you for pointing out, will erase with next submission
 
 
0 # BIll Marsh 2017-12-30 13:42
Alexey,

Could I ask you to explain in more detail how to install Dots? It's not working in 10.5.

I copied your text into menu.py, and added this additional text from you:

import Dots
m = nuke.menu('Nuke')
n = m.addMenu('dots')
n.addCommand('Dots','Dots.Dots()','Alt+,')

As a separate question, how can I change Dots activation from "Alt+" to "Alt-mouse click"?

Thank you.
 
 
0 # BIll Marsh 2017-12-30 13:49
I got Dots to work, by putting this text at the end of Dots.

import Dots
m = nuke.menu('Nuke')
n = m.addMenu('dots')
n.addCommand('Dots','Dots.Dots()','Alt+,')

Should you add this text into the download?
 
 
0 # Alexey Kuchinski 2017-12-30 16:23
Hi Bill,
you are right, i should put it in explanation section. forgot to do it..........again.
but you do not need to insert those lines in the end of the script, something wrong with your menu.py i guess.


Regarding remapping to mouse click - i do not know if it is possible, you will have to google a bit.
thank you.
 
 
0 # Abdullah Mamun 2018-04-16 08:20
how to use this scripts ????? can any one help me ????
 
 
0 # Alexey Kuchinski 2018-04-16 14:31
do you have your User created?
do you get some errors?
have you some Python knowledge?
 
 
0 # Marvin Sprengel 2018-11-07 14:16
Hi there,
did anyone else have the issue that somewhat bigger node like the channelmerge oder nodes with a label applied wont create a 90° angle?

not a big problem, but wondered if this awesome organiser could adjust itself to that to?
 
 
0 # Alexey Kuchinski 2018-11-08 20:31
Done,

probably i did brake something else on the way.

in case you find some issues please contact me!

thank you
 
 
0 # Marvin Sprengel 2018-11-11 23:32
Wow, that was fast :) It's totally fine for me to be honest, but there is still a slight offset with the channelmerge for example!
 
 
0 # G. Scott Scribner 2020-03-10 20:31
The script doesn't work when placed inside the Plugins folder. Import Dots is looking for it loose in the .nuke folder and loads properly when placed there.
 
 
+1 # li zhaohui 2021-03-31 11:21
nuke13?
 
 
0 # Alex snookes 2022-03-28 13:15
Any one made a nuke13 friendly version of this?
 
 
+2 # Alexey Kuchinski 2022-03-31 07:46
Hey Alex, i do not have an access to Nuke 13 now,
but what you can easily do is to open the dot.py script and change everywhere

print 'lalala'
to
print ('lalala')

meaning - add the brackets, that is it.
it should do the trick
Cheers!
 
 
0 # Alex snookes 2022-03-31 09:19
Hey Alexey,

I did that originally and the python runs, but the dots no longer set at right angles..

I get this message.. 'integer argument expected, got float"

thanks
 
 
0 # Alexey Kuchinski 2022-04-02 08:12
i see, the
setXYpos is expecting int and not float.
i have it fixed but can not post as can not test, sorry about that.

you need to change

setXYpos(lala,lala)
to
setXYpos(int(lala),int(lala))

everywhere.

or wait till i finally post it updated and checked.
 
 
0 # Alex snookes 2022-04-04 14:31
Yeah still giving me grief!!


Maybe I will wait for you to update.

Thanks, let me know when its out!!
 
 
0 # Alex snookes 2022-04-04 14:31
Yeah still giving me grief!!


Maybe I will wait for you to update.

Thanks, let me know when its out!!
 
 
0 # Alexey Kuchinski 2022-04-10 08:29
hi
Give it a try, worked for me.
cheers!
 
 
0 # Alexey Kuchinski 2022-04-10 08:29
.
 
 
0 # Alex snookes 2022-04-11 10:35
:-) :D
 
 
+1 # Aitor Echeveste 2022-04-11 10:54
Thanks master!!!
 
 
0 # Alexey Kuchinski 2022-04-12 08:30
My pleasure Aitor!!!!!
 
 
0 # shakil shaikh 2022-04-11 13:13
when i select multiple node for dot showing this error
'NoneType' object has no attribute 'Class'
 
 
0 # Alexey Kuchinski 2022-04-12 08:29
Hi Shakil.

all works good on my side, could you send me a .nk file with nodes so i will have a look?


thanks
 
 
0 # arthur lu 2022-05-07 08:15
Hi Alexey
 
 
0 # arthur lu 2022-05-07 08:15
Hi Alexey
thank you for your great set
however, when i run it in nuke 12 i got follow errors
File "", line 1, in File "C:/Program Files/Nuke12.2v 3/plugins\Dots. py", line 122, in Dots if A.Class()== "Dot": AttributeError: 'NoneType' object has no attribute 'Class'
any hint that could fix it? thx
 
 
0 # Alexey Kuchinski 2022-07-29 14:37
Hi Arthur, sorry for the late reply, i assume it works now?
If not - please describe what you are trying to do.
It should run on Nuke 12.
 
 
0 # Alexey Kuchinski 2022-07-29 14:37
Hi Arthur, sorry for the late reply, i assume it works now?
If not - please describe what you are trying to do.
It should run on Nuke 12.
 
 
0 # Martin Rombos 2022-07-26 13:33
I wont be able to live without this. Thanks for sharing it and for keeping it updated.
 
 
+1 # Alexey Kuchinski 2022-07-29 14:35
Thank you Martin, so hope Foundry will make it default feature one day :).
 

You have no rights to post comments

We have 2629 guests and 27 members online