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