Channel Hotbox v1.4


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Falk Hofmann
easy way of changing layer inside the viewer
Requirements:
11.0, 10.5, 10.0, 9.0, 8.0, 7.1, 7.0, 6.3 or later
Linux, Mac, Windows
09 Aug 2017
391

update v1.4 

  • added compatibility for nuke11 and pyside2 
  • option to create grade node with channel set to selected layer
  • switch back to rgba via 'alt'
  • replaced autcompleter to inside the line-edit
  • code clean up
  • sanity check if viewer available and connected

 

 

the channel Hotbox

i wrote this small tool in PySide for easy and fast changing channels/layer inside the viewer since the dropdown menu or the page up/down solution are too tedious. after i tested it a while in production i added the option to also use it for shuffling out channels.

it is based on the current viewer and which node it is connected to. NOT the selected node inside the nodegraph. the script checks all available layer at this node and gives you the option to show, shuffle or grade them.

 

 

demo on vimeo

vimeo link

 

 

click:
change the viewer to the selected channel

shift+click:
shuffle out all selected channels

strg+click:
create grade node with channel set to selected

alt:
switch viewer back to rgba

 

i have worked with it under windows and linux. on ubuntu it seems correct, under centos is an issue with the transparent background, which will shown as black.

inside the script is an option where you can choose if you want to pop up under teh mouse or centered on primary or secondary screen.

 

any kind feedback is welcome.

 

cheers,

falk

Please login in order to download these files.

Comments   

 
+2 # Chris Forrester 2014-03-12 10:33
This is a great script and will certainly encourage me more to use the layers, as like yourself I got tired of constantly flipping through the drop down menu. Is a great tool if you are picking up from someone else and want to quickly assess how the layers look as they flow through the script.
 
 
+1 # Adrian Sutherland 2014-09-24 21:35
This is great! Much more efficient way of cycling through layers. Will certainly speed up workflow :-)
 
 
# Sam Cole 2014-10-11 01:03
Any reason not to use an explicit open source license?
 
 
# Falk Hofmann 2015-06-09 20:39
hey Sam,
nope, there isn't an explicit reason,will change that with the next version.
feel free to use it open as you like!
 
 
# Michael Clemens 2014-11-19 01:51
How do you execute this? How do you bring it up in Nuke?
 
 
# Seth Peterson 2015-02-12 18:31
Quoting Michael Clemens:
How do you execute this? How do you bring it up in Nuke?



Just drop the hotbox.py into your plugin dir. On my Mac it's ''Applications ▸ Nuke9.0v1 ▸ Nuke9.0v1(Show package contents) ▸ Contents ▸ MacOS ▸ plugins''

Then put this at the end of your menu.py (This makes the tilda key the hotkey):

#### add menu item to Edit menu
import hotbox
nuke.menu("Nuke").findItem("Edit").addCommand("HotBox", 'hotbox.create_ it()', "`")
 
 
# karthick efx 2017-08-20 18:34
how to import this did u get this hot box
any video for this
 
 
# karthick efx 2017-08-20 19:08
did u get this video
 
 
# Sebastian Ernst 2015-03-20 02:27
Getting this error when trying to run script:

---------------------------
Nuke
---------------------------
an integer is required

Line 165 woop

Any help?
 
 
# Falk Hofmann 2015-06-09 20:37
oh jesus! haven't checked in on Nukepedia for a while. sorry about that.
if it's still an issue, please let me know. in my experience, this kind of error means, that a viewer is missing.
 
 
# Dominique Richer 2016-04-09 15:56
I know it is pretty old but has anybody try this on a Mac (i'm on El Capitan) and when I use the shortcut assigned to the hotbox, I have to cmd+tab to see the hotbox (on nuke 8.0v6). Worked perfectly on Linux Centos 6. Any help would be nice!
 
 
# Falk Hofmann 2016-04-10 10:28
sorry, haven't had the chance to test on a mac.

sounds like you would have to set explicit the focus to the panel.
so it would be a line of a pyside attribute or just something like "setFocus(chann elHotbox)". but i would to dig around in the PySide doc as well.
 
 
# Dominique Richer 2016-04-10 15:00
I am not a pyside expert but I couldn't get the 'setFocus()' function to work. What I found was that if I replace 'self.setWindow Flags(QtCore.Qt .FramelessWindo wHint)' with 'self.setWindow Flags(QtCore.Qt .FramelessWindo wHint | QtCore.Qt.Windo wStaysOnTopHint )' it works on mac and still works on linux too.
 
 
# Alex snookes 2016-09-05 16:10
Has anyone been able to get this to work in nuke using the Tilda (`) key as i am still having problems with it?
 
 
# Falk Hofmann 2016-09-05 19:53
hey Alex,
on my machines does it work on linux and windows. do you have an english keyboard layout so you don't need an extra key modifier? could be the issue.
rather than this you could just set the hotkey to a different key by just changing the key in the last quotes.

for example to run this by hitting "v" you could change the command to:

nuke.menu("Nuke").findItem("Edit").addCommand("HotBox", 'hotbox.create_ it()', "v")
 
 
# karthick efx 2017-08-20 18:10
how to put in nuke Python
Channel Hotbox v1.4 ?
 
 
# Falk Hofmann 2017-08-21 10:10
add this to your menu.py

import hotbox
nuke.menu("Nuke").findItem("Edit").addCommand("HotBox", 'channelHotbox. start()', "alt+q")


alt+q will be the short cut. you can change this to whatever you like

you might want to check out this tutorial
http://www.nukepedia.com/gizmos/creating-a-new-menu-for-custom-gizmos
 
 
# li zhaohui 2017-11-22 06:33
There are some problems. There are 2 EXR files in the project, and the layers of the 2 files are different. After disassembling a EXR, the Channel Hotbox tool splits first EXR Shuffle layers when splitting the second exr!
 
 
# Seth Peterson 2017-12-12 23:33
Hi guys, has anyone had any luck getting v1.4 working on OSX?

I'm running Nuke 11.1v1

macOS High Sierra 10.13.1

At launch, I get the "can not interpret menu.py" error.
 

You have no rights to post comments

We have 3208 guests and 109 members online