SmartShuffle v1.2


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Alexey Kuchinski
Another Shuffle for lazy comper
Requirements:
6.3 or later
Linux, Mac, Windows
21 Aug 2015
238

V1.1 - Fixed alpha creation BUG

V1.2 - added 'd' as a shortcut for the depth

Hi folks, there are many shuffle nodes Gizmos which trying to make our life easier with clicking 4 times every time we want set all channels to red, green, blue or alpha.

What is different in this one? Here all set to shortcuts, so, just

create Shuffle node and then press 'r' - it will set all channels to 'Red'

create Shuffle node and then press 'g' - it will set all channels to 'Green'

create Shuffle node and then press 'b' - it will set all channels to 'Blue'

create Shuffle node and then press 'd' - it will set all channels to 'Depth'

create Shuffle node and then press 'a' - it will set all cha.........

How Nuke know that you actually want to set all channels let say to Blue and not to create 'Blur' node? It just read your mind :)

Actually it will do the trick only if Shuffle node is set to Default values (which is the case when you create the node), if Shuffle node has some changed values all shortcuts will work as in Default Nuke. I found it very intuitive and fast. My Shuffle Node creation is set to 's'. So if i want to create Shuffle with all channels set to 'Red' i just press 's' 'r' - done.

put those lines in your menu.py please 

 

import shuffle_Smart
m=nuke.menu('Nuke')
n=m.addMenu('shuffle')
n.addCommand('Rest/shuffleRed','shuffle_Smart.shuffleRed()','r')
n.addCommand('Rest/shuffleGreen','shuffle_Smart.shuffleGreen()','g')
n.addCommand('Rest/shuffleBlue','shuffle_Smart.shuffleBlue()','b')
n.addCommand('Rest/shuffleAlpha','shuffle_Smart.shuffleAlpha()','a')

n.addCommand('Rest/shuffleDepth','shuffle_Smart.shuffleDepth()','d')

 

 

Please login in order to download these files.

Comments   

 
0 # Jorge M 2013-04-11 10:28
awesome tool ! I only get this error when I tried with the alpha

Traceback (most recent call last):
File "", line 1, in
File "/home/jcherem/ .nuke/shuffle_S mart.py", line 4, in shuffleAlpha
import Axis_My
ImportError: No module named Axis_My
 
 
0 # Alexey Kuchinski 2013-04-11 10:38
Sorry for that, forgot to delete some line, so general user will be able to use the script.
I ill re-upload the script
But you easily can fix it by your self
Just open Shuffle_Smart.p y in text editor and delete the line#4 - "import Axis_My"
and everything will work this time :-)
Thank you for notifying me about the BUG
 
 
0 # Gaston Marcotti 2015-01-13 12:02
Smart and useful, thank you.
 
 
0 # Alexey Kuchinski 2015-11-21 15:47
Hi there, you probably did notice that Nuke9 did mess up the tool, so to make it properly work from Nuke9 and later you have to add R, G, B, A commands to the "Node Graph" menu instead of the "Nuke" menu.

here is the fix of the problem:


import shuffle_Smart

b=nuke.menu('Node Graph')
b.addCommand('shuffle_Smart/shuffleRed','shuffle_Smart.shuffleRed()','r')
b.addCommand('shuffle_Smart/shuffleGreen','shuffle_Smart.shuffleGreen()','g')
b.addCommand('shuffle_Smart/shuffleBlue','shuffle_Smart.shuffleBlue()','b')
b.addCommand('shuffle_Smart/shuffleAlpha','shuffle_Smart.shuffleAlpha()','a')
b.addCommand('shuffle_Smart/shuffleDepth','shuffle_Smart.shuffleDepth()','d')
 
 
0 # Michael Clemens 2018-02-09 02:59
This seems to take over the hotkeys for the viewer. r,g,b,a no longer works to change the channel view?

Any ideas? (nuke 9.v09)
 
 
0 # Alexey Kuchinski 2018-02-09 06:02
Hi Michael, please read the comment above, i did re-edit it since i may made mistake previously.
cheers
 
 
0 # Michael Clemens 2018-02-09 16:41
Thanks Alexey,

Yes, I had seen that and added that instead to my menu.py

Still doesn't seem to work.
 
 
0 # Michael Clemens 2018-02-09 16:55
Sorry. .. .I got it.

I realize I needed to ADD the additional lines to the menu.py instead of "replacing" it with it.

Thank you!
 
 
0 # Alexey Kuchinski 2018-02-09 16:56
Great!
i was puzzled a bit what went wrong :D
 
 
0 # Michael Clemens 2018-02-09 17:07
I went wrong :) !

Thanks again. . . really handy
 
 
0 # Alexey Kuchinski 2018-02-09 17:10
i am going wrong in 90 of time in coding as well :)

have a look on those, they are handy as well

smartmerge

smarttransform
 

You have no rights to post comments

We have 3860 guests and 123 members online