backdropTools v1.0
This location is for Registered Users Only.
Perhaps you need to login or register.
6.3 or later


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:
|
![]() |
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.
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!
Comments
Glad you liked it.
Cheers,
Ivan
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
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
cheers!
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?
did someone encounter same problem?
the rest of commands are working as expected
thank you
Thanks!
SF
RSS feed for comments to this post