labelAutobackdrop v1.0
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Geoffroy Givry
based on the Foundry's Autobackdrop.py with a nuke panel asking for the label and the name of your autobackdrop, with 4 colors presets and 4 different font size. the Default color is grey.
Requirements:
6.0, 6.1, 6.2, 6.3 or later
Linux, Mac, Windows
6.0, 6.1, 6.2, 6.3 or later
Linux, Mac, Windows
07 Aug 2011
424
You can add this line to your menu.py:
menuToolbar = nuke.toolbar('Nodes')
geoffToolbar = menuToolbar.addMenu('GeoffTools')
geoffToolbar.addCommand('Shortcut/Backdrop', 'autobackdrop.autoBackdrop()', 'Alt+m')
'Alt+m' is the hotkey I chose for this script, feel free to change if you want.
Enjoy ;-)
Geoffroy.
Please login in order to download these files.
Comments
"name 'autoBackdrop' is not defined"
I have no knowledge of python so i can't really troubleshoot it myself sorry.
I'm using nuke 6.2v2 x64.
best regards
You can copy this code to your menu.py and copy the labelAutobackdr op.py in the same folder (it should be: ~/.nuke):
import labelAutobackdrop
menuToolbar = nuke.toolbar('Nodes')
geoffToolbar = menuToolbar.addMenu('GeoffTools')
geoffToolbar.addCommand('Shortcut/Backdrop', 'labelAutobackd rop.autoBackdro p()', 'Alt+m').
Sorry for the confusion Romain, it was the wrong code for the menu.py... Hope you will enjoy it!
Geoffroy.
thank you for your answer. I just tried your script and i find it very usefull, I think it improves greatly the use of the backdrop node making it easy to color/name it without those annoying extra clicks that are otherwise required.
Romain
Seems like this tool doesn't like Nuke 13+. It gives me this error.
"%x format: an integer is required, not float"
Is there something that needs to be updated to get it to work? Thanks!
It's py3 division changes, after some tinkering, wrapping in() around the color multipliers fixed it.
hexColour = int('%02x%02x%0 2x%02x' % (r*255,g*255,b* 255,1),16) ===> hexColour = int('%02x%02x%0 2x%02x' % (int(r*255),int (g*255),int(b*2 55),1),16)
RSS feed for comments to this post