backdropTools v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Ivan Busquets
A set of tools to quickly change colors and fix layering problems with backdrops
Requirements:
6.3 or later
30 Apr 2012
945

Description

backdropTools.py is a module that contains a few simple but convenient functions to deal with:

  • Changing color of backdrops
  • Reorder smaller backdrops hidden behind bigger ones

The module comes with some predefined keyboard shortcuts, but you can change, or keep just the ones you want.

Color Tools:
  • Spread Backdrop Hues   (Alt+Shift+H) :
     select multiple backdrops and automatically recolor them so each one has a different color, covering the whole hue range.

 

  • Shift Backdrop Hue  (Shift+H) :
    with one or more backdrop nodes selected, step through different hues until you find one you like

 

  • Increase / Decrease Backdrop Luminance   (Shift+> / Shift+<) :
    Keep the color of the selected backdrop(s), but make it darker/brighter.

 

  • Increase / Decrease Backdrop Saturation   (Alt+. / Alt+,) :
    Keep the color of the selected backdrop(s), but make it more or less saturated.
backdropTools_2

 

Backdrop reordering:
  • Fix Backdrop Depth (Ctrl + Shift + A):
     Useful when you've got multiple backrops, and then create a new one and it sits on top, hiding the existing ones.
    The function/shortcut will try to fix the layering for either all the selected backdrops, or all the backdrops in the script if none is selected. 
    It doesn't try to find what backdrops are inside others. Instead, it orders them based on size (area), which should work for most situations. 

backdropTools_1

How to install

Download backdropTools.py, and copy it to your ~/.nuke directory, or anywhere whithin your Nuke's search path.

Then, for a basic installation add the following to your menu.py:

 

import backdropTools
backdropTools.addStandardShortcuts()

 

 

If you want to change the shortcuts with your own, look inside backdropTools.py and change the different menu entries.

 

Notes

Most of the above functions also have customizable parameters. Type:

 

help(backdropTools)

 

 

... to get a more detailed description on each function and the parameters you can use. 

There's also some convenience functions to convert back and forth from RGB, HSV, HSL, and the 32-bit int used by the tile_color knob, so you can reuse those in your own scripts to help deal with changing the tile color of other nodes.

 

Hope you enjoy it!

Please login in order to download these files.

Comments   

 
+2 # Victor Perez 2012-04-30 09:39
Thanks Ivan. This tool is very useful and the description is -as you always do- flawless! Bravo!
 
 
0 # Ivan Busquets 2012-05-01 00:14
Thanks Victor, that's very kind of you.
Glad you liked it.

Cheers,
Ivan
 
 
0 # Philippe HUBERDEAU 2012-05-01 15:08
Hehe, funny, i'm also writing some python around backdrops, but haven't really finished it yet.
Some similar ideas (depth fixing, color) but mine is tool based so a bit different. Considering your tool, i will rather concentrate on my other features to make it an ally of backdrop_tools rather than a pale copy ! Especially the reordering is pretty much efficient with your approach !
I will definitely use it..Thanks Ivan
Cheers,
philhub
 
 
0 # Ivan Busquets 2012-05-01 23:50
Hey Philippe,

Of course, feel free to use, re-use and modify any bits you want :-)
For the backdrop reordering, you'll notice there's 2 different methods, and one is definitely more efficient than the other (but it uses backdrop.select Nodes(), which is only available from 6.3v5 onwards).
In fact, I only found about the existence of that method recently, and it's what made me go back to it and change it, because it's nicer and faster.
The rest of the code is from quite a while ago.

Thanks,
Ivan
 
 
0 # Alexey Kuchinski 2012-11-06 08:13
Thanks Ivan, re ordering is very useful.
cheers!
 
 
0 # sebastian brown 2013-01-16 16:03
RAd tool Thanks!!

I have been trying to change the step value for luma which at default is 0.1 I believe. For some reason it isn't taking ....I changed it to this:

def shiftBackdropLu ma(step = 0.0001, wrap = True):

am I missing something?
 
 
0 # Alexey Kuchinski 2015-10-23 09:25
Hi, Ivan, the fixBackdropDept h() is not working under Nuke9,
did someone encounter same problem?
the rest of commands are working as expected
thank you
 
 
0 # Alexis Bélanger 2016-01-19 17:55
I have installed this the right way. I can see it in my Edit tab in nuke and I got no error message, but for some reason, nothing happens when I do the shortcuts or even go in the Edit/Backdrop tab menu and select an operation, Fix Layering for example. Any clue of what the issue is? Used this tool in the pass without any problem and it's very cool!

Thanks!
 
 
0 # sf 2021-08-09 23:08
Excellent tool Ivan! Hoping for a nuke 13 version that works with the new python update. Is that on the roadmap by chance? Thanks for all you've done for the community.

SF
 

You have no rights to post comments

We have 2930 guests and 111 members online