Thumbnail for Defaults

Gizmo

Defaults

Many of the factory defaults for Nuke don't make a lot of sense. These alternative defaults add convenient labels, set default channels to rgba' instead of all, BBox to B', motion blur to centered', among other. Any one of them can be disabled by commenting the line out with a # or by simply deleting the line. Installation Copy the lines into a file called menu.py into a folder that is watched by nuke at startup. You can find these folders by running nuke.pluginPath()' inside the nuke script editor.

user_defaults.py
1import nuke
2def nodeDefaultsStartup():
3 # TIME
4 nuke.knobDefault("FrameRange.label", "[value knob.first_frame] - [value knob.last_frame]")
5 nuke.knobDefault("TimeBlur.shutteroffset", "centered")
6 nuke.knobDefault("Retime.before", "continue")
7 nuke.knobDefault("Retime.after", "continue")
8 nuke.knobDefault("Retime.filter", "nearest")
9 nuke.knobDefault("Retime.label", "speed: [value speed]")
10 # CHANNELS
11 nuke.knobDefault("Remove.operation", "keep")
12 nuke.knobDefault("Remove.channels", "rbga")
13 nuke.knobDefault("Remove.label", "[value channels]")
14 nuke.knobDefault("Shuffle.label", "[value in]")
15 # COLOR CORRECT
16 nuke.knobDefault("EXPTool.mode", "0")
17 nuke.knobDefault("Gamma.channels", "rgba")
18 nuke.knobDefault("Colorspace.label", "[value colorspace_in] - [value colorspace_out]")
19 nuke.knobDefault("Colorspace.colorspace_out", "AlexaV3LogC")
20 nuke.knobDefault("Multiply.label", "[value value]")
21 nuke.knobDefault("Saturation.label", "[value saturation]")
22 nuke.knobDefault("Saturation.saturation", "0")
23 # CONVOLUTIONS
24 nuke.knobDefault("Denoise2.useGPUIfAvailable", "1")
25 nuke.knobDefault("Blur.channels", "rgba")
26 nuke.knobDefault("Blur.label", "[value size] px")
27 nuke.knobDefault("Dilate.channels", "rgba")
28 nuke.knobDefault("Dilate.label", "[value size] px")
29 nuke.knobDefault("FilterErode.label", "[value size] px")
30 nuke.knobDefault("Erode.label", "[value size] px")
31 nuke.knobDefault("Median.label", "[value size] px")
32 nuke.knobDefault("Soften.channels", "rgba")
33 nuke.knobDefault("Soften.label", "[value size] px")
34 nuke.knobDefault("Sharpen.channels", "rgb")
35 nuke.knobDefault("Sharpen.label", "[value size] px")
36 nuke.knobDefault("GodRays.channels", "rgba")
37 nuke.knobDefault("Defocus.channels", "rgba")
38 nuke.knobDefault("Defocus.label", "[value defocus]")
39 nuke.knobDefault("ZDefocus2.channels", "rgba")
40 nuke.knobDefault("VectorBlur.channels", "rgba")
41 # MERGE
42 nuke.knobDefault("Switch.which", "1")
43 nuke.knobDefault("Switch.label", "[value which]")
44 nuke.knobDefault("Dissolve.which", "1")
45 nuke.knobDefault("Dissolve.label", "[value which]")
46 nuke.knobDefault("Keymix.bbox", "1")
47 nuke.knobDefault("Keymix.channels", "rgba")
48 nuke.knobDefault("Merge.bbox", "3")
49 # TRANSFORM
50 nuke.knobDefault("Transform.shutteroffset", "centered")
51 nuke.knobDefault("TransformMasked.shutteroffset", "centered")
52 nuke.knobDefault("CornerPin2D.shutteroffset", "centered")
53 nuke.knobDefault("Tracker4.shutteroffset", "centered")
54 nuke.knobDefault("Card3D.shutteroffset", "centered")
55 nuke.knobDefault("Reconcile3D.shutteroffset", "centered")
56 nuke.knobDefault("Mirror.Horizontal", "1")
57 nuke.knobDefault("Mirror2.flop", "1")
58 # 3D
59 nuke.knobDefault("ScanlineRender.antialiasing", "3")
60 nuke.knobDefault("ScanlineRender.label", "[value samples]")
61 nuke.knobDefault("ScanlineRender.shutteroffset", "centered")
62 # MISC
63 nuke.knobDefault("Expression.label", "[knob expr3]")
64 nuke.knobDefault("NoOp.hide_input", "1")
65 nuke.knobDefault("DeepReformat.pbb", "1")
66 nuke.knobDefault("DeepReformat.resize", "none")
67 nuke.knobDefault("STMap.channels", "rgba")
68 nuke.knobDefault("STMap.uv", "rgb")
69 nuke.knobDefault("AdjBBox.numpixels", "100")
70 nuke.knobDefault("AdjBBox.label", "[value numpixels]")
71 nuke.knobDefault("Constant.channels", "rgba")
72 nuke.knobDefault("VectorDistort.label", "REF: [value reference_frame]")
73
74