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
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.

 

 

LabelBackDrop

 

LabelBackDrop2_geoff

 

 

Please login in order to download these files.

Comments   

 
0 # romain biermann 2011-08-20 06:07
hi Geoffroy i tried using your script and i get an error:

"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
 
 
0 # Geoffroy Givry 2011-08-22 03:52
Hi Romain,
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.
 
 
0 # romain biermann 2011-08-22 06:59
Hi 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
 
 
0 # Mani Trump 2023-12-14 15:16
Hey Geoffroy,

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!
 
 
0 # austin meyers 2024-03-28 21:33
Quoting Mani Trump:
"%x format: an integer is required, not float"


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)
 

You have no rights to post comments

We have 3646 guests and 132 members online