W_hotbox v1.9


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Wouter Gilsing
UPDATED v1.9. Hotbox for Nuke, similar to Autodesk Maya's. Selection specific menu that appears underneath your cursor for as long as you press the shortcut. Fully customizable, with interface to easily add and modify buttons on the fly. See the video in the description for a demonstration.
Requirements:
13.1, 12.2, 12.1, 12.0, 11.3, 11.2, 11.1, 11.0, 10 or later
Linux, Mac, Windows
28 Mar 2021
7225

watch the video Tool Video

W_hotbox


A hotbox for Nuke similar to the one found in Autodesk Maya.

 

Watch the tutorial:

vimeo

 

W_hotbox is basically a fully customisable ‘favourites menu’ that pops up for as long as you press the shortcut and disappears as soon as you release. The buttons that make up the menu represent python scripts and change depending on you selection. The 'Hotbox Manager' offers you an user friendly interface which allows you to add new buttons on the fly. Those buttons are directly accessible via buttons that appear in the menu under your cursor.


You have the option to create buttons that either show up when specific node (combinations) are selected, as well as buttons that will show up no matter what is currently selected.

 

The hotbox while having a Merge node selected:

introHotbox

For me it changed the way I interact with Nuke completely and it sped up my workflow quite a bit. The ability to move any action to a button that appears near your cursor saves you a trip to the other side of your screen and back pretty often.

Besides that I use it a lot to automate repetitive tasks and actions I would otherwise probably not have taken time for at all. (Think of things that make your script more readable, but don't necessarily contribute to the final image, like (color)labeling nodes.).

However, you can add whatever buttons you like, so it's totally up to you how you put the hotbox to use.

 

 The Manager, an interface to add and modify buttons on the fly:

manager new

The download includes a user guide that features an in-depth description of everything there is to know about the hotbox. It also includes an installation guide and some basic python examples. Besides that, the download also comes with a bundle of buttons you can choose to install, so you don't have to start from scratch.

 

manual
Make sure to follow the steps in InstallationGuide.txt to install the tool properly. To upgrade from an older version, simply replace the old ‘W_hotbox.py’ and ‘W_hotboxManager.py’ with their updated versions.

 

If you decide to install the tool in a studio environment I would love to hear which studio! (Just because I think that's a fun thing to know :) )

 

See the change log on page 21 of the user guide for a complete overview of all the added features as well as an overview of the fixed bugs.

 

Highlighted features that were added:

NEW IN V1.1:

  • Added the option to have multiple repositories to store buttons in. To make the tool suitable to be installed in a studio environment. Buttons loaded from an additional repository will appear outlined grey, rather than black. See the chapter called ‘Working in a studio environment’ of the user guide for more information.
  • Option to hide the ‘iconsLocation’ knob from the preference panel so artists won’t be able to change it, when installed facility-wide.
  • When importing an archive of buttons, the buttons will now append the current set, rather than replacing it.

NEW IN V1.2:

  • Improved the way of defining additional repositories (feature added in v1.1). Rather than changing the actual python files the repositories can now be defined by setting environment variables, called ‘W_HOTBOX_REPO_PATHS’ and  ‘W_HOTBOX_REPO_NAMES’ (See page 13 of the user guide for more information)
  • Same applies for hiding the ‘hotboxIconLocation’ knob from the preferences panel (‘W_HOTBOX_HIDE_ICON_LOC’).

NEW IN V1.3:

  • Knob added to the preferences panel to control the hotbox’s font size.
  • License added
  • Knob formerly called ‘iconLocation’ renamed to ‘hotboxIconLocation’.
  • Improved the way archives will get created when none is present.

NEW IN V1.4:

syntaxHighlighting

  • Improved script editor. The script editor of the Manager now includes line numbers, syntax highlighting and auto indentation to make writing code easier. Tab’s will be automatically registered as four spaces.
  • Error catching. Whenever executing a hotbox button causes an error, the problem and it’s corresponding line now will be printed.
  • The Hotbox will now function properly in combination with nodes inside groups.

NEW IN V1.5:

  • In the script editor, the background color of the selected line now reflects the current state of the loaded script (black - unchanged, white - modified, green - just saved).
  • Added the option to launch the hotbox with a single tap, instead of having to keep the shortcut pressed. This mode is available through the ‘Launch Mode’-dropdown in the preferences.
  • Reorganised the preferences panel and assigned tooltips to all its knobs.

NEW IN V1.6:

coloredButtons

  • The option to easily change the colors of the text and background of a button.
  • Templates: The ability to save snippets of code to quickly access at a later point in time.
  • No-click execution: Execute the button underneath the cursor upon closing the Hotbox.
  • New button order system.
  • Auto save. No need to click the 'save' button anymore as changes will be saved automatically.
  • Option to change to Manager’s font size.
  • Tooltips added to Manager.
  • Fixed transparency issues on Linux. 

NEW IN V1.7:

  • Added support for PySide2 (Nuke 11) for Windows and Mac.

NEW IN V1.8:

  • Rules; Use Python scripts as filters to decide whether or not to show specific buttons.

NEW IN V1.9:

  • Added support for Python 3 (Nuke 13)
Copyright (c) 2016, Wouter Gilsing All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Redistribution of this software in source or binary forms shall be free of all charges or fees to the recipient of this software. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Please login in order to download these files.

Comments   

 
+9 # Frank Rueter 2016-08-23 23:08
Awesome. I have wanted this for years and never had the time to finish my own version to a degree that is production ready.
Thanks heaps!
 
 
+5 # Wouter Gilsing 2016-08-24 00:04
Ah thanks! Glad to hear that you like it:)
 
 
+4 # Swapnil Kadam 2022-05-03 11:40
Bro awesome work you have done, but i am getting this error in nuke 13 syntax while importing buttonBundle in import archive
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
KUDOS
 
 
+1 # Erwan Leroy 2016-08-24 01:57
This is great for Developers!

Limited Menu space has always been an issue for small pipeline/node related scripts. I had been stashing this kind of small scripts inside Edit/Nodes for years for lack of better option.

Can the hotbox menus be edited in script directly instead of using the hotbox editor? (I haven't installed your script yet, just watched the video)
 
 
0 # Wouter Gilsing 2016-08-24 02:06
Glad you like it!

You'll eventually need to put the code in the Hotbox Manager to assign it to the desired nodeclass/butto n.

However, if that works better for you, you can write your code in Nuke's script editor and paste it over when you're done, (as you can still use Nuke while having the Manager open).

Improving the Manager's script editor with basic stuff like line numbers etc, is somewhere on my to-do list for a future release.

Hope that answered your questions.
Cheers
 
 
0 # Erwan Leroy 2016-08-24 02:24
I meant, the script you put in the editor is eventually being saved somewhere (a .py or other file somewhere on the system).
Can these files be directly edited easily?

This way the code can easily be maintained and pushed facility wide.

It's not a deal-breaker to have to open nuke to find the function and edit it, it's just that I'd rather open the file and edit the code there in any text editor.
 
 
0 # Erwan Leroy 2016-08-24 02:36
Oh, okay, I installed the hotbox to look into your code.
I found the .py scripts inside the .hotbox tarball, so it's editable but not particularly easy to do so.

Quick question: Why adding a menu option for the icon path instead of making them part of the pluginPath and being directly recognized?
 
 
+2 # Wouter Gilsing 2016-08-24 03:29
You can of course simply call external modules from a button, if that answers your question. That way you don't actually have to put any code (except for an import statement and a function call) in the script of the button. So you can just open your big studio wide module, and edit it in your preferred editor and just link a hotbox button to a function of that module. That's the way I work with studio specific code at work.

Icons:

I added that option so users without any python knowledge won't run into trouble while installing, yet are still able to choose a custom location to store the icons. Not every artist has custom folders added to his/her pluginpath. That leaves two options:

1) Forcing them to add a folder by adding a line of code to init/menu.py to ensure that path is included in the pluginpath.

2) Making them drop everything directly into ~/.nuke.

Option 1 is obviously the preferred option, but can be challenging for artists that are less technical. Option 2 will create a mess.

I think the way it's currently handled is pretty easy and foolproof: Just open the preferences and point to the folder where you decided to store the icons. Done.

I get your question, I just went with this method to make it a bit harder for less technical compers to run into trouble:)
 
 
+2 # Parimal Desai 2016-08-24 04:04
Wow! Good Work :-)
 
 
+3 # Markus G 2016-08-24 12:44
Nice. Used it for 30seconds and I already love it. Thanks for sharing.
 
 
+1 # Daniel Mermelstein 2016-08-24 15:44
That's amazing. Looks like a great time saver tool. Your demo looks great too.
As a feature request, I would suggest a way to export/import buttons and classes among other Hotbox users.
Thanks
 
 
+1 # Wouter Gilsing 2016-08-24 16:01
Hey Daniel, thanks for the compliments.

You actually are able to share sets of buttons between workstations/ar tists. Have a look at the section 'Importing and exporting buttons' in the documentation pdf (I didn't want the video to become to long, so I only included the most important stuff). You can even import/export from your clipboard so you don't have to save out any files to disk. As of right now you can only export all your buttons at once though, so I might look into this to make it easier to share a single button. Thanks!
 
 
0 # Erwan Leroy 2016-08-25 01:56
Hey Wouter.
Did more testing last night. One feature that could be huge would be the option to append rather than replace when importing buttons.
I can easily see people wanting to share their setups, but if we have to replace our own every time it gets cumbersome.
 
 
0 # Wouter Gilsing 2016-08-25 02:02
Hey Erwan,

Totally agree, and since multiple people brought this up today, consider it done for v1.1 :-)
 
 
0 # Wouter Gilsing 2016-08-29 02:10
Hey Erwan and Daniel,

I just made version 1.1 available which appends the current set of buttons rather than replacing it when importing an archive.
 
 
0 # kire timov 2016-11-18 04:20
Quoting Wouter Gilsing:
Hey Erwan and Daniel,

I just made version 1.1 available which appends the current set of buttons rather than replacing it when importing an archive.

I hope it's possible in the new version (haven't had the chance to try it out yet) to choose, replace or replace. e.g. i sit on other artists pc who is also using w_hotbox, bud i't like to load my buttons only, and not his/hers. - that' be nice
 
 
+1 # Wouter Gilsing 2016-11-18 04:24
If you load an archive, it will append the current button set. However, you can quickly trow out the current set of buttons by going "Edit-W_hotbox- Clear-Clear Everything" (or clear a specific section).
 
 
0 # Daniel Mermelstein 2016-08-24 16:14
Never mind me... you had that feature already of course.... Great product ! Thanks Again
 
 
+1 # Adrian Sutherland 2016-08-24 16:38
I've been waiting for someone to put one of these together at a production ready level. This is awesome. Thanks for this!
 
 
+1 # Charles Taylor 2016-08-24 18:47
Yes! This looks like a game-changer. Good stuff.
 
 
+1 # jean-luc azzis 2016-08-24 20:07
this is awesome! thanks for sharing

Just a quick word of caution, when I imported the archive, it looks like it created a Python folder in the ./nuke folder and imported the presets there. The problem is that I already had a Python folder in that location and it replaced it. so I lost all the content of that folder (I had a backup so not a big deal, but I think there should be a warning if the folder already exists) .

Also quick question about the hotbox in Nuke Studio, it's not showing up in the timeline, is that a limitation?

I also wanted to use it to switch between workspaces, would that be possible?

Cheers and Thank you for making this!!
 
 
0 # Donald Strubler 2016-08-24 20:20
We ran into this same issue, where the entire directory was removed.

rmtree should be used with caution if not alerting the user
 
 
0 # Wouter Gilsing 2016-08-24 20:38
You guys are talking about the contents of the hotbox folder inside the .nuke folder right? As of right now, importing an archive indeed replaces the currently existing archive. I'm sorry if this caused any problems.

I'm planning on implementing a 'merge' archives function in a future release. Also good idea to warn the user. Thanks for the feedback
 
 
0 # jean-luc azzis 2016-08-24 20:43
No it was this folder : ~/.nuke/Python

It wasn't inside the W_hotbox folder
 
 
0 # Wouter Gilsing 2016-08-24 20:49
Well that should definitely not have happened. Did you change the 'hotbox location' in the preferences to that Python folder?
 
 
0 # jean-luc azzis 2016-08-24 20:52
yes I did.
I changed it to that location actually. but after importing the archive, the ~/.nuke/Python content was replaced with 3 folders. All, single, multiple. Even the W_hotbox was gone.
 
 
0 # Wouter Gilsing 2016-08-24 20:59
Ah I see now... Make sure to point that knob in the preferences to the W_hotbox folder, not just the folder containing that folder. So in your case make sure that knob is set to '~/.nuke/Python /W_hotbox', rather than '~./nuke/Python/').

I'll make sure this will be more clear in future releases. Thanks
 
 
0 # jean-luc azzis 2016-08-24 21:01
got it.

I have changed it now. Thanks for the quick reply!
 
 
0 # jean-luc azzis 2016-08-24 21:03
and about the Nuke Studio timeline hotbox and workspace selection? Is it possible?
 
 
0 # Wouter Gilsing 2016-08-24 21:42
Quoting jean-luc azzis:
and about the Nuke Studio timeline hotbox and workspace selection? Is it possible?


Not sure about the Nuke Studio question, as I never use it. Good idea to look into that though.

"If you can access it through Python, you can wrap it in a hotbox button". Workspaces are a bit more tricky when it comes to accessing them, but it's possible.

Try putting this in a button:

from hiero.ui import findMenuAction

findMenuAction('NameOfYourWorkspace').trigger()

Cheers!
 
 
0 # jean-luc azzis 2016-08-24 21:46
great! I'll give it a go.

Thanks!
 
 
+1 # jean-luc azzis 2016-08-25 01:49
That works perfectly, thanks!

I love this. Best plugin in a long time!!
 
 
0 # Henrik Cednert 2018-01-17 08:23
Quoting jean-luc azzis:
That works perfectly, thanks!

I love this. Best plugin in a long time!!



So are you guys saying that this actually works in Studio? Would be so amazing if it did. Huge potential for something like nS since it currently is somewhat of a pita workflow-wise. =/

This looks awesome Wouter! Makes me want to start comp again. =) The hotbox from Maya still has a warm place in my heart even though I haven't used Maya for like 10 years.
 
 
0 # Indrajeet Sisodiya 2016-08-24 22:21
Cheers! THIS IS AWESOME!
 
 
0 # kire timov 2016-08-25 02:56
Zomg nice work mate, thank you for sharing!

I found couple of bugs in your archives

first is FilterErode script:

import nuke

for i in nuke.selectedNodes():
i.knob('output').setValue('alpha')

output should be set to "channel" instead.



the second thing is with the merge node

BBox/Union dosent cycle through B/union

I couldn't figure that out..

Again thank you for sharing, such a nice tool to have
 
 
0 # Wouter Gilsing 2016-08-25 03:05
Ah, nice catch! I'll make sure they get fixed.

If you want to get the bbox one working, you can use the following code:

for i in nuke.selectedNo des():
if i.knob('bbox'). value() == 'union':
i.knob('bbox'). setValue('B')
else:
i.knob('bbox').setValue('union')

Thanks
 
 
0 # MARK PINHEIRO 2016-08-25 05:25
Blinding. Can't wait to try this. I'm under the bonnet of Nuke and Shotgun atm customising a pipeline and I'd much rather stay in the drivers seat 8)
 
 
0 # Stefan Müller 2016-08-25 09:26
Breathtaking!

Even for really simple stuff, like creating a node that doesn't have a default shortcut it's super useful and a real timesaver.
I especially liked the +1 and -1 buttons for saturation. I changed it to 0.1 however :)

One thing I noticed: The arrangement/ord er of the buttons seem kinda random. I am able to change the order in the hotbox manager, however it doesn't seem to match with the arrangement in the actual hotbox.
Is this a bug?

Cheers,
Stefan
 
 
0 # Wouter Gilsing 2016-08-25 12:26
Hey Stefan,

Thanks for the kind words and bringing up the buttons order.

It's not a bug, and I would like to refer the the bottom op page 11 in the pdf userguide :-) (comes with the download).

It basically comes down to this:

By default new buttons will be added left and right of the row alternately (rather than just putting them the the right of the last button).

I did this to take in account any muscle memory.

Imagine working with the hotbox for half a year or so, with only one button added to a nodeclass. That one button will appear right above the center (as there are no other buttons). However, after half a year we decide to add a bunch of new buttons. These buttons would have pushed our first button away. This might take a bit time to get used to, and you might find yourself searching for that one button because it's not in its usual spot anymore.

That's why I decided to make new buttons appear left and right of the row alternately. This way a button barely move when adding new buttons, unless you manually change the order in the Manager (I say 'barely' because the node will move 'half a button' when the amount of buttons in a row switches from odd to even).

Anyway, if you don't like this behavior you can disable it by turning off ‘Add new buttons to the sides’ in the preferences! That way buttons will simple appear to the right of the last button.

Hope that made it more clear,

Cheers
 
 
0 # Stefan Müller 2016-08-25 15:33
Hey Wouter,

aaah, I should've read your pdf entirely :D

Thank you for your explanation. Pretty clever, the thing with the muscle memory. It's great to have a button to change this behavior, but now it does indeed make more sense the way you intended it to be!

Cheers!
 
 
0 # Tor Andreassen 2016-08-25 10:58
This is brilliant, great work. Tested it for a few min and love it, will absolutely use this when I have doodled around with it enough to get my most used scripts up running with it. My favorite though is the simple stuff like the pre-shipped buttons you have for shuffle for example, so brilliant. Thanks for sharing this!!

The only thing I found was that it gets cropped off if you try and open it too far down in the node graph.. so you have have to move the mouse pointer a bit further up in the node graph and launch it again to see the whole menu. I'm running it on OSX. Maybe you already know of this? Would be awesome to see an update if the future where it always launches on the center of the screen, or at least don't get cropped off.

Again, absolutely killer work Wouter, thanks for sharing this tool!!
 
 
0 # Matthieu Cadet 2016-08-25 13:45
Awesome ! something I wanted to code also some years ago, finally you did it :) thanks !
 
 
0 # Wouter Gilsing 2016-08-25 14:42
Hey Tor

Thanks for the feedback, good idea. I'll add that to my to-do list as well! :)
 
 
0 # Tor Andreassen 2016-08-25 14:53
Awesome, thanks Wouter :)
 
 
+2 # Matthieu Cadet 2016-08-25 14:50
Also one advise, as your tool is becoming viral :)
put it on Github for easy issue/question/ feature tracking ;)
I would also love participate to its improvements if it's on github.
 
 
0 # Indrajeet Sisodiya 2016-08-25 15:18
Hey Wouter.

Idk if its a bug or something, but I created a delete node and it appeared at the bottom of the list "ALL" as I wanted to have the functionality to delete selected nodes. Tried to move the entry above existing entries and it seems to glitch out. I accidentally dropped it inside Coding sub menu and now when I dragged it out, it just stays there, inside the sub menu.
It would be great as a feature request if you incorporate two button under the new, delete,copy,pas te buttons, basically two arrow keys, one up and one down so pressing it would push the entry upwards or downwards and hence the button in the hotbox changes its position accordingly.

Thank you wouter for this awesome tool!
 
 
0 # Ben Warburton 2016-08-25 16:28
Great work!

One thing I noticed from a script i was launching was to do with the shortcut key. I'm planning on leaving it on the ` key but I have a problem. If a text field opens it fills the text boxes with `````````

Would it be possible to eliminate the shortcut key press after you click a hotbox button? even if you are still holding it
 
 
0 # Thomas Vu 2016-08-26 08:13
great work sir!

the shortcut key not working on nuke 10 sir (tried to change to other key also)
 
 
0 # Wouter Gilsing 2016-08-26 17:47
Would you mind sharing your operating system? Did you made sure to restart Nuke after changing the shotcut?
 
 
0 # Thomas Vu 2016-08-27 16:07
im running on win7, but its ok, i will find out some way to fix it, i install it on other computer its work what ever nuke version, reason is i had alot of script runing thats why your script not working. Anyway, thank you so much, again GREATTTT WORRKKKKK
 
 
0 # Mohan Pugaz 2016-08-26 09:05
Amazing work totally changed the way of working! .. awsome :roll:
 
 
0 # Michael Habenicht 2016-08-26 14:55
Thank you very much for this great tool and your included buttons!!!

Unfortunately on Centos 6.5 with Gnome and nuke 9.0v7 the transparency is also not working.

Also the box doesn't close any more. If I release the hotkey or click on a menu the hotbox stays. Only clicking outside of it closes it.

For the future it would be very nice to be able to define various hotbox locations through an env variable which get merged together. So there could be a write protected global studio location and a local location where an artist can store overwrites and additional buttons. Each location could also have an icon that is shown at one corner of the button so that you see wether the button comes from.
With this gizmo or plugin creators could also already include a button setup whichs location only needs to be added to the env variable to include it.

I also recommend putting it on github for easy contribution.

Best regards!
 
 
0 # Wouter Gilsing 2016-08-26 17:47
Hi Michael,

Thanks for the reply! I'm planning on including the option to use multiple locations to draw buttons from in the next release. I've been working on that last night and it seems to work now.

Sorry to hear about the problems you experience with GNOME. I'll see what I can do about that.

Cheers
 
 
0 # Wouter Gilsing 2016-08-29 02:15
Hi Michael!

I just uploaded a version 1.1 which makes it possible to add multiple repositories to load buttons from, to make the tool more suitable for a facility-wide implementation.

Unfortunately I've not been able to look into the Gnome related issues you mentioned yet.

Cheers
 
 
0 # Wouter Gilsing 2016-08-30 05:35
Version 1.2 changes to way of adding additional repositories. Rather than editing the actual Python files, you now can add them using environment variables.
 
 
0 # Michael Habenicht 2016-08-30 09:30
Hi Wouter,
thank you for your fast new versions. Additional repositories works great. I had the env variable already added myself.

The transparency seems to be a known problem simply if the window manager doesn't support it.
The other issue seems to be a problem of combinations of hot key and keyboard layout. So the default key didn't work with the german layout but the space bar and other keys work fine.

I implemented another feature which is that you do not have to click the button to execute it. Simply select it and release the hotkey and it gets executed. I find it more convenient especially when using a tablet. If you are interested in the changes, let me know!

Cheers!
 
 
0 # kire timov 2016-09-20 00:13
Quoting Michael Habenicht:
Simply select it and release the hotkey and it gets executed. I find it more convenient especially when using a tablet. If you are interested in the changes, let me know!

Cheers!


I am interested, how can i change the behavior to work like that?
 
 
0 # Claus Steinmassl 2016-08-26 15:25
Super awesome and helpful tool! Thanks very much for sharing! :)

I've got two feature requests:

1: I have a problem with all scripts, that pop up a user input since that input is flooded with the shortcut I'm pressing to open the hotbox. Maybe it's possible to catch that 'key down' event, until the shortcut is released? But maybe this could lead to other problems, when the shortcut is used for something else. e.g. right now I use the space bar as hotkey, which works great for opening the hotbox and toggling the window fullscreen! Maybe you've got a solution for this?

2: Could you add that kind of separated-by-da shes-list-thing to the single mode as well? e.g. I want certain functions to be available for roto & rotopaint nodes. Right now I've got to copy them, since the Multiple-mode would require both to be selected, but I just want to share the same functions across different classes. So maybe instead of defining 'Roto' and 'RotoPaint' with the same functions I wish do something like 'Roto-RotoPaint ' in Single-mode. I hope this makes sense. :)
 
 
0 # Wouter Gilsing 2016-08-27 05:49
Heey Claus,

Thanks for the reply. I totally agree with you about point 1. I'm using the hotbox myself a lot, and this is one of the annoying things that could use a bit of polishing. I'm currently working on a v1.1 release (should be online around the end of the weekend/monday) . I'll see what I can do, but can't guarantee this will make it into it.

2) I actually 've though about this a long time, and at one point this was the way it worked. However I found it starting to get a little messy, because you got so many different classes.

For example we have node A,B and C. There's a button I'd like to have shown when any of those are selected, so I add a class called ABC. However I want to add buttons that show up for them individually as well, so I add class A, class B and class C separately. Then I get this idea for a button that is really cool for A and C but doesn't really make sense for B, so I add another class called AC. Now after working with the buttons for a while I get an idea of how to improve one of the existing buttons assigned to class A. Rather than simply going to class A and changing the button, I now have to go look for it as it might be stored in A, AC, ABC, AG or AZ etc. You see what I'm getting at? I felt it started to get messy, and it kinda lost it's nice overview. Besides that the code got more complex and I was afraid the hotbox might lose speed. Therefore I decided to go with an 'one class only' approach for the single mode.

I hope you do understand, thanks for sharing ideas though, much appreciated!
 
 
0 # Claus Steinmassl 2016-08-28 10:18
1) Looking forward to a solution for this, but no hurry! ;)

2) Yeah, I get it. Your decision makes totally sense, to avoid a big mess.
 
 
0 # Tor Andreassen 2016-08-27 11:13
Hi Wouter,

Had another spin with this to test it on linux and ran into a few issues.

Running this on OSX worked perfectly fine and did not give these problems.

CENTOS 6.2, gnome 2.28.2, Nuke8.0v6 gave these issues:

1) it seems to overwrite the nuke preferences, or delete them. You can add them back but every new session when the W_hotbox is installed, nuke does not seem to want to pick up the saved preferences (like node colors, pipe thickness, dot size and so on).
I tried to save out the preference file and copy it back into the .nuke location after installing your tool, but that did not work.

2) on removing the tool, it leave the icons path still in its own tab in the preferences (the tab is renamed to the default name 'User') No error messages show up, but its still there even if the 'delete preferences' button is clicked and all hotboxfiles is removed from the .nuke location. It seems like the uninstall process removes everything besides the icon path, and therefore creates a default tab called ('User') where the icon path remains since it was not fully removed. (my guess)

3) Transparency issues. When checking the button called 'disable transparency' it turns on the transparency, the opposite of what I would expect. On OSX is does the inverted right action.
Also another issue on linux is that it does not seem to remember the transparency checkbox value, so for every new session of nuke, I have to go and check the box again.

Would be great to hear if you have had similar issues and possibly have a fix for it. Would love to be able to use this at work, and absolutely will if you have a fix for the preference problems.

Thanks again for sharing your work on nukepedia :)
 
 
0 # Wouter Gilsing 2016-08-27 16:17
Hmmm, that doens't sound very good at all... I'm not sure how well the tool works on Nuke 8 btw, (I'm actually kinda surprised it didnt trow an error at startup in the first place).

Thanks for the detailed description, I'll definitely have a look at it! I'm planning on releasing a v1.1 later this weekend/earlier next week, but I can't promise anything regarding the Gnome related bugs (so far I've only been able to test the tool in KDE environments).
 
 
0 # Tor Andreassen 2016-08-28 03:18
Alright, good to know. Was it developed to work on 10 also? We currently don't use 10 yet, but good to know for when we do switch over. I'll see if I'm maybe able to change environments to KDE.

That could explain why the script was not acting up on OSX, as I'm running Nuke9 there.

Thanks for the quick reply.
 
 
0 # Wouter Gilsing 2016-08-28 03:23
Yep, tested and working on both 9 and 10:) I'll include that in the User Guide as well, as that is currently missing. Cheers

You are right about the 'iconLocation' knob remaining after clicking 'delete' preferences though. That will be fixed in v1.1.
 
 
0 # Tor Andreassen 2016-08-28 03:26
Great, thanks :)
 
 
0 # Wouter Gilsing 2016-08-29 02:54
Just uploaded v1.1. Should be fixed now!
 
 
0 # Tor Andreassen 2016-08-29 12:16
Awesome, thanks Wouter!
 
 
0 # Tor Andreassen 2016-08-29 13:56
Quoting Wouter Gilsing:
Should be fixed now!


Tried installing and removing the tool again, to test it. (on OSX nuke9).

Seems that it removes the icon path. but the Other tab stll has an empty User tab there.

Any way you could fix it so it removes the tab as well, so that it restores it to the vanilla nuke state before the tool was installed?

Thanks!
 
 
0 # Wouter Gilsing 2016-08-29 14:25
Ah the thing is that User tab was never really an (intended) part of the hotbox. It gets created by default by Nuke when you try too add something to the preferences without creating a new tab first.

There's quite a possibility that people are actually using a tab called User in their preferences to store custom knobs, so forcing it to delete is risky as it might cause problems for some.

Since the source of the problem is fixed (no new User tab will be created when deleting the preferences) I think it's easiest/safest to manually clean up the (harmless) mess that was caused by it.

With Nuke closed, open your preference file in a text editor (~/.nuke/prefer ences10.0.nk or 9 ofc) and look for this line:

addUserKnob {20 User}

Remove it, save, start Nuke.

Sorry for the inconvenience and as always thanks for reporting back to me:)
 
 
0 # Tor Andreassen 2016-08-29 14:50
Yes you are right, better leave it be then. I was not aware that it was stored in the preference file - that's an easy enough fix. Thanks for that!

Also, very minor thing; for your tools-bundle. Had a look at the shuffle python scripts. You might want to add this on the following: alpha, solid alpha, red, green, and blue:

i.knob('in').setValue('rgba')

If you push the Depth shuffle option, the 'in' value gets changed to 'depth', and pressing your current red shuffle or any of the other's mentioned above, after having pressed depth, leaves the 'in' value to depth, so you might want to change it back to rgba so the shuffle works as intended if you jump between depth and other shuffle types.

As said, very minor, but though I'd mention it.

Cheers for your quick updates. Exited to start using this in production when we swap over to nuke10.
 
 
0 # Wouter Gilsing 2016-08-30 05:33
Hey, I improved some stuff concerning adding extra repositories (which work with environment variables now, yay). I just uploaded this as v1.2.

While on it, I decided to change the shuffle scripts you mentioned as well, good catch!
 
 
0 # Tor Andreassen 2016-08-30 12:16
Awesome, more studio friendly!
 
 
0 # Adrian Pueyo 2016-08-27 20:49
This is great!!!!!
 
 
0 # Claus Steinmassl 2016-08-29 12:26
I think, I got just another feature request... :)

Could you add a global setting for font size, family etc. to the nuke prefs? I know I can adjust individual buttons, but it would be nice to have a global setting for all buttons, so I can adjust it independent of my current global nuke settings.
 
 
0 # Wouter Gilsing 2016-09-02 20:28
Hey Claus,

I used to have this built in for quite some time before I released the tool. However, every now and then, the font knob would randomly glitch out, throw an error and reset. So I decided just to remove it completely.

However, now I've seen the hotbox in action on a variety of operating systems, resolutions etc, I definitely see the need for a font controller.

I played around with it a little bit and added a knob that allows you to change the font size. The font family will be matched to the rest of the Nuke interface.

It will be available when I release version 1.3! Thanks for the input.
 
 
0 # Claus Steinmassl 2016-09-05 12:03
Great! Thank you very much for your effort!
 
 
0 # Wouter Gilsing 2016-09-06 15:41
No worries! I just uploaded v1.3, which has the font size controller.
 
 
0 # li zhaohui 2016-08-30 15:59
How to add the existing script button? For example: roto_to_track ()
 
 
0 # Wouter Gilsing 2016-08-30 16:03
Well you could do this two ways.

1) Copy the whole script into a new button. Make sure to put the function call at the end.

2) put an import statement at the top of your button to import that module, and call the function at the end. For example:

import roto_to_track
roto_to_track.roto_to_track ()
 
 
0 # li zhaohui 2016-08-30 17:39
Thank you
So a new repository Adding, windows how to operate it? Whether there are specific instructions?
 
 
0 # li zhaohui 2016-08-30 17:54
First methods are feasible.
The second method is not successful! Do not know why? I don't want to put the whole script in!
 
 
0 # Wouter Gilsing 2016-08-30 18:18
Try running the code from the script editor and look at the error it returns. Also make sure the script is part of the your nuke plugin path.
 
 
0 # li zhaohui 2016-08-30 18:22
All right!
But I don't know how (a new repository Adding)
 
 
0 # Wouter Gilsing 2016-08-30 18:25
Have a look at page 13 of the user guide.
 
 
0 # li zhaohui 2016-08-30 18:38
Specific how to do it? In the windows system? I added the environment variable as follows:
C:\tmp\n2; NUKE_HOTBOX_REPO_NAME=C:\tmp\n1
C:\tmp\p2; NUKE_HOTBOX_REPO_PATHS=C:\tmp\p1
I created these folders, but still don't display the menu?
 
 
0 # Wouter Gilsing 2016-08-30 19:25
Add them like this:

W_HOTBOX_REPO_NAME=name1;name2
W_HOTBOX_REPO_PATHS=C:\tmp\p1;C:\tmp\p2

Instead of name1 and name2 use description of your repositories you want to add. Like SHOW or FACILITY.
 
 
0 # Vadim Samusenko 2016-09-05 12:20
Hey, great tool, seems to work perfectly for everyone.

But in my case, neither any of the buttons in the hotbox manager related to adding a class or a button, not the import feature doesn't work. The buttons are just not leading to any action after being pushed, import feature opens up the file browser, I navigate to the .hotbox bundle, click import and nothing happens, browser closes and finale.

any ideas ?

OS X El Capitan, NukeX 10.1
 
 
0 # li zhaohui 2016-09-05 15:23
This version does not automatically create a Library folder. So import library is not successful. To manually set up before you can.
 
 
0 # Vadim Samusenko 2016-09-05 16:36
Can you please explain what should I do step by step ? I don't really get what additional stuff and where should I create
 
 
0 # Wouter Gilsing 2016-09-06 15:08
Hey, I just uploaded v1.3. Let me now if that fixes the problem for you!
 
 
0 # Vadim Samusenko 2016-09-09 10:05
Quoting Wouter Gilsing:
Hey, I just uploaded v1.3. Let me now if that fixes the problem for you!

Yeah, everything works great! Thank you
 
 
0 # li zhaohui 2016-09-06 18:11
After the establishment of the repository in Explorwr reveal does not play a role
 
 
0 # Wouter Gilsing 2016-09-07 00:49
Meh, on some very rare occasions it can come in handy though. I originally used it a lot while I was building the tool. Since I did not really have something better to put in its place I just left it there.
 
 
0 # li zhaohui 2016-09-06 18:14
In addition, I think for the average user can hide in reveal Explorwr and Manager hotbox button
 
 
0 # Jung Keun Kim 2016-09-07 07:02
need help here~ i want to add a button (Cache -> Localization -> Force Update -> Selected) in read node.
i don't know what python code i add to hotbox manager..
could you help me?

by the way you are super awesome!!
 
 
0 # Wouter Gilsing 2016-09-07 14:01
Heey! Have a go with this code:

nuke.localization.forceUpdateSelectedNodes()

I agree that whole new localization section is not really the best documented part of Nuke 10 when it comes to python...
 
 
0 # li zhaohui 2016-09-07 15:29
W_HOTBOX_REPO_NAME=name1;name2
W_HOTBOX_REPO_PATHS=C:\tmp\p1;C:\tmp\p2
 
 
0 # Wouter Gilsing 2016-09-07 17:30
These are the environment variables you can use to define additional repositories...
 
 
0 # li zhaohui 2016-09-07 18:07
W_HOTBOX_REPO_NAME=name1;name2
W_HOTBOX_REPO_PATHS=C:\tmp\name1;C:\tmp\name2
 
 
0 # Wouter Gilsing 2016-09-07 18:09
Not too sure what you are trying to say here...
 
 
0 # li zhaohui 2016-09-07 18:28
W_HOTBOX_REPO_N AME = name 1, name 2
W_HOTBOX_REPO_PATHS = TMP C:\ \ name 1; TMP C:\ directory \ NAME2
Variable names are not (NUKE_HOTBOX_RE PO_NAME) and (NUKE_HOTBOX_RE PO_PATHS) but (W_HOTBOX_REPO_N AME) and (W_HOTBOX_REPO_ PATHS)
 
 
0 # Wouter Gilsing 2016-09-07 18:32
Ah you are right. I see I put both in the userguide. Ill correct that for the next release, thanks.
 
 
0 # Siva S 2016-09-07 13:00
Thanks Wouter Gilsin! I think this tool will hit the maximum downloads soon... Great job!
 
 
0 # Simon Jokuschies 2016-09-09 06:08
W_Hotbox seems to overwrite the preferences.nk file in the nuke home dir. Whenever I change something in my settings and restart nuke the changes won't be applied. As soon as I uninstall W_Hotbox everything works fine. My main operating system is MacOSX using Nuke8,9 and 10. Has anyone noticed this behaviour on Windows and Linux as well?
 
 
0 # Wouter Gilsing 2016-09-09 06:15
Interesting. I know the tool isn't working with Nuke 8.

However, I haven't heard of any problems considering the preferences on Nuke 9 or 10 in combination with OSX. What version of OSX are you running?
 
 
0 # Simon Jokuschies 2016-09-09 09:45
I'm running Maverics. When I hit the ok button to save the current settings they don't get written to the preferences.nk file. Does W_Hotbox maybe overwrite some nuke internal functionality?
 
 
0 # Wouter Gilsing 2016-09-09 15:35
It does not overwrite any internal functionality. I'll have a look at this ASAP though! Thanks for reporting.
 
 
0 # Andrew Mumford 2016-09-15 19:03
Has anyone had this working using the Wacom Remote puck or the Radial Menu ?
 
 
0 # Wouter Gilsing 2016-09-17 14:08
Hey Andrew.

I'm not to familiar with the Wacom Radial Menu nor the remote puck you mentioned. Would you like the hotbox to launch when clicking one of your Wacom buttons? Or do you want the option to have a 'launch hotbox' entry in your radial menu?

I'm still using my Intuos3 so I dont have access to any of those features, however, it was fairly easy to just bind the shortcut used for the hotbox as a keystroke to one of the wacoms physical buttons. A expected, the hotbox would now appear every time I push that button.
 
 
0 # kire timov 2016-09-27 09:07
Hey mate now when my script is working: http://www.nukepedia.com/python/misc/bugsbunny_motionblur_toggle_v1/finishdown?miv=2&mjv=1

i tried running it in the hotbox.
I couldn't make it work in there..

First i tried at the end of the script to call the main function.. than nothing happens (that was the case with other scripts i had where they had functions inside) - the code is not being called

Secondly , i removed the main function and run the code directly. (but i still have other functions that are being called from the main function)..The code acts strange, not doing what is expected.. on the contrary i tested the very same cody (copy/paste) from hotbox to the script edditor and run my script from there.. it works...
but not as expected in the hotbox. Why is that?
Is it because that hotbox cannot call functions like that?

Thanks
I am using v1 hotbox at work though, on CentOS
 
 
0 # Wouter Gilsing 2016-09-30 03:30
Just had a quick look. Since it's quite a big script, the cleanest/easies t way is to store the script somewhere on disk and to call a method from that module in the button (rather than copy/pasting the whole script into a button).

Seems to work fine for me:

Code:
import smartMotionblurSwitch
smartMotionblurSwitch.smartMotionblurSwitch()
 
 
0 # kire timov 2016-10-01 20:35
Quoting Wouter Gilsing:
Just had a quick look. Since it's quite a big script, the cleanest/easiest way is to store the script somewhere on disk and to call a method from that module in the button (rather than copy/pasting the whole script into a button).

Seems to work fine for me:
Code:
import smartMotionblurSwitch
smartMotionblurSwitch.smartMotionblurSwitch()


It works for me too, thanks. Just thought to let you know, whenever i try to call definitions directly from the hotbox they don't work, try something like getValue or something, and call that definition in the hotbox...

Btw is there anyway to customize the positions of the buttons?
 
 
0 # Juha Takabe 2016-09-28 07:29
Very cool!

Would be great to have some guidance how to create Backdrop around selected nodes as usual, but with custom Label on it with big font size and custom color. Some kind of backdrop preset to keep consistent colors for specific tasks.

Cheers!
 
 
0 # Wouter Gilsing 2016-09-28 14:06
Backdrop are a little bit special, as they use some extra scripts to make sure they end up wrapped nicely around your selection. That code is already set up though, and stored in a python module called 'nukescipts'.

This script creates a green backdrop, with the text 'Key' and a slightly bigger font.

Code:
import nukescripts

backdropNode = nukescripts.autoBackdrop()

backdropNode.knob('label').setValue('Key')
backdropNode.knob('note_font_size').setValue(50)
backdropNode.knob('tile_color').setValue(8323327)
 
 
0 # Serhat Baykal 2017-03-02 10:28
Hello,a really good job you have done with that tool !
But I have some trouble with 'import nukescripts'.

I try to make a script to get a command for launch a render through a console.

here my script ( it works through script editor ) :

###

import nukescripts

class MakeRenderLine(nukescripts.PythonPanel):
def __init__(self): nukescripts.Pyt honPanel.__init __(self, 'Render multi job')
self.SCRIPT = nuke.Root().nam e()
self.NUKEXE = nuke.env['Execu tablePath']

self.fRange = nuke.String_Kno b('fRange', 'Render Range', '%s-%s' % (nuke.root().fi rstFrame(), nuke.root().las tFrame())) self.addKnob(self.fRange)

def main(self):
nukeToRender = nuke.selectedNo de()['name'].ge tValue() first_frame = int(self.fRange.getValue().split('-')[0])
last_frame = int(self.fRange.getValue().split('-')[1])
cmd = r'"{0}" -t -V -x -F {1}-{2} -X {RN} {3}'.format(sel f.NUKEXE, first_frame, last_frame, self.SCRIPT, RN=nukeToRender)
print cmd nuke.message("\ n %s \n" % cmd)
def knobChanged(sel f, knob): if knob.name() == "OK": self.main()

MRL = MakeRenderLine()
MRL.showModalDialog()

###

When I try to use it I get :
Quote:
W_HOTBOX ERROR: Single/Write/Get render line - line 6: NameError: global name 'nukescripts' is not defined
 
 
0 # Wouter Gilsing 2017-03-08 10:38
Hi Serhat,

Would you mind emailing me the code? Looks like the indentation got lost, so its a bit hard to read at the moment.

Two things yoy could try in the mean time:

- save the script as a module, and try importing and calling that module from the hotbox button

- try added the 'import nukescript' statement right before you need it (instead of at the top of the script)
 
 
0 # Sri kanth 2016-10-03 10:06
Awesome! Really Great job!
 
 
0 # Vik Roni 2016-10-11 11:28
Could you please change the behavior of hotbox script so it could append its preferences in nuke's preference file instead of replacing contents of preference file on each startup?
 
 
0 # Wouter Gilsing 2016-10-11 11:31
Hi Vik,

The preference file shouldn't be replaced on every start up. Could you specify which version of Nuke and which OS you're running?
 
 
0 # Vik Roni 2016-10-13 09:52
Nuke 8.0v6, OS Windows 7
 
 
0 # Wouter Gilsing 2016-10-14 12:16
Yea, as stated earlier v8 is not supported, so I can't guarantee it will run without problem using that version.
 
 
0 # sridharan K 2016-10-24 08:52
Superrrr Awesome man! Wouter Gilsing
You've brought tool set thinking to scripts and menus. :D :lol:
 
 
0 # Tamás Szabó 2016-11-10 11:50
It's fantastic, very helpful and it's working! Thank You so much!
 
 
0 # jiwoong park 2016-11-16 14:11
How can I use in Group? 'nuke.selectedN odes' not working
 
 
0 # Wouter Gilsing 2016-11-16 14:17
Hey, I was actually working on that while you posted this comment! So yea, that's not yet working at the moment unfortunately.. . I hope to have it fixed for version 1.5.
 
 
+2 # Wouter Gilsing 2016-11-16 14:33
Nevermind, looks like it was easier than expected! So the fix will most likely make it into v1.4 which I will release later today.

EDIT:

v1.4 is available for download now!
 
 
0 # jiwoong park 2016-11-16 15:22
Wow! Awesome!! thank you
 
 
0 # PAUL FLANAGAN 2016-11-23 21:27
very cool! thank you.
 
 
0 # Sokratis Synitos 2016-12-01 11:23
Hello,

I am using NukeX 9.0v7 but I can't get the shortcut key to work.
I tried to change it as well but didn't get anything.
It also made File and Edit menu items switch places for some reason. I can see hotbox under edit menu
 
 
0 # Wouter Gilsing 2016-12-01 11:37
Hey Sokratis,

Could you specify which OS + version you're running and what keyboard layout you're using? Thanks
 
 
0 # Sokratis Synitos 2016-12-01 11:42
Hi Wouter,

I am on NukeX 9.0v7 on a CentOS 6.5 . My keyboard has a UK layout.

Thanks
 
 
0 # Wouter Gilsing 2016-12-01 11:46
Did you try changing the shortcut to something else and then restarting Nuke?
 
 
0 # Sokratis Synitos 2016-12-01 11:49
I did change to three different keys and restarted everytime but it didn't do anything
 
 
0 # Claus Steinmassl 2016-12-07 10:53
Hey Wouter,

I've got a strange problem: The buttons inside the hotbox manager are gone. See the screenshot here:
https://s11.postimg.org/ee9csc36r/hotbox.jpg

I was on vacation for one week. A freelancer used my machine in that time. Don't know what happend during that week. Since then I'm missing those buttons.... :(

I did a fresh install of the latest version, but that didn't help. Any ideas why this is happening?

I'm running NukeX10.0v5 on Win7.

Thanks!
 
 
0 # Wouter Gilsing 2016-12-07 11:00
Hey Claus,

this happens when the hotbox manager fails to locate the icon files. Have a look in the preferences (preferences - W_hotbox) and make sure the 'icon location'-knob is pointing to the folder containing the hotbox icons. By default this is set to '~/.nuke/icons/W_hotbox/'.

Hope that fixes it for you
 
 
0 # Claus Steinmassl 2016-12-07 11:15
Thanks very much, that solved the issue! :)

I think the freelancer hit the 'restore defaults' button on the nuke preferences. That caused another problem with hotbox: Nuke wouldn't start anymore due to an error in the prefs. See the screenshot:
https://s18.postimg.org/afwcya949/hotbox2.jpg

Therefore I deleted all hotbox prefes from the nuke preference file. That fixed the start up issue, since hotbox recreated the prefs. But I think I then forgot to set the icons path right agin, since it's located in a custom path here.

Thanks very much for your help! :)
 
 
0 # Wouter Gilsing 2016-12-07 11:59
Ah good catch. I wasnt aware of that error. I'll make sure that's fixed in the next version!

Thanks

EDIT:

This should be fixed in v1.5
 
 
0 # Daniel Mellitz 2016-12-07 20:32
Hot Box looks pretty cool but there's a bit of an issue related to the trigger key. Currently you have it set up to hold the key to make the menus appear and they disappear upon release.

The issue is that if you select an option that has a dialogue box with text entry you end up typing a bunch of tildas into the text field on selection because you are likely still holding in the tilda key.

Is there a reason not to have the option to make the hot key a toggle trigger rather than a hold do reveal? For me I think I'd rather tap the key and then make a selection and have it go away at that point.

I realize others would prefer the original behavior. Can you add that as a preference?

Dan
 
 
0 # Wouter Gilsing 2016-12-07 20:56
Hey Dan,

I can totally see why some people would prefer it that way. I'll look into it.

Thanks
 
 
0 # Wouter Gilsing 2016-12-12 12:18
Hey Dan,

I just made v1.5 available. This version has an option to launch the Hotbox with a single tap, rather than having to press and hold the hotkey.

You can switch to this mode by setting the 'Launch mode' knob in the preferences to 'Single Tap'.

Let me know how if you run into any problems!
 
 
0 # Daniel Mellitz 2016-12-13 01:58
Sweet! Thanks for that. I'll let you know if I see any issues.
 
 
0 # Tor Andreassen 2016-12-12 13:19
Hey Wouter,
Just started using nuke 10, so I can finally start using the hotbox.
Loving it, it saves so much time! I have a question though..

I was trying to find a way to change where the buttons show up in the hotbox menu, dragging them up or down in the list didn't seem to do it. is there a way to change the order of the buttons?

Thanks!
 
 
0 # Wouter Gilsing 2016-12-12 13:29
Hey Tor,
glad to hear that:D

Hmm yea, the drag/drop functionality definitively needs some work, I already spend quite a fair amount of time on it but it still only works occasionally, unfortunately. So that's on the to-do list.

In the mean time... Nasty work around: you could order your buttons by hand. Open the folder containing the button files (open an instance of the Hotbox and choose 'Open in Explorer/Finder /File Browser'). Then just rename the files as you like them to be ordered (001.py for the first button, 002.py for the second etc etc).

Cheers
 
 
0 # Tor Andreassen 2016-12-12 22:14
Hey Wouter,

Awesome, thanks for the update and workaround, I will give that a go,

Thanks
 
 
0 # Adrian Pueyo 2016-12-13 02:02
Hey Wouter,

Thanks for the updates, this gets better and better.

With the new Launch Mode dropdown I would still suggest a 'no-click mode' feature, where without any mouse click the script would be launched on tap release while hovering the mouse over a button; that would make navigation faster, especially on laptop touchpads. On that mode submenus could be accesed after a moment holding the mouse over a button or something. Also with that mode there wouldn't be any key or mouse button being pressed in the moment of the script execution which could be useful for some scripts.

Thanks!
Adrian
 
 
0 # Wouter Gilsing 2016-12-13 12:11
Good point, hadn't thought of that.Thanks for bringing it up, I'll look into it,

Cheers
 
 
0 # M Frank 2016-12-14 18:23
Hi Wouter,

Have you run into any issues calling outside modules/dialogs ? We are trying to call a module that pops open another dialog and it closes immediately. Not sure if there is a threading issue with how the class was written.

Thanks,
Mike
 
 
0 # Wouter Gilsing 2016-12-14 20:34
Hi Mike,

I've not experienced any problems with external modules nor dialogs. Actually, the 'Hotbox Manager' is quite a good example of a (Qt) dialog saved as an external module, called from a hotbox button.

which version of Nuke and what kind of OS? Also, what kind of panels are you using (Simple Nuke Panes, Python Panels or Qt Widgets)?

Obviously make sure to import the external modules at the top of the button-script.

If you want me to have a look (and you're allowed to), you can email me a sample script so I can help you troubleshoot.

Thanks
 
 
0 # sam alessandri 2016-12-19 12:19
Hi Wouter

Had this running fine..then did a system rebuild. Mac os 10/9/5.
I installed all good and can see the hotbox manager come up when i press it. I cant import my old library..or your one that is supplied...it just remains empty the library...any ideas?

ty
 
 
+2 # Wouter Gilsing 2016-12-19 12:26
Hi Sam,

That's unfortunate... Does Nuke print any error messages upon importing an archive?

Make sure your 'Hotbox location' knob in the preferences is pointing to the Hotbox folder containing the 'Single', 'Multiple' and 'All'-folders. By default this is set to '~/.nuke/W_hotbox/'.

If that's not the case and the archive is still not importing, you can restore the archive manually. Rename your archive file for somithing.hotbo x to something.tar and unpack the tar. This should give you three folders ('Single', 'Multiple' and 'All'). Place those in the W_hotbox folder and you should be good to go.
 
 
0 # sam alessandri 2016-12-21 07:33
Ill check all these and get back :) thanks for following up.
 
 
0 # sam alessandri 2016-12-21 11:35
Hi all up and running again :) thanks Wouter
 
 
0 # Fabian Jimenez 2017-01-13 20:00
Hi Wouter! Love your tool. It's an incredible time saver and I've been using it every day for the last month on production. Just need some advice...I'm trying create a shortcut in the hotbox "All" menu for popping the color picker("tile_co lor") window for any node. The shortcut is Ctrl+Shift+C and the code that works in the script editor is "nukescripts.co lor.nodes(). When adding to hotbox script editor...doesn' t seem to work. I get this error msg: W_HOTBOX ERROR: W_hotbox/ALL/Co lorPicker - line 2:
NameError: name 'nukescripts' is not defined. I have this same error w/other basic shortcuts as well from time to time. I'm a newbie when it comes to python so when you get a chance would love to know the way around this. THanks again for your awesome tool.
 
 
0 # Fabian Jimenez 2017-01-13 20:04
forgot to mention I'm currently on nuke10.0 v1 on windows
 
 
0 # jean-luc azzis 2017-01-13 21:08
you need to add an extra line at the beginning. so it should looks like that:

import nukescripts

nukescripts.color.nodes()
 
 
0 # Wouter Gilsing 2017-01-13 21:43
Hi Fabian, thanks for the compliments, glad you like it:)

As Jean-Luc just pointed out correctly you have to import the module first, whenever you use an external module (like nukescripts).

Cheers
 
 
0 # Fabian Jimenez 2017-01-13 23:33
Thanks guys! Worked like a charm ;)
 
 
0 # Peter Jansen 2017-01-18 04:08
I love this! Works perfectly here, just spent an hour playing with it and writing little scripts for it.

Coming from Maya I was wondering if the Maya interaction could be replicated closer? I never use right click in the node graph, so I'd happily replace the node menu that comes up with the hotbox. And ideally a mode where the action is taken upon release of the key/right click.

Cheers
 
 
+1 # Wouter Gilsing 2017-01-18 07:12
Hi Peter, thanks!:)

I actually got the 'execute without click'-thing working, so that will definitely make it's way into the next version.

As for the right-click, that's currently not possible unfortunately. Alternatively, you can map the shortcut to the spacebar though, to mimic Maya closer (use 'space' in the shortcut entry of the preferences)?

Cheers
 
 
+3 # Paul Boots 2017-02-04 14:32
Wow Wouter!
Just discovered you made this, really cool
Go Wouter Go!
 
 
0 # Wouter Gilsing 2017-02-05 18:31
Haha, thanks Paul! Good to see you here btw :-)
 
 
0 # Claus Steinmassl 2017-02-15 14:20
Hey Wouter,

I would like to request a feature for something that I just came across:
I have a script, which I would like to appear whenever I have a ParticleEmitter and ANY other class selected. Right now I can't do this, since I must specify the other classes. So I would like to do something like ParticleEmitter -* instead of ParticleEmitter -Class1-Class2 etc.
When I tried it that way, an error occured saying the syntax for the filename was wrong.
Would be great to have this option! :)

PS: I know I can have scripts appear for EVERY class, but I would like to limit this so they only appear when those classes named are within the selection.
 
 
0 # Wouter Gilsing 2017-02-15 14:26
Hi Claus,

I'm actually working on something like this! So I hope to get this out in the next update (it's taking a bit longer this time, but 1.6 will be a pretty big upgrade).

Cheers
 
 
0 # Claus Steinmassl 2017-02-15 15:42
Awesome! Looking forward to the next version! :)
 
 
0 # Andrew Mumford 2017-02-15 20:37
Hi Wouter thx againg for this awesome tool,

I'm stuck in the situation where,

I have a 4K UHD Monitor = Good
I'm using Nuke which relies on an old versio of QT = Bad

Consequently I'm upping my UI font size so I don't go blind from suinting in the first hour of the day and a lot of W_Hotbox's font labels get cutoff.

Is there a way I can "tweak" W_Hotbox to either/or scale the default Button size or the font size ?

Thx again
 
 
0 # Wouter Gilsing 2017-02-15 21:04
Hi Andrew,

There's an option in Nuke's preferences that allows you to change the font size of the hotbox buttons ('hotboxFontSiz e'). V1.6 will feature a similar function for the manager's scripteditor.

Hope that helps!
 
 
0 # Sven Akelian 2017-02-20 14:09
Really great idea.
For some reason I'm having errors while making categories where it deletes other buttons.
Maybe it's because I'm trying to style them HTML way (which works). Do you think that is the reason I'm having strange behaviour ? What would you suggest to style menu items then (mainly adding text colors)?

Thanks a lot
 
 
0 # Wouter Gilsing 2017-02-20 14:14
Hi Sven,

Would you be able to write a little description of which buttons you have, what there styling is, and when exactly the error occures? That way I can try to replicate and fix it. Also, which version of Nuke + operating system are you using?

If you feel it's easier, you could drop me an email as well.

Cheers
 
 
0 # Sven Akelian 2017-02-20 14:20
Edti>W_Hotbox>Repair
Seems to fix the problem
 
 
0 # Wouter Gilsing 2017-02-20 15:42
Haha, great to hear that repair function actually got rid of a problem:)
 
 
0 # Siddharth Saxena 2017-02-26 08:12
Hey Wouter,

Thanks for the updates, this gets better and better.

Can u please tell me how can i write a python code for all the selected read nodes to be changed to "start at 1001"
 
 
+1 # Wouter Gilsing 2017-02-26 08:24
Hi Siddharth,

In order to change the read node to start on frame 1001, you will have to change two knobs:

- frame_mode: the dropdown that should be changed from its default 'Expression' to 'Start at'
- frame: the text field next to the dropwdown, that should be set to 1001. (Note that its a textfield, so it requires a string, not an integer. Some make sure to put some ' ' around the framenumber)

Since you want the to affect all the selected reads nodes (rather than just one) you need to put it in a loop:

for node in nuke.selectedNodes():
----node.knob('frame_mode').setValue('start at')
----node.knob('frame').setValue('1001')

(Hmm, looks like the indentation was stripped from my comment. So I used - (instead of spaces). Make sure the replace those in order to get the code working)

Simply add that as a button to your read class, and you should be good to go!

Hope that helped
 
 
0 # Siddharth Saxena 2017-02-26 08:52
It Worked, many many thanks for ur help.
In addition to this please tell me what if i have to write if i want nuke to ask for which frame no. i want to start at.

Thanks. :-)
 
 
+1 # Wouter Gilsing 2017-02-26 09:12
You could use nuke.getInput() to generate a popup menu asking for a value.

In that case the code would be something like this:

#ask for start frame
startFrame = nuke.getInput(' Start at frame...')

#set knobs
if startFrame:
----for node in nuke.selectedNodes():
--------node.knob('frame_mode').setValue('start at')
--------node.knob('frame').setValue(startFrame)


Note that, if keep pressing the hotbox shortcut, this might float the textfield of the popup. I'm working on that.
 
 
0 # Tor Andreassen 2017-04-18 03:20
Hi Wouter,

Love this tool, but I've come across a potential bug that makes it hard to add buttons.

Running nuke on linux, Nuke version: 10.0v4

The buttons in the hotbox manager (the ones allow you to add more custom buttons), the plus icon button and all that is gone. there should be 3 icons on the left side of the class list, and 6 buttons on the right side of that. They are not present anymore.

I tried removing the tool to reinstall it, but the same issue is still present.. Have you had this problem? or could you possibly run a test on that nuke version to see if you're getting the same issue? Would appreciate it if you had some time to look into that. Thanks again for the awesome work you're sharing.
 
 
0 # Wouter Gilsing 2017-04-18 06:39
Hi Tor,

Sounds like the manager is unable to find the icons. Can you double check that the 'icons location' (Preferences/Ot her/W_hotbox) is pointing to the correct folder, and that the icons are actually present?

Have you tried clearing the (hotbox related) preferences? There's a button in the preferences labeled 'delete preferences'. If you click that, exit the preferences panel by clicking the 'cancel' button and than restarting Nuke that should reset the hotbox related preferences.

This will reset to default, so make sure your 'icon location' knob is pointing to the right folder after restarting again.

Hope that solved it!
 
 
0 # Tor Andreassen 2017-04-18 09:58
Hah, thanks, that was it. sorry for bothering you with such a simple fix, should have checked that first.

Thanks Wouter!
 
 
0 # Wouter Gilsing 2017-04-18 13:15
Hehe, no worries, I quite prefer the simpler fixes;)
 
 
0 # Simon Lawson 2017-04-27 12:30
Hi Wouter
Hotbox is a great tool, node contextual commands is very innovative and useful.
Any news on when your going to release a new iteration and what changes to expect?
I personally think Maya has the best pop-up menu's in terms of set-up and functionality, any chance the w-hotbox is going to move closer towards it?
 
 
0 # Wouter Gilsing 2017-04-27 13:36
Hi Simon,

Thanks for the kind words, glad you like it:)

I'm currently finishing up 1.6 (took me a lot longer than expected, blame crunch time at work I guess haha). I'm pretty confident to say this will be the biggest update since the release though. I'm currently in the progress of documenting all the changes and updating the User Guide.

Some of it's features:

- Color swatches in the manager to colorize buttons/text.
- Templates (Quickly store/access template code).
- Auto save.
- Tooltips in the manager.
- Fixed transparency issues on Linux.
- Rewrote several parts of the core to improve stability.
- Several bugs/tiding up.
- Several things I'm currently forgetting (dont have my todo list in front of me atm)

For 1.7 I'm planning to mainly focus on making the tool compatible with Nuke11/Qt5 (fun times, yay). Besides that I've been looking into 'wildcards' : improving the way you can assign buttons to a Group node by name (I improved this already a lot in v1.6 when it comes to the 'multiple'-sect ion when having a selection of different groups and nodes selected). But it could improved a bit more;)

If you could provide me with some concrete functionalities you like about the Maya hotbox and feel are missing in W_hotbox, I'm of course very willing to look into that!

Hope that answered your question!

Oh about when to expect 1.6: Probably next week, maybe the week after that (definitely May!). As I said, I'm just updating the User Guide and it should be good to go.
 
 
0 # Simon Lawson 2017-05-04 13:11
Hi
Colorized buttons sounds like a great addition, I think that could be a very effective feature.

What do I like about Maya's Hotbox?
Firstly it is quite easy to set up and gives a lot of control over how exactly you want it to function. That said it still has it's limitations.
I like the circular style of Maya's Hotbox and find the quick swiping motion to be faster then using a large amount of keyboard shortcuts. Say you use 10 to 20 different commands during a session, it's unlikely your going to be able to hit the right key without looking down at the keyboard which is ultimately inefficient, hence why Hotboxes can give you the fastest and most enjoyable workflow.
Maya lets you assign a total of eight commands to the circular function, with the option of sub-circular menu's as well as having a listed menu below.
The circular menu is fast to use but limits you to eight commands, for some tasks this may work fine but others it certainly wouldn't. One of the few ways that Maya's Hotbox could be improved upon would be by having the ability to add more then just one command to one of the eight available spaces without having to go into a sub-menu.
So a section (floating menu) could hold any number of commands related to each other. A section could hold your favourite Keying nodes, while the next section holds your favourite Color Correction nodes and adjustments. The different sections could have a different color assigned to them to catch the eye, Green-Keying, Blue-Color Correction, Transforms-Purp le and so on.
Basically a circular hotbox can be as big or as little as you choose, one command or ten assigned to each section.

Another nice feature Maya has is the ability to have multiple Hotbox menu's. So you can have a menu for your Index finger, and a different one for your Middle finger. The Middle takes the A key, while the Index takes the X key, this gives you a natural hand position while easy access to Alt, Ctrl, Shift without having to look down at the keyboard ever. The A key to control widely used functions and Nodes, while the X key can be task specific, this is where Node contextual commands could come into play, or an option to have the ability to quickly assign a custom hotbox specific to the task you are working on. For example a roto hotbox for the viewer area could speed up workflow(if someone wanted to roto in Nuke that is!!!). :-*

As far as things that could be easily be changed, let the Left (Reveal in Explorer) and Right (Hotbox Manager) side buttons be available to have assignments of ones choice, to make more of the space for regularly used commands.
Maybe also the ability to have "All" commands placed above the center of the menu.

Hope all this makes sense?
 
 
0 # Wouter Gilsing 2017-05-05 15:59
Awesome, thanks for taking the time to write down that reply! Will definitely keep the things you mentioned in mind for future releases!
 
 
0 # Thomas Vu 2017-05-17 06:52
is possible to add shortcut key to active some custom button ?
 
 
0 # Wouter Gilsing 2017-05-17 08:05
You mean to invoke a button by pushing a shortcut while having the hotbox open?
 
 
0 # Thomas Vu 2017-05-17 13:10
close, i mean while selecting the node. but combine with hotbox opening are also great.
 
 
0 # Marc Mantei 2017-05-23 08:38
Thanks for sharing! I just replaced my own little hotbox setuo with your one and customized on the go. keep it up! best regards. Marc :)
 
 
0 # Wouter Gilsing 2017-05-23 13:04
Thanks, glad you like it! Any features you're missing compared to your own version?
 
 
0 # Gautama Murcho 2017-05-31 22:13
Hi Wouter,

I just want to say thank you for writing this. I have used W_hotbox since you released it here, and can't imagine using Nuke without it now - especially since I can easily turn any script that pops into my head into a button. Great work!

-G
 
 
0 # Wouter Gilsing 2017-06-01 09:00
Hi Gautama,

That's awesome to hear:)

Thanks!
 
 
0 # Matthieu Cadet 2017-06-22 10:01
Hi Wouter!

Have you planned to add support for PySide2 in your awesome W_Hotbox ? :)

thanks!
 
 
0 # Wouter Gilsing 2017-06-22 10:11
Hi Matthieu,

Yep, just got a version up and running with Nuke 11, so expect an update soon!
 
 
0 # Matthieu Cadet 2017-06-22 10:23
:lol: Yes thanks!
 
 
0 # Wouter Gilsing 2017-06-26 07:26
Just uploaded v1.7!
 
 
0 # Matthieu Cadet 2017-06-26 08:02
Thanks! but it's not working :P

I see the menu of W_hotbox, but when I trigger the shortcut to open the tools I only see this in the terminal window and the tool UI is not showing :-| :

QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::save: Painter not active
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::save: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::pen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::restore: Unbalanced save/restore
 
 
0 # Wouter Gilsing 2017-06-26 08:14
Ah, great... Thanks for sending the error messages though. Which OS are you using? As for me it worked just fine on OSX.
 
 
0 # Matthieu Cadet 2017-06-26 08:35
I'm on Linux Fedora 21, tested with the last beta version of Nuke 11
 
 
0 # Wouter Gilsing 2017-06-26 08:46
Thanks, I'll jump on it. For the time being you might wanna try to replace line 82 with the following:

if operatingSystem not in ['Darwin','Wind ows'] and nuke.NUKE_VERSI ON_MAJOR > 10:

This will disable the transparency on Nuke 11 Linux. It will probably look ugly, but a least it will stop throwing errors. (Or I hope so at least... All hypothetical)

Worth a try
 
 
0 # Matthieu Cadet 2017-06-27 09:26
Mmm no, changing this line don't fix the problem, same error, and no UI showing :(
 
 
0 # Erik Johansson 2017-08-11 08:18
Same here on Centos 7. Probably Qt5 related but can be both W_hotbox and Nuke11 that is the cause.
 
 
0 # Wouter Gilsing 2017-08-11 08:23
Hi Erik,

It's a Qt5 (on Linux) thing indeed. This is definitely the no.1 on the priority list, I just haven't had much time to look into the matter as of just yet unfortunately.. . Will update asap.
 
 
0 # Wouter Gilsing 2017-08-20 13:27
Hi Eric and Matthieu,

Ive finally managed to find some time and a copy of Nuke11 on linux to do some test with.

Althoguh, I'ven't produced a proper fix yet, I found a quick work around.

Turns out my previous comment was pretty close, except for a typo...

replace line 82 with the following should work:

if operatingSystem not in ['Darwin','Wind ows'] and nuke.NUKE_VERSI ON_MAJOR < 11:

As stated before, this will introduce some transparency problems. However, the hotbox will (or should) work fine otherwise.

Hopefully this workaround will suffice for now.

Cheers
 
 
0 # Erik Johansson 2017-08-29 15:19
Works here!

Thanks!
 
 
0 # Matthieu Cadet 2017-06-30 12:46
Hi Wouter!

I think you should refactor your code related to Nuke Preferences save/load/delet e,I have some problem with my own custom preferences knob and yours.
I think its because you are writing directly to the preference file ) instead of let Nuke do this job.

Maybe by following this example is enough for refactoring:

https://github.com/NateScarlet/My-Personal-Scripts/blob/782981ad10bf1d1164966761f4c3104baaa06916/Comp/nuke/wlf/py/wlf/pref.py

or

https://github.com/robmoggach/python-dotnuke/blob/master/mynk/prefs.py

The problem I've seen is that my custom pref knobs suddenly appears in your nuke.Tab_Knob(' hotboxLabel','W _hotbox') :(
 
 
0 # Wouter Gilsing 2017-06-30 13:22
Hi Matthieu,

Thanks for providing those links, always nice when people think along and to have some sort of starting point. :)

By looking quickly at their code, it seems like they use the same method as I currently do. However, after having added the knobs to the preferences panel, I indeed force write the updated preferences to the preference file (usually this 'writing to file' happens when you open and close the preferences panel).

If I wouldn't do this, nothing will get saved unless the user manually opens and closes the preferences panel (So in order to 'let Nuke do the job', the user has to 'do the job' first) ;) .

Ten, upon start-up the hotbox checks whether the necessary knobs are already presents in order to decide whether or not it's relevant to add them.

That being said, the hotbox preferences should definitely not mixup with any custom knobs. So I'll look into that! Thanks for reporting the issue:)

The first hotbox knob that gets added to the preferences should always be a tabknob, in order to separate the knobs from any custom knobs you already might have.

So I assume your custom knob appears at the end of the hotbox tab? If that is indeed the case so, you might need to add a new tabknob yourself first, in order to separate the knobs from mixing up.

I'll look into the possibility of closing the tab from the bottom anyway though.

Thanks

Wouter
 
 
0 # Juha Takabe 2017-07-13 19:46
As some have already mentioned, I also can't get shortcut to work. I have tested different keys + restart. I'm on latest macOS and NukeSrudio/X 10.5v5

Best,
Juha
 
 
0 # Wouter Gilsing 2017-07-13 19:51
Hi Juha,

What kind of keyboard layout are you using?
 
 
0 # Juha Takabe 2017-07-13 20:05
I'm using Finnish keyboard.
 
 
0 # Juha Takabe 2017-07-17 13:04
Not sure what happened, but now it's working just fine! Sorry for a false alarm.
 
 
0 # Wouter Gilsing 2017-07-17 13:06
Ah great, glad to hear that
 
 
0 # Anais Torreblanca 2017-08-11 14:45
Thank you Wouter! It's so helpful. Just one question, will it work for Nuke 11 on Linux?

Thanks a lot
 
 
0 # Wouter Gilsing 2017-08-11 15:09
Hi Anais,

Currently it's not working on Nuke 11 on linux (yet) (Windows and OSX are fine though).

This is definitely the no.1 on the priority list, I just haven't had much time to look into the matter as of just yet unfortunately.. . However, I'll try to look into and update asap.

Cheers
 
 
0 # Anais Torreblanca 2017-08-14 12:41
Thanks for the info. I will use Nuke 11 on Windows and Nuke 10 on Linux. :)
 
 
0 # Wouter Gilsing 2017-08-20 13:29
Hi Anais,

As posted in another comment, I've found a quick work around to get the hotbox up and running on linux Nuke 11.

replace line 82 of W_hotbox.py with the following:

if operatingSystem not in ['Darwin','Wind ows'] and nuke.NUKE_VERSI ON_MAJOR < 11:

This will introduce some transparence problems, but the hotbox will work as expected.

I'll upload a new version once I've found a proper fix.

Cheers
 
 
0 # Anais Torreblanca 2017-08-20 13:37
Thank you so much, I will try it :)

Cheers
 
 
0 # Anais Torreblanca 2017-09-06 15:32
Hi Wouder, Thank you so much!

It works perfectly beside the transparency.
 
 
0 # karthick efx 2017-08-22 18:32
any video for this Installation
 
 
0 # Wouter Gilsing 2017-08-22 18:36
The download ships with a pdf with a detailed step by step description of how to install the tool.

At what point did you get stuck?
 
 
0 # karthick efx 2017-08-22 18:45
first point
i paste in nuke user W_hotbox.py & W_hotboxManager.py

Second point
already in nuke user menu.py that i edit & paste this
import W_hotbox, W_hotboxManager

3 point i paste icons with help of downloads

4 point nuke open but some error coming ?
 
 
0 # Wouter Gilsing 2017-08-22 18:47
Whats the error?
 
 
0 # karthick efx 2017-08-22 18:53
thanks now working
i restart my system than i open nuke working
 
 
0 # karthick efx 2017-08-22 19:00
any preset option
 
 
0 # Wouter Gilsing 2017-08-22 19:05
Not sure what you mean. Preset buttons?

If you open the hotbox manager (edit - W_hotbox - Open Hotbox Manager) and click 'import Archive', then browse to 'buttonBundle.h otbox' you get a bunch of useful example buttons.
 
 
0 # karthick efx 2017-08-22 19:32
super tool this its very help for us

hotbox i s great

any Templates
single
Multiple
All

its great help us
 
 
0 # karthick efx 2017-08-22 19:40
tks
 
 
0 # Adrien Valembois 2017-09-03 09:41
Hello Wouter

Thank you for this useful script, it is a real time saver.

I have just one issue : I work with an azerty keyboard and the key ' ` ' is not same, it's this one ' ² ' instead. I'm use to this key to call your script but the "excute button without click" option doesn't work. Nothing happens when I release the key, so I have to click on a button and click outside the hotbox to close it.

W_hotbox.py:230 : UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if event.text() == shortcut:
W_hotbox.py:241: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if event.text() == shortcut:

if I change the shortcut or if I use my keyboard in qwerty mode it work properly, but I would love to use this damn key in azerty
the 'single tap' and 'close on button click' work also

is there any solution ?
 
 
0 # Wouter Gilsing 2017-09-07 07:16
Hi Adrien,

thanks for reporting! I'll look into this when I've got some time on my hands.

cheers
 
 
0 # Pranav Gangapurkar 2017-09-05 10:19
Hi,
This is a great tool and I am using it for a while.
But nuke is giving some error today and is not opening.

Traceback (most recent call last):
File "/u/xyz/.nuke/m enu.py", line 3, in
import W_hotbox, W_hotboxManager
File "/u/xyz/.nuke/p ython/W_hotbox. py", line 1194, in
if hotboxLocationP ath[-1] != '/':
IndexError: string index out of range


It was working fine before. I am almost addicted to using this . Any help is appreciated. Thanks.
 
 
+2 # Wouter Gilsing 2017-09-07 07:19
Hi Pranav,

Sounds like a problem caused by the path you defined (I assume it's empty). Make sure the 'location' knb in the preferences (Nuke preferences - W_hotbox) is pointing to a valid folder.

Hope that helps!
 
 
0 # Pranav Gangapurkar 2017-09-07 11:05
Thanks Wouter. That indeed was the problem. It started working after pointing to the correct path. Cheers.
 
 
0 # Michael De Caria 2017-10-16 23:19
Hey Wouter,

Long time user of hotbox. small thing.

line 729 of W_hotbox.py which runs self.invokeButton()

If invoking the command raises an exception the undo().end() is never called causing your undo stack to be neverending and problematic.

On my end I've locally patched it to try: except: finally:

The finally always runs the undo().end()

Cheers,
Michael
 
 
0 # Wouter Gilsing 2017-10-20 20:34
Thanks for the headsup!
 
 
0 # Christian Walentin 2017-11-21 09:15
Had problems adding new classes in Nuke 11.
It was an easy fix:
In line 2837 of the "W_hotboxManage r.py" change "QtWidgets.QKey Sequence" to "QtGui.QKeySequence".

Then everything works as usual :)

And by the way: Thanks to Wouter Gilsing for this amazing tool!!!
 
 
0 # li zhaohui 2017-12-29 01:52
http://www.vfxnews.net/data/images/2017/11/26/file/20171126/20171126141030_19479.rar
This function is similar
 
 
0 # Elizabeth Marriner 2018-01-29 23:34
I think I may have found a bug in version 1.7:
If you change the Hotbox location to empty string in Preferences, Nuke will fail to start up with the error:
Traceback (most recent call last):
File "[path to hotbox code]/app/menu. py", line 44, in
import W_hotbox
File "[path to hotbox code]/app/W_hot box/W_hotbox.py ", line 1194, in
if hotboxLocationP ath[-1] != '/':
IndexError: string index out of range

Thankfully, this is open source and Python, so I was able to go in and fix this for my facility: I added
if not hotboxLocationP ath:
hotboxLocationP ath = os.getenv('HOME ').replace('\\' ,'/') + '/.nuke' + '/W_hotbox'
right before error.

I wanted to put this on your radar to fix this for everyone.
 
 
0 # Wouter Gilsing 2018-01-31 11:13
Hi Elizabeth, good call, thanks for reporting:)
 
 
0 # Osvaldo Andreaus 2018-02-04 01:36
This is a great tool a studio I worked at had it and now I want all the places I go to implement it!

I tried for several hours to make a button with merge_transform s_v2 (http://www.nukepedia.com/python/nodegraph/merge_transform s_v2) but I couldn't get the python to work. I get the error "NameError: global name 'check_classes' is not defined" I tried everything in my knowledge to remove the functions or adapt it, but I don't know enough about this stuff to make it work.

I was hoping maybe one of the commenters here would give me a hand with this.

I'm on Win10 with Nuke10.5v4
 
 
0 # Wouter Gilsing 2018-02-04 01:57
Hi Osvaldo,

I happen to have that script assigned to a button as well ;)

If you just place the python module somewhere in your .nuke folder, and then create a button with the following code, it should work fine:

import merge_transforms_v2
merge_transforms_v2.start()

Cheers!
 
 
0 # Osvaldo Andreaus 2018-02-21 16:41
Hi that worked!

I just recently started at a new place and I installed it there too. Over here thought they use Linux and I'm seeing a weird transparency issue, see screenshot:
i68.tinypic.com/2j1kbv5.png

We have CentOs 7 with Nuke10.5v6
There's also Nuke 11.1v3 and on that one the w_hotbox doesn't even show up just some kind of glitchy opening animation.

Let me know if you want me to try something on this machine to debug it.
 
 
0 # Bogdan Nedkov 2018-04-17 12:08
Hello, I have the same issue at work on CentOS 7 with Nuke 11.1v2 and the popup doesn't show up when I press the shortcut. It is invisible since the OS registers the popup in the taskbar as a separate window and I am able to blindly select the hidden options, but the menu itself is invisible and it is not hidden under the focused window.

The strange thing is that last month when they started implementing the 11 version of nuke here I downloaded and installed the 1.7 version since I was using the old one and I got it working just fine. I don't recall what version I tried it on, whether it was 11.0 or 11.1.v2 or something else
 
 
+1 # Bogdan Nedkov 2018-04-19 13:03
For anyone who is experiencing the same problem on Linux with the invisible hotbox you can comment out lines 82-83 in the W_hotbox.py

if operatingSystem not in ['Darwin','Wind ows']:
self.setAttribute(QtCore.Qt.WA_PaintOnScreen)

The popup is not transparent but it is functional.

Cheers
 
 
0 # Osvaldo Andreaus 2018-04-19 16:26
This worked great thanks!
Ex: http://i68.tinypic.com/15fiv6u.png
 
 
+2 # Wouter Gilsing 2018-04-19 16:45
Sorry for still not having updated the code guys! I'll aim for a new version by the end of this weekend...

Thanks for the patience:)
 
 
0 # Ashish chopra 2020-01-17 05:33
Quoting Bogdan Nedkov:
For anyone who is experiencing the same problem on Linux with the invisible hotbox you can comment out lines 82-83 in the W_hotbox.py

if operatingSystem not in ['Darwin','Windows']:
self.setAttribute(QtCore.Qt.WA_PaintOnScreen)

The popup is not transparent but it is functional.

Cheers

____________________________________________
hi,

I am too facing the same problem. I am on Linux Mate 1.16.2.

hoping #Wouter Gilsing will solve the problem soon.
 
 
+1 # Wouter Gilsing 2020-01-17 08:00
Hi Ashish,

Since you are on Mate; try the following:

In your linux taskbar, go to System - Preferences - Windows and and tick "Enable software compositing window manager"
 
 
0 # Ashish chopra 2020-01-18 07:21
I so appreciate your reply to all the comments and you are solving all the problems.

I was reading all the comments and i found this that u suggested someone to enable this type of feature.
"(Im not sure which flavour of Linus you are on, but see if you can enable 'desktop effects' (give it a quick google to see where you can enable it, I think its somewhere in preferences if im not mistaken).)"

So I already checked that and tried. didn't work for me.
Hope there must be another solution to it even I am trying to figure it out.
Thanks

:-)
 
 
0 # Konrad Markwardt 2018-02-28 18:31
Hey Folks,

i´ve got a problem running the script via the shortcut. Im using Nuke x11v1 non-commercial on a Windows 10 machine. All is up to date there... furthermore im using a german keyboard and already signed the shortcut to "y" (which is "z" on an english keyboard)

So, via the menu it´s working fine - however that´s not what its made for, right :)

What can I do?

By the way.. many thanks for the plugin!!!
 
 
0 # Konrad Markwardt 2018-02-28 20:52
Quoting Konrad Markwardt:
Hey Folks,

i´ve got a problem running the script via the shortcut. Im using Nuke x11v1 non-commercial on a Windows 10 machine. All is up to date there... furthermore im using a german keyboard and already signed the shortcut to "y" (which is "z" on an english keyboard)

So, via the menu it´s working fine - however that´s not what its made for, right :)

What can I do?

By the way.. many thanks for the plugin!!!

Quoting Konrad Markwardt:
Hey Folks,

i´ve got a problem running the script via the shortcut. Im using Nuke x11v1 non-commercial on a Windows 10 machine. All is up to date there... furthermore im using a german keyboard and already signed the shortcut to "y" (which is "z" on an english keyboard)

So, via the menu it´s working fine - however that´s not what its made for, right :)

What can I do?

By the way.. many thanks for the plugin!!!


SOLVED!

I took a look at the code and played around with different shortcuts. Now "," is working fine for me, although i would love to have a shortcut on the left side of my keyboard, e.g. ">"

Doesn´t work in my case - but is it possible?

Thanks
 
 
0 # Marvin Sprengel 2018-05-08 13:55
Hi i absolutely love this!!
but i tried to shift all my nuke related stuff to my Gdrive, but Hotbox seems to have a problem with the template folder! It gives me this when i try to open the Hotbox Manager, the script itself and shortcuts still work

Traceback (most recent call last):
File "", line 1, in
File "/Users/Sprengm eister/Google Drive/Exchange/ NukeShared/Repo sitory/_.Script /UI/W_hotbox/W_ hotboxManager.p y", line 3665, in showHotboxManag er
hotboxManagerIn stance = HotboxManager(p ath)
File "/Users/Sprengm eister/Google Drive/Exchange/ NukeShared/Repo sitory/_.Script /UI/W_hotbox/W_ hotboxManager.p y", line 263, in __init__
self.scriptEdit orTemplateMenu = ScriptEditorTem plateMenu(self)
File "/Users/Sprengm eister/Google Drive/Exchange/ NukeShared/Repo sitory/_.Script /UI/W_hotbox/W_ hotboxManager.p y", line 2306, in __init__
self.initMenu()
File "/Users/Sprengm eister/Google Drive/Exchange/ NukeShared/Repo sitory/_.Script /UI/W_hotbox/W_ hotboxManager.p y", line 2314, in initMenu
self.addUserTem plates(folder = self.templateFo lder)
File "/Users/Sprengm eister/Google Drive/Exchange/ NukeShared/Repo sitory/_.Script /UI/W_hotbox/W_ hotboxManager.p y", line 2341, in addUserTemplate s
if len(name) > maxNameLength:
TypeError: object of type 'NoneType' has no len()

tried to increase the maxNameLenght in your script but i'm not aware of what it does anyway, so can you help me out?
Thankful Greetings, Marvin
 
 
0 # Dhruv Shankar 2018-05-16 22:06
Incredible work Wouter! I am having an issue however here on centos 6.5, nukex 10.5. Triggering the hotbox seems to open a new item on my desktop menu titled 'nuke 10.5' as if it was opening a separate program entirely, which destroys the hotbox's ability to adhere to the 'hold and release' as well as 'close on button click' abilities. I have to click off somewhere else in Nuke, or manually click to focus back on my script from the desktop menu in order to close the hotbox, with any combination of preferences on the matter. All functionality of what the buttons do seem to be working, though this makes it quite annoying to use. I'd hope there may be some simple fix for this, any ideas? Thanks for making this and being active in the comments looking into bugs and issues!
 
 
0 # Mitchell Woodin 2018-05-30 02:27
Hi,

Not sure if this is a bug or I'm doing something wrong but I can't seem to call functions inside hotbox.

W_HOTBOX ERROR: Single/Roto/Cur ve Rename - line 12:
NameError: global name 'get_curves' is not defined

That is the error I'm getting I'm both creating and calling the function inside of hotbox.
Any ideas?

Thanks,
Mitchell
 
 
0 # Osvaldo Andreaus 2018-05-30 04:05
My own experience is that if you only have one function it will recognize it, but more than one and it will throw errors from the second function on.

Not sure if it is a bug but I think it's more of a limitation. Functions work great if they are in their own python file when import is used. (Which is not very ideal for me)
 
 
0 # Wouter Gilsing 2018-06-10 20:26
Hi Mitchell and Osvaldo,

Not really a solution, but more of a work around; when I have larger scripts (for example when having multiple funcions defined) I tend so save the code as a external module and import it and run it from the hotbox. That should work.

Cheers
 
 
0 # Wouter Gilsing 2018-06-10 20:31
Actually, here's a solution, though it not very nice at all... Making the function global should work:

global test01
def test01():
____print 'test01'

def test02():
____print 'test02'
____test01()

test02()
 
 
0 # Aleh Maksimovich 2018-06-10 17:47
Don't work on Nuke 11.1v3!!!!!!!!! !!!!!!!!!!!!!!! !!!!!
 
 
0 # Wouter Gilsing 2018-06-10 20:24
Hey Oleg,

Would you mind sharing some more info? What os are you running it on. Also what do you consider 'not working' do you get an error?
 
 
0 # Aleh Maksimovich 2018-06-11 09:34
https://we.tl/CKcBE9IB1t
===============================
Traceback (most recent call last):
File "C:/Users/Aleh/ .nuke/menu.py", line 354, in
import W_hotbox, W_hotboxManager
ImportError: No module named W_hotbox
 
 
0 # Aleh Maksimovich 2018-06-11 09:35
win and macOS
 
 
0 # Wouter Gilsing 2018-06-11 11:22
Did you follow the installation instructions? Where did you save the python files?
 
 
0 # Aleh Maksimovich 2018-06-11 11:53
now all is well. Thank you
 
 
0 # Aleh Maksimovich 2018-06-11 16:32
win-all OK! OSX-OK!
 
 
0 # Osvaldo Andreaus 2018-06-22 22:42
I noticed that the "Edit>W_hotbox> Repair" doesn't work, seems like it's invoking the wrong command.
 
 
0 # bang meng 2018-07-11 03:50
这真牛逼
 
 
0 # bang meng 2018-07-11 03:57
这工作量该有多大!!感谢无私的 分享
 
 
0 # Nicklas Larsson 2018-08-01 19:45
:lol: Love it!!!!!
 
 
0 # yuri carrara 2018-09-10 11:46
Hey Wouter,
on nuke 11.4v4 I'm encountering a weird behavior, when I press my shortcut instead of opening the interface my screen becomes black.
It might be a nuke bug though...
 
 
0 # yuri carrara 2018-09-10 11:46
Hey Wouter,
on nuke 11.4v4 I'm encountering a weird behavior, when I press my shortcut instead of opening the interface my screen becomes black.
It might be a nuke bug though...
 
 
0 # Stepan Pazderka 2018-09-13 13:30
Just noticed there is extra repositories setting in hotbox, we would like to implement this company wide, with company settings as a base settings but with ability to individual users to tweak settings in their very own .nuke folder withing system user. Can pls somebody help how this works?
 
 
0 # Wouter Gilsing 2018-09-15 10:52
He Stepan,

You can define extra repositories using environment variables. Have a look at page 15 of the userguide 'Working in a studio environment'. It should give you a fairly detailed explanation of how to achieve what you describe.

Let me know if you can't get it to work.
 
 
0 # Stepan Pazderka 2018-09-16 13:24
Hey Wouter, I have finally got it working. You forgot to define menubar bar in the Extra Repositories section of your Hotbox.py, so as soon as I define system variables, Nuke wont startup because it cant addCommand to the menubar.

Anyway, I think it would great if you could explain extra repositories in your documentation. I didnt understand straight away why I should name my extra repository. It would be better to explain this in readme in some basic way, because if you dont define Names, which I didnt, it wouldnt catch extra repositories at all.

You should pls also add some examples with Windows style path syntax, because without it, I was not sure if I am adding paths correctly or if the script is prepared for Windows paths at all.

Awesome tool in general though, thanks!
 
 
0 # Wouter Gilsing 2018-09-16 14:36
Ah thanks for letting me know, Ill make sure to fix that in the next version.
 
 
0 # Fabien Delavous 2018-09-29 00:55
Hey Wouter, wonderful tool that I've been using few times!

By the way, I do have a problem when copying 'import W_hotbox, W_hotboxManager ' in the menu.py... When I launch Nuke, an error appears : '/plugins/menu. py : error interpreting this plugin'... Do you have any idea? Am I copying this in the right file? I tried to paste it on different place in the python script but it doesn't change anything...

Thanks!

Cheers
 
 
0 # Wouter Gilsing 2018-09-29 09:29
Hi Fabien, could you post the full traceback error please? That way we can see what is causing the error.

Cheers
 
 
0 # Fabien Delavous 2018-09-29 10:54
Hey,

Traceback (most recent call last):
File "C:/Nuke10.5v2/ plugins/menu.py ", line 33, in
import W_hotbox, W_hotboxManager
File "C:/Nuke10.5v2/ plugins/W_hotbo x.py", line 1423, in
editMenu.addCom mand( '-', '', '' )
AttributeError: 'NoneType' object has no attribute 'addCommand'

Is that what you were asking for?

Thanks a lot

Cheers
 
 
+1 # Wouter Gilsing 2018-09-29 11:17
Looks like you placed the files directly into the installation folder,(rather than in your user folder) and changed the menu.py that was already there.

I would very much suggest to not do this and leave the installation files as they come when you install the software. Instead what you could/should do, is using the hidden nuke folder in your home directory. This is where all the user customizations are stored (and generally speaking the most common place where people store their custom tools).

What currently is happening:
Hotbox is trying to add some items to the 'Edit' menu. However, the 'Edit' menu doesn't exist yet (it's generated on line 106 of C:/Nuke10.5v2/ plugins/menu.py).

If you were to create your own menu.py, Nuke would first execute the code as defined in the installation directories (generating the menu's etc, including the Edit menu) and thén proceed with any customizations the user might have done (instead of trying to do both at the same time.)

Hope that helped
 
 
0 # Fabien Delavous 2018-09-29 11:36
Ok, it seems all clear for me now. Thanks for helping me Wouter, I'll try as fast as I can, but it totally makes sense...

Cheers!
 
 
0 # Fred Plumey 2018-10-16 14:39
It works very well, Thanks a lot for this powerful tool !!!
 
 
0 # K P 2018-11-01 21:38
nvm
 
 
0 # Roman Antonjuk 2018-11-25 21:06
Greate job Wouter!
Can you help me, please
I want custom function called Set Project BBox from selected read node,but I dont know phyton to do that :oops:
 
 
0 # Wouter Gilsing 2018-12-23 11:28
Hey, excuse the late reply. What do you mean by project BBox? Project resolution?
 
 
0 # lou cannizzo 2018-12-21 02:34
I thought this would be the answer to eliminate constant tab searching for nodes. But after watching the tutorial, it seems it just runs commands for the selected node?

Can it also allow users to create nodes instead of tab searching?
If so, do I need to be a programmer to make it create nodes?

Either way awesome tool!
 
 
0 # Wouter Gilsing 2018-12-23 11:35
Hi Lou,
Whenever you create a node through ths Tab menu (or by clicking a menu item) you trigger Python code. That code is:

nuke.createNode('NodeType')

To give an example; to create a blur you would need the following code:

nuke.createNode('Blur')

You can put that in a hotbox button, and it will create a blut everytime you click it.

To awnser the other question: the code that is execute from the button is not just running for the selected nodes.

Your node selection is used to decide whether a button is show or not when you open the hotbox (e.g. a button that is handling Merge operations is only shown when you have a Merge selected). The extual code that is run doesn't care about your selection.

However, if you want your button to show up no matter what you might have selected you can add it to the all section (it will then show up at the bottom of the hotbox) or add it to the node class 'NoSelection' in which case the button will appear if you have nothing selected.

No need to be a programmer:)

Hope that helped
 
 
0 # lou cannizzo 2019-01-06 19:33
Hi Wouter,
Ok great, I will try it asap. I can go wild using it just as long as it doesn't require any python knowledge. I am as dumb as a bag of rocks when it comes to python. I can do cut & paste & edits, but that's my limit. :lol:
 
 
0 # Bernd M 2018-12-27 20:57
I have just installed the hotbox on a fresh nuke installation.

"nonetype" object has no attribute 'writeKnobs' (line 844)
 
 
0 # George Antonopoulos 2019-01-04 10:56
Looks amazing Wouter,
Looking forward to testing it out :-)
Many thanks!
 
 
0 # Call Harry 2019-03-28 16:39
Such a great tool! Thanks!
 
 
0 # amstos amstos 2019-04-15 13:40
Hi Wouter, Great tool man, appreciate for making this.

One question: Is it possible for controlling the menu stacking under "ALL"

Meaning, i wanted to create 4 buttons for 4 shots under 4 different lines. Right now, it seems, down from the center button, Menu's gets created in 3's, then 4's, then 5 etc..
 
 
0 # Wouter Gilsing 2019-04-15 14:39
Hi!

If you open up the preferences there are three knobs under the Item per Row section. Have a play with these to get it to behave as you want to:)
 
 
0 # amstos amstos 2019-04-16 04:49
This helped a bit.

But, can i control the way number of menu's appear in each line. Like on the first line, i wanted 3 Menu's, on the second line i wanted 10 menus?
 
 
0 # Wouter Gilsing 2019-04-16 11:48
You cant set it for every line; but if you were to set 'All' to 3, and 'Step size' to 7, you would end up with the first line having 3 items, and the second line having 10 items.
 
 
0 # amstos amstos 2019-04-16 12:59
Thanks Wouter :-)
 
 
0 # Thomas Vu 2019-05-23 04:09
hi Wouter could you help me code this one
i would like to add more button on read node command
1: set start frame "start at 1"
2: set colorspace to "sRBG"
 
 
0 # Wouter Gilsing 2019-05-25 19:55
Hi Thomas,

Sure thing!

In your case, the only thing we need to do is the change the value of a knob.

So two questions to start with:

1) Which knob.
2) What value do we need to set it to

Lets go with the colorspace one.
To answer my own questions:

1) the name of the knob is colorspace (if you hover over the knob, it disnpays the name in bold)
2) the value we want to set it to is 'sRGB'

The hotbox works on the selected nodes. We don't only want the code to work on the first node in the selection, but every selected node. If you have a look at other buttons, you will see this construction:

for node in nuke.selectedNo des():
node.knob(KNOBNAME).setValue(VALUE)

so in case of the colorspace knob that would be:


for node in nuke.selectedNo des():
node.knob('colorspace').setValue('sRGB')

Hope that helped. Have a look at my hotbox video as well, as I go over creating new buttons there too.

Cheers
 
 
0 # Thomas Vu 2019-06-02 03:23
i get it, ezmazing thank you so much
 
 
0 # Nick Pittas 2019-07-09 13:34
I have a problem opening HotboxManager. It gives me this error:

File "C:/Users/Nick/ .nuke\W_hotboxM anager.py", line 74, in __init__
self.setParent(QtWidgets.QApplication.instance().activeWindow())
AttributeError: 'PySide2.QtCore .QCoreApplicati on' object has no attribute 'activeWindow'
 
 
0 # Nick Pittas 2019-07-09 13:34
I have a problem opening HotboxManager. It gives me this error:

File "C:/Users/Nick/ .nuke\W_hotboxM anager.py", line 74, in __init__
self.setParent(QtWidgets.QApplication.instance().activeWindow())
AttributeError: 'PySide2.QtCore .QCoreApplicati on' object has no attribute 'activeWindow'
 
 
0 # Erwan Leroy 2019-07-09 19:59
Are you trying to launch in a beta version of nuke? That is a known bug in the latest beta.
 
 
0 # Nick Pittas 2019-07-09 23:30
Yeah, latest beta. Probably a call to activeWindow() isn't available in PySide2?
 
 
0 # Erwan Leroy 2019-07-10 00:29
It's fine in pyside2 (see latest 11 version). Can't discuss publicly specifics of Beta versions, but the bug is that QtWidgets.QAppl ication.instanc e() returns a QCoreApplicatio n object instead of a QApplication object as expected.
 
 
0 # Nick Pittas 2019-07-10 00:41
ts the switched from Qt 5.6 to 5.12 or the pyside2 update that is causing the problem as mentioned, I know, I hoped that it would be a simple redirection fix, that's why I asked. But I haven't coded for a while so, unless it;s a simple Qt update, I will wait for an official release. Thanks for the info though.
 
 
0 # Gabriel Valente 2020-04-30 10:46
Quoting Nick Pittas:
ts the switched from Qt 5.6 to 5.12 or the pyside2 update that is causing the problem as mentioned, I know, I hoped that it would be a simple redirection fix, that's why I asked. But I haven't coded for a while so, unless it;s a simple Qt update, I will wait for an official release. Thanks for the info though.

I am not in a beta version, and now on v12.0.3 but lately I am getting this window message. Sometimes if I replace my py's files it works for a while then stop to work again after few use. Any idea how to fix this?
 
 
+1 # Scott Mackay 2019-07-30 00:32
Just downloaded Hotbox and am looking forward to thestreamlining possibilities! But unfortunately I have to always set the shortcut key everytime in the Preferences whe I run Nuke. Is there something that I've done incorrectly? It seems like it should be set from start up but isnt.
 
 
0 # 帅烨 黄 2019-08-19 09:05
How can I open the upstream group folder,thank you !
 
 
0 # Zachery Morris 2019-08-20 12:30
Hi Wouter, firstly I love this tool!! This is my favourite tool ever!!

I've come to a little issue. I've installed W_hotbox at a studio I just started at. Everything seems to be installed correctly(insta lled into my own .nuke folder) and this worked at other facilities but for some reason when I launch the hotbox the whole screen goes black and when I release ` key it goes back to normal. We're using Nuke 11.3. W_hotbox Manager works fine but not the hotbox.

Any idea what's casing it? On my Mac and Linux machine at home it works fine and I've never seen this issue before.

Thanks very much
Zak
 
 
0 # Zachery Morris 2019-08-20 12:30
Hi Wouter, firstly I love this tool!! This is my favourite tool ever!!

I've come to a little issue. I've installed W_hotbox at a studio I just started at. Everything seems to be installed correctly(insta lled into my own .nuke folder) and this worked at other facilities but for some reason when I launch the hotbox the whole screen goes black and when I release ` key it goes back to normal. We're using Nuke 11.3. W_hotbox Manager works fine but not the hotbox.

Any idea what's casing it? On my Mac and Linux machine at home it works fine and I've never seen this issue before.

Thanks very much
Zak
 
 
0 # Wouter Gilsing 2019-08-21 09:54
Hi Zak,

Sory about that. I assume you're on Linux at work?

Give this a try:
remove 'and nuke.NUKE_VERSI ON_MAJOR < 11' from line 82 of W_hotbox.py

so the line reads as:
if operatingSystem not in ['Darwin','Windows']:

if that doesnt work, have a quick look at your OS' 'compositing manager' if you have any. Im not sure which flavour of Linus you are on, but see if you can enable 'desktop effects' (give it a quick google to see where you can enable it, I think its somewhere in preferences if im not mistaken).

Lemme know, if that helped!

Cheers
 
 
0 # Zachery Morris 2019-08-21 10:08
Quoting Wouter Gilsing:
Hi Zak,

Sory about that. I assume you're on Linux at work?

Give this a try:
remove 'and nuke.NUKE_VERSION_MAJOR < 11' from line 82 of W_hotbox.py

so the line reads as:
if operatingSystem not in ['Darwin','Windows']:

if that doesnt work, have a quick look at your OS' 'compositing manager' if you have any. Im not sure which flavour of Linus you are on, but see if you can enable 'desktop effects' (give it a quick google to see where you can enable it, I think its somewhere in preferences if im not mistaken).

Lemme know, if that helped!

Cheers

Thanks so much, Wouter. Will give it a go tomorrow. I can ask one of the comp TD too.

Will let you know.
Thanks
Zak
 
 
0 # Osvaldo Andreaus 2019-08-21 06:08
Looks like there's an issue on line 1459 and 1461 of W_hotbox.py

"menubar" doesn't exist, seems like it should be "editMenu"
 
 
0 # Zachery Morris 2019-08-21 09:44
Thanks for your input, Osvaldo. I've changed it but makes no difference... have you had the same issue? It may be cuz of Centos 7 because I've never seen this kind of issue before.

I've noticed that the same thing happens when I use Channel Box(Falk.H). May be it's not a script issue?

Cheers
Zak
 
 
0 # Zachery Morris 2019-08-21 09:46
Quoting Zachery Morris:
Thanks for your input, Osvaldo. I've changed it but makes no difference... have you had the same issue? It may be cuz of Centos 7 because I've never seen this kind of issue before.

I've noticed that the same thing happens when I use Channel Box(Falk.H). May be it's not a script issue?

Cheers
Zak


Channel Hotbox I meant...
 
 
0 # Osvaldo Andreaus 2019-08-21 17:42
Once I changed the line to "editMenu", the special settings showed up. I'm using Nuke 11.3v2 on Win10
 
 
0 # Osvaldo Andreaus 2019-08-21 06:08
double post
 
 
0 # Chris Staves 2019-08-27 09:17
Hi Wouter. LOVE the tool, but I just ran into a problem that had me really scratching my head, but I finally figured out what the problem was. Up until this point, I had pretty much just used your built-in buttons, but I was starting to add some new ones of my own, and I copy-pasted a line from your examples section of your PDF. (Specifically, premultNode = nuke.createNode(‘Premult’))

When I did that, all looked fine in the Hotbox Manager, but when I closed it, the button was blank, and didn't do anything. Then I was not able to add any more buttons in the Manager until I went into the w_hotbox folder and deleted the bad python script (which just appears blank when I open it in a text editor). Actually, what happens is in the Manager, you hit the plus key or the add folder key and nothing happens, but when you invoke Hotbox, you'll see a bunch of New Item and New Menu buttons. Weird.

So, it seems like something about copying from the PDF really screwed it up. Once I typed it in, it was fine.

Oh, also, I tried to use the Repair function, but when I select that menu item, I get this error:
'module' object has no attribute 'repairHotbox'

This is on Windows 10. Thanks!
 
 
0 # Lucas Pfaff 2019-10-02 08:27
Hi Wouter,

I finally got around to install and utilize Hotbox in my workflow, it just seems too versitile to not beeing used :)

In Nuke 11 everything runs fine, but using it in Nuke 12 something's odd. As more often than not, I can't press buttons. They won't get highlighted and can't be clicked. Sometimes however they do get highlighted and are clickable, but it's random if a button will react or not.
Do you happen to have any idea what could cause this?

Best,
Lucas
 
 
0 # Claus Steinmassl 2019-10-14 08:44
Hey everybody!

Wouter's hotbox has become part of my daily workflow and I really can't work without it anymore.
To mimic Maya's behavior I used to set the shortcut to spacebar, which worked fine in Nuke 10, but not in Nuke 11. In Nuke 11 I couldn't toggle to fullscreen anymore if I used the spacebar for the hotbox. I also had other problems in Nuke 11, like the Hotbox Manager disappearing if it lost focus.

Another problem that existed for me in all Nuke versions was the repeated shortcut: If the button started any prompt to the user, the text input would be filled with the repeated shortcut.

As I managed to fix all these issues, I wanted to share my solution with everybody.

As a first step we need to edit the line, where the shortcut get's assigned to the nuke menu (line 1363 in the version 1.8).
We remove the shortcut here, so the line would now be:
editMenu.addCommand('W_hotbox/Open W_hotbox', showHotbox)

Now, instead of using Nuke's own mechanism, we install our own event filter. Simply add the code from this link above the Hotbox class. This will fix all the above mentioned problems.

https://pastebin.com/Pfk05trs

I hope, this helps to enhance your daily workflow, too!

@Wouter: Maybe you want to integrate this on your side, too? I wrote you an email a while ago with my problem, but didn't hear back from you. I guess you get a lot of emails regarding the hotbox... :D
So I hope to reach you via this comment!

Cheers,
Claus
 
 
0 # Wouter Gilsing 2019-10-14 09:12
Hi Claus,

Thanks so much for the detailed message. I must have missed your email somehow, as I tend to always reply to messages, haha:)

I'll definitely give it a go, thanks!

Cheers
 
 
0 # Osvaldo Andreaus 2019-10-14 17:31
With this mod the default ` shortcut doesn't seem to work (nuke 11).

Is W_Hotbox on github or some other version control website? I feel it would make it easier to submit bug reports or feature requests.
 
 
0 # Claus Steinmassl 2019-10-14 21:44
@Wouter: No worries. Seems as my solution isn't a solution for everybody, yet. :D

Quoting Osvaldo Andreaus:
With this mod the default ` shortcut doesn't seem to work (nuke 11).


Hey Osvaldo!

Sorry to hear this. To be honest: I didn't try with the original shortcut as it doesn't exist on my german keyboard. :D
I'll see, if I can replicate this.
 
 
0 # Osvaldo Andreaus 2019-10-16 00:18
It's ok, I don't blame you :lol: I blame the foundry :D

I'm actually having a hard time to get my artists to use W_hotbox, I feel like maybe if each button also had a mouse over info box after tot seconds that might encourage them to explore it more.

Just throwing it there, maybe Wouter would consider it as a future feature.
 
 
0 # karim elbarody 2019-10-22 21:25
Hi Wouter, thank you for this lovely tool. excuse me i'm not experienced in scripting. so i'm trying to add a button to change root fps to film = 24 ,video = 25

i'm adding it to the all tab. can you please help me with that
 
 
0 # Wouter Gilsing 2019-10-28 16:50
Hi Karim,

nuke.Root().knob('fps').setValue(24)

or

nuke.Root().kno b('fps').setVal ue(25)
 
 
0 # jean-luc azzis 2019-12-12 18:17
Hey Wouter

Is there any known issues with Nuke12? It's behaving really weird on my box. most of the button don't work. folders definitely don't work, but some of the buttons work occasionally. I can't even pinpoint which work or not because it changes.

Cheers. Jean-Luc
 
 
0 # Wouter Gilsing 2019-12-12 22:35
Hi Jean-Luc,

That doesn't sound familiar. Do you happen to have a bit more information? Version operating system for example. Also, for the buttons that dont work; do you get an error message in the shell?

Thanks!
 
 
0 # jean-luc azzis 2019-12-13 00:45
Hi Wouter.

I'm on Mac OS 10.13.6. Hotbox works perfectly with nuke11.3v4. I have just upgraded hotbox to 1.8 but it's still doing the same thing. There's no message in the error console. After trying a bit more, I can open some folders if I move slowly over them. but the same folder/button doesn't always work. What I mean is that if I go over a button, sometime it will highlight itself and I can click it, then if I move away and come back to it, it may or may not work again. when it doesn't work, nothing happens. it doesn't react. It's only with nuke 12.0v2. Any ideas?
Could it be related to the GUI update?
 
 
0 # Lucas Pfaff 2019-12-13 09:56
Quoting Wouter Gilsing:
Hi Jean-Luc,

That doesn't sound familiar. Do you happen to have a bit more information? Version operating system for example. Also, for the buttons that dont work; do you get an error message in the shell?

Thanks!

I'd chime on this too, sounds an awful lot like the troubles I have in Nuke 12 that I posted here 2019-10-02 (comment might have been overlooked). I'm on OSX 10.13.6 as well.

Best,
Lucas
 
 
0 # jean-luc azzis 2019-12-13 18:39
Hi Lucas. I just read your comment from 2019-10-02 and it is exactly what I'm experiencing. I'm kind of glad I'm not the only one. :)
 
 
0 # Johannes Møgelvang 2019-12-18 10:34
Hi All
W_Hotbox is one of my absolute favorite Nuke add-ons, but I have exactly the same experience. I'm on OSX 10.13.6. In Nuke 11.3v4 everything works perfectly as expected, but in Nuke 12.0v1 hotbox folders, the hotbox manager and most of the hotbox dosn't work.

Cheers
Johs
 
 
0 # Justin Smith 2020-01-07 12:35
Plus one unfortunately
 
 
0 # jean-luc azzis 2020-01-07 20:02
I have upgraded to Mac OS 10.14.6 and it's working again.
 
 
0 # Wouter Gilsing 2020-01-07 22:19
Hi guys, sorry for the late reply. I just run an quick test on Nuke12 (I'm still at osx 10.12 at home, and only recently installed Nuke12) and I can confirm I do experience the same problems.

For some reason the cursor entering the button isn't registering properly... It works a lot better more when you move your cursor very slowly (just an observation, I wouldn't dare to suggest that as a workaround, haha).

I'll keep investigating, but I'm very glad to hear that updating the operating system seems to resolve it.

Cheers,
Wouter
 
 
0 # harsh gupta 2020-02-21 16:52
hi, I have been trying to install the W_hotbox from tomorrow but its not working . In the installation its written to just paste the line in menu.py so I di that and pasted the icons folder in.nuke folder
But now its not working even nuke is not opening it shows error and in terminal the error looks something like this

raceback (most recent call last):
File "C:/Program Files/Nuke11.0v 2/plugins/menu. py", line 10, in
import W_hotbox, W_hotboxManager
File "C:/Program Files/Nuke11.0v 2/plugins\W_hot box.py", line 1423, in

editMenu.addCommand('-', '', '')
 
 
0 # Kien Nguyen 2020-02-28 07:00
Hi Wouter
Can you update the bundled buttons for the new shuffle node introduced in 12.1.I have very little knowledge in python so i can't do it myself.
Thank you !
 
 
0 # Bernd M 2020-04-30 11:04
Hey Kien, is it an issue so you can't use the hotbox properly? do you need the new shuffle node? The old one is still available via nuke.createNode ("Shuffle"), the new one will be created with nuke.createNode ("Shuffle2").
 
 
0 # Wouter Gilsing 2021-03-28 23:22
Hey Kien,

Unfortunately Im not a fan of the new Shuffle at all (I think it's quite a downgrade actually), so I'll personally continue using the old Shuffles.

However, In the hotbox manager, under Single, you can simply add a new class called Shuffle2. Any buttons you will add here will show up when you have the new Shuffle selected.

I haven't looked into the new Shuffle's syntax, but I guess you can use the code for the old shuffles as a starting point.

This is the syntax for the new Shuffle

Code:node.knob('mappings').setValue([(0, 'rgba.red', 'rgba.green'), (0, 'rgba.red', 'rgba.blue'), (0, 'rgba.red', 'rgba.alpha')])


You first specify the source, and then the destination. Eg
(0, 'rgba.red', 'rgba.green') would pipe the red channel into the green channel.

Hope that helped!
 
 
0 # Giacomo Verri 2020-05-15 13:29
Hey Wouter, incredible tool! I can't seem to get it to work properly on Nuke 11.2v6, despite it working perfectly on 10.5v1.
Is it natively compatible with this version of Nuke or do I have to tweak a few things for it to work?
On 11 I seem to get just a black popup window when opening it.
Might be just a one time bug but cheers for any help.
 
 
0 # Wouter Gilsing 2021-03-28 23:21
Hi Giacomo,

Are you on Linux by any chance? Nuke11 switched to PySide2, which changed a couple of things. Depending on your configuration, you might need to enable a compositing window manager.

In case of Centos7 with a MATE/GNOME environment:

In your linux taskbar, go to System - Preferences - Windows and and tick "Enable software compositing window manager"

If you can't see this option, have a google for "compositing window manager "
 
 
+2 # darren coombes 2020-06-08 23:53
any chance of an update so it will use the new shuffle nodes in nuke 12.1v2 ? Or is it just a matter of changing the node class?
 
 
0 # Wouter Gilsing 2021-03-28 23:17
Hey, sorry for the late reply. Unfortunately Im not a fan of the new Shuffle at all (I think it's quite a downgrade actually), so I'll personally continue using the old Shuffles.

However, In the HotboxManager, under Single, you can simply add a new class called Shuffle2. Any buttons you will add here will show up when you have the new Shuffle selected.

I haven't looked into the new Shuffle's syntax, but I guess you can use the code for the old shuffles as a starting point.

This is the syntax for the new Shuffle

Code:node.knob('mappings').setValue([(0, 'rgba.red', 'rgba.green'), (0, 'rgba.red', 'rgba.blue'), (0, 'rgba.red', 'rgba.alpha')])


You first specify the source, and then the destination. Eg
(0, 'rgba.red', 'rgba.green') would pipe the red channel into the green channel.

Hope that helped!
 
 
+1 # Serhiy Protsenko 2020-09-08 09:04
Hi all. I have some problems on Nuke 12+. When I'm trying to open manager nuke says "object of type 'NoneType' has no len()". How to fix it? I've been using it from v11 and not opened the manager since the first setup. But now I want to add some scripts. Thanks.

Log:
Traceback (most recent call last):
File "", line 1, in
File "C:/Program Files/Nuke12.1v 4/plugins\W_hot boxManager.py", line 3665, in showHotboxManag er
hotboxManagerIn stance = HotboxManager(p ath)
File "C:/Program Files/Nuke12.1v 4/plugins\W_hot boxManager.py", line 263, in __init__
self.scriptEdit orTemplateMenu = ScriptEditorTem plateMenu(self)
File "C:/Program Files/Nuke12.1v 4/plugins\W_hot boxManager.py", line 2306, in __init__
self.initMenu()
File "C:/Program Files/Nuke12.1v 4/plugins\W_hot boxManager.py", line 2314, in initMenu
self.addUserTem plates(folder = self.templateFo lder)
File "C:/Program Files/Nuke12.1v 4/plugins\W_hot boxManager.py", line 2351, in addUserTemplate s
if len(name) > maxNameLength:
TypeError: object of type 'NoneType' has no len()
 
 
0 # kaushal chouhan 2020-09-16 16:28
Hey Wouter Gilsing
Amazing tool man but I'm having some problems with it.

First problem is that when I slick "repair" it showing me a error message "'module' object has no attribute 'repairHotbox'"

Second problem is that I'm creating a new button in "All" but I can not see anything over there, I can not delete anything or edit anything and when I press the shortcut key on the node graph it's showing me a blank button and other buttons called "New Item"

I want to fully customize it according to my use but I'm unable to do that.
 
 
0 # Sergio Pickelny 2020-11-20 02:57
Hi Wouter,

First of all, thanks for this amazing tool!

I would like to add your W_smartAlign in Hotbox but I guess that different shortcuts (alignments) should be different buttons. Is there any easy way to do it? Should I split the code?
I will appreciate your help.

Thanks!
 
 
0 # 洛 阳 2021-01-04 12:50
How do you do!I really like this tool,It brings me convenience,Tha nk you very much。

But I found that I'm customizing when,Nuke would be very unstable and collapse,Why is that?
 
 
0 # Osvaldo Andreaus 2021-02-05 18:01
Hi Wouter, I have a weird request. Is it possible to scale down a button when it's clicked or change it's color to give it a "Pressed" state?
I'm using w_hotbox in remote through terradici and I have to use the launch mode in single tap and sometimes I'm not sure if a button press registered correctly.
 
 
0 # Tíscar Coig-O'Donnell 2021-03-12 17:11
Hi! Thanks for this tool, it seems really helpful. I'm having a couple of issues... When I press the launch shortcut, the menu interface continually blinks so I can't use it. I tried to change the key assigned for the launch but I can't see the W_hotbox preferences tab added to the nuke preferences panel. I'm on Windows 10 and Nuke is version 12.2.
 
 
0 # Osvaldo Andreaus 2021-03-12 17:48
Just out of curiosity try to open the preferences12.2 .nk in the .nuke folder. See if toward the bottom there's a variable that says:
Quote:
hotboxTriggerDropdown "Press and Hold"
maybe try to change it to:
Quote:
hotboxTriggerDropdown "Single Tap"
if you don't have it add it under:
Quote:
addUserKnob {4 hotboxOpenManagerOptions.....
 
 
0 # Tíscar Coig-O'Donnell 2021-03-12 19:07
Hi Osvaldo thanks for the help. In that .nk file I only see this line with that name:

addUserKnob {4 hotboxTriggerDr opdown l "Launch mode" t "The way the hotbox is launched. When set to 'Press and Hold' the Hotbox will appear whenever the shortcut is pressed and disappear as soon as the user releases the key. When set to 'Single Tap' the shortcut will toggle the Hotbox on and off." M {"Press and Hold" "Single Tap"}}

I suspect that the blink problem has to do with the default key used. On other occasions, I have noticed strange behavior when using that key as a shortcut in other programs. That's why I was trying to change the shortcut, to see if it would solve the problem. But I can't see the panel with the properties either, so I don' t know where to look to solve it.
 
 
+1 # Osvaldo Andreaus 2021-03-12 21:45
I'm not sure why the properties are not showing up. I noticed that on nuke 13 when I was testing but I suspected it was that beta version.
you can try to manually trigger removing and adding the preferences again, in the script editor try:
Quote:
import W_hotbox
W_hotbox.deletePreferences()
W_hotbox.addPreferences()
see if the preferences show up.

but anyway here's the line in the nuke preference files that you can change:
Quote:
addUserKnob {1 hotboxShortcut l Shortcut t "The key that triggers the Hotbox. Should be set to a single key without any modifier keys. Spacebar can be defined as 'space'. Nuke needs be restarted in order for the changes to take effect."}
hotboxShortcut B
 
 
0 # Tíscar Coig-O'Donnell 2021-03-12 23:18
The preferences didn't show up, but the shortcut is changed finally so I can use it without the blink issue! Thanks so much for the help :-)
 
 
+1 # Wouter Gilsing 2021-03-28 23:05
Hey, sorry for the late reply. Nuke 12.2 seemed to have introduced a bug with the preferences... As Osvaldo pointed out the preferences are there, they are just not showing...

I just released version 1.9, which has a fix to work around that bug, so you should be able to see the preferences again. :)
 
 
0 # Tíscar Coig-O'Donnell 2021-04-29 10:46
Awesome! Thanks so much.

Cheers!
 
 
0 # Tíscar Coig-O'Donnell 2021-04-29 10:46
Awesome! Thanks so much.

Cheers!
 
 
0 # Tíscar Coig-O'Donnell 2021-04-29 18:17
Hi Wouter, I hope all is going well :) I installed the new version and now I can see the preferences tab but it only appears the first adjustments ("General" settings with the paths to the files and the three buttons under them). I have tested it in Nuke Indie 13, NukeX 13, and Nuke Indie 12.2v6. The strangest thing is that I was able to see all the preferences options in version 12.2.v6 the first time I launched it, but never again. I tried uninstalling and installing again (Nuke and W_Hotbox) but with the same result.

I will look at it again tomorrow in case I am missing something...
 
 
0 # Victor Perez 2021-03-18 07:16
Hi Wouter! I hope you are doing well. Do you have plans to release your amazing Hotbox compatible for Nuke 13?
 
 
+2 # Wouter Gilsing 2021-03-18 08:05
Hi Victor!

Totally! I'm a little busy during the week, so I hope to have some spare time during the weekends to have a look at what's up.

I'll drop you a message when I got it running.

Cheers!
 
 
0 # li zhaohui 2021-03-27 11:24
Looking forward to the update
 
 
+3 # Wouter Gilsing 2021-03-28 23:03
I just uploaded v1.9 which adds support for Nuke13!
 
 
0 # Sal Sol 2021-04-14 16:38
Quoting Victor Perez:
Hi Wouter! I hope you are doing well. Do you have plans to release your amazing Hotbox compatible for Nuke 13?

hi Victor, what about your V tools, is it up dated :), cant wait to update it as well. thanks
 
 
+3 # Johannes Hilburg 2021-05-17 20:08
I had an error importing the hotboxArchive.

fixed it by changing 2 lines in the W_hotboxManager .py of the importHotboxArc hive(self) function to:

command.append('with tarfile.open(r" {}") as archive:'.format(archiveLocation))
command.append(' archive.extractall(r"{}")'.format(importedArchiveLocation))

this way I dont get the Unicode error.
 
 
0 # Tvoru Dobro 2021-06-18 10:08
Awesome!!!!
Could you tell me please, how to use the RMB to call the W_hotbox menu?
thaks a lot!
 
 
0 # Jack McAllan 2021-10-01 19:57
Is there a way to add a shortcutContext to this so that it doesn't write over the ' hotkey for viewer? I'm not sure how that'd be handled in the code compared to what I'm used to. I can't just change the hotkey as more artists have gotten used to that as the hotkey for this, but I have new users who've never used this who want their hotkey back. Looking for ways I don't need to code a separate hotkey for this just for those users.
 
 
0 # Lundy Hu 2021-12-05 06:45
Mirror error of function in Nuke 13 ?support ?

:eek:
 
 
0 # Lundy Hu 2021-12-05 06:58
sorry ~
Solved !
I add the int()
 
 
0 # Lundy Hu 2021-12-05 06:48
Mirror error of function in Nuke 13 ?support ?

:eek:
 
 
0 # Lundy Hu 2021-12-05 06:48
Mirror error of function in Nuke 13 ?support ?

:eek:
 
 
0 # Lundy Hu 2021-12-05 06:50
Mirror error of function in Nuke 13 ?support ?

:eek:
 
 
0 # Lundy Hu 2021-12-05 06:58
sorry ~
Solved !
I added the int()
 
 
+1 # Natalia Raz 2022-01-10 16:39
Hello Wouter! I'm trying to instal your awesome product, but have the issue importing .hotbox.

windows 10, nuke 13.1

W_hotbox v1.9, built March 28 2021.
taxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

Thanks Johannes Hilburg from the thread, works well
 
 
0 # Austin Brown 2022-01-11 03:29
Hello Wouter, thanks for the tool! I've used it for forever, my time to ask for help with a bug.

I'm currently running nuke 12.2 and Centos 7.4. I can use hotbox exactly one time per session, and the second time I get this error:

Traceback (most recent call last):
File "/home/****/abr own/.nuke/pytho n/W_hotbox.py", line 1357, in showHotbox
hotboxInstance = Hotbox(position = lastPosition)
File "/home/****/abr own/.nuke/pytho n/W_hotbox.py", line 124, in __init__
self.topLayout = NodeButtons()
File "/home/****/abr own/.nuke/pytho n/W_hotbox.py", line 294, in __init__
if self.path[-1] != '/':
IndexError: string index out of range


Any help? Thanks!


**** EDIT:

found your "Enable desktop effects" tip earlier in the thread, and that worked for me. I now have the ugliest version of KDE In the world, but at least hotbox works. Cheers.
 
 
+1 # David Sanchez 2022-01-26 16:07
Hi, I've been having trouble importing buttonBundle.ho tbox. when I go to Import Archive and open the file nothing seems to happen. did anyone get this same issue?

thanks
David
 
 
0 # Temuujin Khongorzul 2022-02-06 05:12
Me too, import is not working. I am using nuke 13.1v2 and just correctly installed w_hotbox. checked every preference and folders of w_hotbox. Manual installation is working.
 
 
0 # Temuujin Khongorzul 2022-02-06 05:12
Me too, import is not working. I am using nuke 13.1v2 and just correctly installed w_hotbox. checked every preference and folders of w_hotbox. Manual installation is working.
 
 
+1 # Temuujin Khongorzul 2022-02-06 05:16
Wouter Gilsing said that. "Rename your archive file for somithing.hotbo x to something.tar and unpack the tar. This should give you three folders ('Single', 'Multiple' and 'All'). Place those in the W_hotbox folder and you should be good to go." it is working for importing bundle.
 
 
0 # RIBEIRO ALEXANDRE 2022-01-27 16:11
Hi,
Amazing Tool ! Love it so much.
I can colorize a button but not a group. It's Normal ?
Can be very useful for visual organisation.

Thank you so much!

Alexandre
 
 
0 # Wouter Gilsing 2022-02-04 22:16
Hi Alexandre,

You this was done on purpose to make groups visually distinguishable from regular buttons.
 
 
0 # shakti mehra 2022-02-04 16:37
Hi Wouter,
First I like say this tool is amazing I love it
Can you make it so it also works on groups i know if I convert them to gizmos it will work but while comping I prefer working with groups rather then gizmos if it is possible I'll be really great full
I am just guessing but maybe you can make it so it works by taking the group name
For example edgefromalpha1 it removes the number and treat them as a class
 
 
0 # Wouter Gilsing 2022-02-04 22:13
Hi Shakti,

This already works the way you describe! Taking the name of the group, ignoring any digits at the end.

Check around 5:50 of the video: https://vimeo.com/179855054

Cheers
 
 
0 # shakti mehra 2022-03-03 14:03
Thank you will check
 
 
0 # Juha Takabe 2022-03-05 21:53
Hi, tried to load preset by importing buttonBundle.ho tbox, but nothing happens after hitting open. Not sure why.
 
 
0 # Juha Takabe 2022-03-05 22:03
I am getting flollowing error: SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
 
 
+1 # Tim Segulin 2022-03-14 19:35
Check your buttonBundle.ho tbox file.
Mine was a gzipped tar file.

I renamed a copy then un-archived that, which produced a new dir containing 3 subdirs - All, Multiple and Single. These all contain python text files that drive the shipped tools (e.g.'001.py').

I renamed this un-archived dir 'buttonBundle.ho tbox'

I copied it to the dir I had listed under Nuke Preferences | W_hotbox | General | Hotbox location

In the W_hotbox manager, (with Clipboard unchecked) I used the [Import Archive] button to locate my new 'buttonBundle.ho tbox' folder for W_hotbox to find and everything seems to work in NuxeX 13.1v1

----------------------------------------------------------------

Thanks Wouter for sharing such an amazing Nuke productivity tool with the community!

The Foundry really should license it from you for future releases. I'm sure I will be studying your nifty python code for a long time. :-)
 
 
0 # raghav prasad 2022-03-28 10:57
Hi , after installing W-hotbox in Nuke. As you said to Launch Nuke. Open the Preferences Panel and navigate to the W_hotbox tab . But to navigate to W_hotbox , W_hotbox is not visible in Preferences Panel in nuke. As said by the instructions I copied both 'W_hotbox.py' and 'W_hotboxManage r.py'and pasted in part of the nuke plugin path.And I also coped the folder named 'icons' to .nuke folder.
 
 
0 # raghav prasad 2022-03-28 10:57
Hi , after installing W-hotbox in Nuke. As you said to Launch Nuke. Open the Preferences Panel and navigate to the W_hotbox tab . But to navigate to W_hotbox , W_hotbox is not visible in Preferences Panel in nuke. As said by the instructions I copied both 'W_hotbox.py' and 'W_hotboxManage r.py'and pasted in part of the nuke plugin path.And I also coped the folder named 'icons' to .nuke folder.
 
 
0 # Vladislav Parfentev 2022-04-28 15:31
To make HotBox work for 2 languages you need to make 2 shortcuts in W_hotbox.py. In the end of script you can find

editMenu.addCommand('W_hotbox/Open W_hotbox', showHotbox, shortcut)

So you only need to add the second one and make different names for menus. So final code will be (example):

editMenu.addCommand('W_hotbox/Open W_hotboxENG', showHotbox, shortcut)
editMenu.addCommand('W_hotbox/Open W_hotboxRUS', showHotbox, "ё")

As result hotbox works on Eng and Rus languages

PS: Wouter Gilsing, big thanks for HotBox!
 
 
0 # Lundy Hu 2022-04-29 08:41
Hi ~

Is it possible to add an option for hotbox?
Sort buttons alphabetically.
Now these buttons are so messed up.

Thanks for your Hotbox~
 
 
+4 # Aleh Maksimovich 2022-05-20 15:58
don't work import
buttonBundle.ho tbox
 
 
0 # baltazar gnomonich 2022-05-29 12:23
Hey Wouter, I would also like to appreciate your work, as it helps to speed up the execution of everyday tasks. And I would really like to know 2 things.

1. Is there a easy way to copy paste setups similar to "Projection Setup" and add in the node graph with a push of a button? Because a simple copy - pasting in the manager is not working.

2. Is there a way to execute external gizmos/groups not stored in the .nuke folder as a buttons.

For example I can't install a TX_HueKeyer gizmo in the studio machine, so simple nuke.createNode ('TX_HueKeyer ') command won't work, but I can use groups. So I have stored TX_HueKeyer group as a code in the w_hotbox manager, but every time I have to copy from manager and paste it in the node graph to use it.

I hope I could explain my questions :-)
 
 
0 # Joe Censoplano 2022-06-28 22:01
did they change a hotkey in nuke 13? I have hotbox installed but when I hit the " ` " key it says in the script editor that its trying to toggle the viewers
 
 
0 # Joe Censoplano 2022-06-28 22:01
did they change a hotkey in nuke 13? I have hotbox installed but when I hit the " ` " key it says in the script editor that its trying to toggle the viewers
 
 
0 # Austin Brown 2022-06-29 16:03
Hello again! Does anyone know how to set KDE's "Enable Desktop Effects" setting equivalent for Gnome? I can't get Hotbox to show up.

Thanks!
 
 
0 # li zhaohui 2022-09-08 14:24
nuke13 Cannot import. Hotbox
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
 
 
+3 # li zhaohui 2022-09-08 14:25
nuke13 Cannot import. Hotbox
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
 
 
+2 # li zhaohui 2022-09-08 14:25
nuke13 Cannot import. Hotbox
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
 
 
+2 # Kenzo JOCHER 2022-10-11 09:01
Hi Wouter !
I have the following issue since I tried to change de shortcut from " ' " to " ² " :

Traceback (most recent call last):
File "C:/Users/K.JOC HER/.nuke/menu. py", line 242, in
import W_hotbox, W_hotboxManager
File "C:/Users/K.JOC HER/.nuke/W_hot box\W_hotbox.py ", line 1416, in
addPreferences( )
File "C:/Users/K.JOC HER/.nuke/W_hot box\W_hotbox.py ", line 939, in addPreferences
shortcut = preferencesNode.knob('hotboxShortcut').value()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 0: invalid start byte


Don't know what to do :/
If anyone can help me please
 
 
0 # Antoni Zakheos 2022-10-18 12:02
Great tool that we managed to install on a mac, i tried installing on a windows machine running nukeX 13.2v2 and have installed successfully but when trying to import the buttonbungle.ho tbox through the hotbox manager...after selecting the file from the nuke file browser the hotbox manager closes on its own and the buttonbundle preset dont import. no other errors show up in nuke.

any help would be great!
 
 
+1 # Antoni Zakheos 2022-10-18 12:02
Great tool that we managed to install on a mac, i tried installing on a windows machine running nukeX 13.2v2 and have installed successfully but when trying to import the buttonbungle.ho tbox through the hotbox manager...after selecting the file from the nuke file browser the hotbox manager closes on its own and the buttonbundle preset dont import. no other errors show up in nuke.

any help would be great!
 
 
+2 # karim elbarody 2022-10-23 18:46
import w_hotbox in menu py says syntax error
 
 
+1 # darren coombes 2022-12-15 07:11
I can't get this to work in Nuke Non-Commercial 14.0v2.
Nuke stops loading and errors when loading this from menu .py
It works in nuke 12 / 13 thought, just not 14.
Any ideas ?
 
 
0 # darren coombes 2022-12-15 07:11
I can't get this to work in Nuke Non-Commercial 14.0v2.
Nuke stops loading and errors when loading this from menu .py
It works in nuke 12 / 13 thought, just not 14.
Any ideas ?
 
 
+5 # Tim Segulin 2023-02-07 21:40
I installed this in Nuke 11 some years ago and it was absolutely brilliant.

I can install W_Hotbox 1.9 in in Nuke 13.2 and it works with the backtick. However when I attempt to load buttonBundle.ho tbox nothing happens..

I have the original python file hierarchy (All, Multiple, Single etc). How do I tell the Hotbox Manager where to find them?

Apologies in advance if you are tired of dumb newby questions like this.
 
 
0 # Martin Rombos 2023-04-19 19:05
Is there any way to assign a shortcut to anything inside the "Workspace" menu?

This commands are not listed in w_hotbox.

And I can't seem to access them by scripting in menu.py:

menubar=nuke.menu("Nuke")
m=menubar.addMenu("&Workspace")
m.addCommand("&Reset Workspace", "shift+4")


I can't even add a new command inside the Wokspace menu. Any ideas? Thanks!
 
 
0 # Martin Rombos 2023-04-19 19:05
double post, sorry
 
 
0 # JW vfx 2023-05-03 11:36
I managed to import buttonBundle.ho tbox file through nuke 12.2v6, and then in Nuke 14.0v4, point it to that location and the manager presets work and can be edited. However, you can only access the hotbox manager through the shortcut key, and not through the menu
 
 
+2 # JW vfx 2023-05-03 11:36
I managed to import buttonBundle.ho tbox file through nuke 12.2v6, and then in Nuke 14.0v4, point it to that location and the manager presets work and can be edited. However, you can only access the hotbox manager through the shortcut key, and not through the menu
 
 
+1 # mostafa khaled 2023-06-24 19:39
i think you need to change :
```
if len(extraReposi tories) > 0:
menubar.addComm and('W_hotbox/- ', '', '')
for repo in extraRepositori es:
menubar.addComm and('W_hotbox/S pecial/Open Hotbox Manager - %s'%repo[0], 'W_hotboxManage r.showHotboxMan ager(path="%s") '%repo[1])
```
to :
```
try:
if len(extraReposi tories) > 0:
menubar.addComm and('W_hotbox/- ', '', '')
for repo in extraRepositori es:
menubar.addComm and('W_hotbox/S pecial/Open Hotbox Manager - %s'%repo[0], 'W_hotboxManage r.showHotboxMan ager(path="%s") '%repo[1])
except Exception as e:
pass
```
to avoid the following error :
"Traceback (most recent call last):
File "C:/Users/xxx/. nuke/menu.py", line 7, in
import W_hotbox
File "C:/Users/xxx/. nuke/W_hotbox_v 1.8\W_hotbox.py ", line 1458, in
menubar.addComm and('W_hotbox/- ', '', '')
NameError: name 'menubar' is not defined"

when you try to execute "nuke.scriptNew ("")" or "nuke.scriptOpe n("")"
 
 
0 # mostafa khaled 2023-06-25 19:04
I noticed another issue related to "nuke.scriptNew ("")" or "nuke.scriptOpe n("")" which is as follows:
The rules buttons for example "Stamps" are duplicated in the new script!
 
 
+3 # Frank Rueter 2023-07-31 19:34
I am testing this in Nuke 14 and it looks like importing bundles doesn't work. Easy workaround is to rename the bundle to .zip and unzip it manually into the right structure.
However fiters are not saved either it sems, i.e. when I create a new filter a file called _rule.py is saved but it has 0 bytes.
Any chance for an update?
 
 
0 # greg alex 2024-01-13 14:06
Thank you for this tool, it's working for me in Nuke 15 but I can't seem to import the buttonBundle.ho tbox file through both the menu and shortcut. any help please?
 

You have no rights to post comments

We have 2284 guests and 77 members online