presetBackdrop v1.2


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Victor Perez
Create quick preset customised Backdrops
Requirements:
4.8, 5.0, 5.1, 5.2, 6.0, 6.1, 6.2, 6.3, 7.0 or later
Linux, Mac, Windows
24 Aug 2011
2683

Preset Backdrop 1.2

Create quick preset customised Backdrops. Press ctrl+alt+b (or go to the menu 'V!ctor/Preset Backdrop'. This function pop up a panel to choose your preset (and optional custom label) and creates the Backdrop around your selected nodes.

Available presets:

Additive Key

Bloom

Camera Projection

Camera Setup

CG

CG: Ambient

CG: Diffuse

CG: Reflection

CG: Refraction

CG: Shadow

CG: Specular

Cleanup

Controllers

Color Correction

Despill

Edge Fixes

Elements

FX

Key

Matte

Lens Flare

Light Setup

Light Wrap

Output

Previous Versions

References

Relight

Resources

Rig Removal

Roto

Set Extension

Stereo Fixes

Temp

Test

Transformations

 

Every preset has its color and icon. You can modify the label of any Backdrop on creation or just leave it blank for the default label.

Add to menu.py

1
2
3
import presetBackdrop
VictorMenu = nuke.menu('Nuke').addMenu('V!ctor')
VictorMenu.addCommand('Preset Backdrop', 'presetBackdrop.presetBackdrop()', 'ctrl+alt+b')

 

Copyright (c) 2011, Victor Perez.
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. -Neither the name of Victor Perez may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT HOLDER OR CONTRIBUTORS 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   

 
-2 # Viktor Daniel 2011-08-22 11:23
looks like you forgor to add instructions about adding your script to Menu
something like that

m=nuke.menu("Nuke")
m.addCommand('Scripts/Bookmarks', 'presetbackdrop .presetBackdrop ()', 'alt+ctrl+b')
 
 
+6 # Victor Perez 2011-08-22 12:04
Thanks Viktor,

I've submitted those changes :-)

Cheers,

Victor
 
 
0 # Malik Dean 2021-01-12 15:53
Can anybody explain how to install this script? :)
 
 
0 # Zach Lewis 2011-08-25 13:59
absolutely righteous. slick work, as always.
 
 
+2 # vikramshil narwade 2012-02-05 09:09
I am student,can anyone tell me how to install this script
 
 
0 # Jason Duncan 2012-02-27 19:07
I am a student also, any help installing this would be helpful. Many thanks.
 
 
0 # Roots XI 2012-03-29 16:45
I saw this on the cmiVFX Color MasterClass, and have to say Cheers! what a great gizmo... THANKS
 
 
0 # Alexey Kuchinski 2012-04-15 11:19
Hi Victor, had approximately the same setup as you have, but icons in node graph are slowed down a Node graph update, so just wanted
to warn about possible consequences from using icons in Node graph panel (although i find handy to have them)
 
 
+1 # Victor Perez 2012-04-15 11:25
Thanks Alexey for the heads up. I'm going to test this, and I'm going to add a check box for the next version to give the user the option of not including the icons, just the text.
 
 
0 # chengd chengd 2012-08-01 22:34
thans you very much
 
 
0 # Jed Smith 2012-10-07 16:45
For my own use, I have modified this script to remove icons, reduce the number of presets, and reduce the saturation of the colors used for the backdrop nodes. If anyone would find this useful, they can access it here:
http://pastebin.com/t2SqMzzt
 
 
0 # ramalingam punniyakotti 2014-02-11 14:50
your are amazing in color master
 
 
0 # Nathan Strong 2015-05-30 02:32
Thanks Victor! This is awesome!! All of your tools and lessons are awesome!! Big thanks!!
 
 
0 # Steve Champagne 2018-04-20 15:49
Very useful, thanks.
 
 
0 # GBoy Vega 2021-04-21 16:15
In Nuke 13 i received the "%x format: an integer is required, not float" message.
 
 
+1 # Capo Digital 2021-06-24 14:45
Quoting GBoy Vega:
In Nuke 13 i received the "%x format: an integer is required, not float" message.


Hey there! Here's the fix, replace this line and you're good to go

hexColour = int("{0:X}{1:X} {2:X}{3:X}".for mat(int(r*255), int(g*255), int(b*255),1), 16)

Cheers
 
 
+1 # Evgeny Shpilivoi 2021-06-30 23:30
Nuke 13 - error
Traceback (most recent call last):
File "C:/Users/user1 11/.nuke/menu.p y", line 239, in
import V_PostageStampG enerator
File "C:/Users/user111/.nuke/gizmos/V_Tools\V_PostageStampG enerator.py", line 29
print i.knob('name'). value()
^
 
 
0 # federico faccioli 2022-05-30 10:36
Where I need to put this line of text?
in the menu.py ?
 
 
0 # Reza Sadeghi 2022-05-31 11:10
It does not work. There is syntax and spacing issues.
i use Nuke indie can this cause the problem?
 
 
0 # Evgeny Shpilivoi 2021-06-30 23:44
typed manualy ... its works , thanks

hexColour = int("{0:X}{1:X} {2:X}{3:X}".for mat(int(r*255), int(g*255),int( b*255),1), 16)
 
 
0 # Neil Scholes 2021-10-02 20:18
Hey -

I found this way actually works correctly - you get the colors defined in the script

hexColour = int("{0:02x}{1: 02x}{2:02x}{0:0 2x}{3:02x}".for mat(int(r*255), int(g*255),int( b*255),1),16)
 
 
0 # santosh sharma 2023-10-10 07:00
where to replace this line?
 
 
-1 # Reza Sadeghi 2022-05-31 11:27
your code has many problems!
 
 
+1 # Samuel Cleall 2021-12-04 01:12
Hey,
I'm also having the issue with the "%x format: an integer is required, not float" message". I've tried all of the above but I get this message when trying to open Nuke. I'm running 13.v5

".nuke/menu.py : error interpreting this plugin"
 
 
0 # Samuel Cleall 2021-12-04 01:12
Hey,
I'm also having the issue with the "%x format: an integer is required, not float" message". I've tried all of the above but I get this message when trying to open Nuke. I'm running 13.v5

".nuke/menu.py : error interpreting this plugin"
 
 
+2 # IDontWant ToRegister 2022-04-23 09:53
For 13.x Nuke versions, replace the hexColor line with this:

hexColour = int("{0:02x}{1: 02x}{2:02x}{3:0 2x}".format(int (r*255), int(g*255),int( b*255),1),16)

There were some syntax and spacing issues in the examples above.
 
 
0 # Reza Sadeghi 2022-05-31 11:13
i have the same problem with %format. no solotion in this post work.
i use nukeindie. can this cause the problem?
 
 
0 # Reza Sadeghi 2022-05-31 11:26
A solution is to forget the color like this :
hexColour = (255,255,255);
the int is the problem, i just delete it with hardcode.
 
 
0 # Dominique Richer 2023-08-02 14:02
Fixed it on my side in Nuke 13.2v5 by replacing

r = presetColor[0])
g = presetColor[1]
b = presetColor[2]
hexColour = int('%02x%02x%0 2x%02x' % (r*255,g*255,b*255,1),16)

to

r = int(presetColor[0]*255)
g = int(presetColor[1]*255)
b = int(presetColor[2]*255)
hexColour = int('%02x%02x%0 2x%02x' % (r,g,b,1),16)
 
 
+1 # Vako Agladze 2024-01-03 21:37
Hey there! If you get this error "%x format: an integer is required, not float"" and using Nuke V13 and up, you have to replace RGB to Hex lines in .py file, I found that suggested code above has formatting error, needs spaces after rgb values in Parentheses. so here it is

r = int(presetColor [0] * 255)
g = int(presetColor [1] * 255)
b = int(presetColor [2] * 255)
hexColour = int('%02x%02x%0 2x%02x' % (r, g, b, 1), 16)

Thank you Victor for a very useful tool!
 

You have no rights to post comments

We have 2957 guests and 63 members online