How to rename a saved layout?

For this you need to edit your ‘menu.py’ script which is found in…

OSX – /Applications/Nuke [version number]/Nuke [version number].app/Contents/MacOS/plugins
Windows XP – Program FilesNuke [version number]plugins

Scroll down to approximately line 185 and you will find ‘#Layout menu’ and the code shown below…

# Layout menu m = menubar.addMenu(“&Layout”)
m.addCommand(“Restore Layout 1 (startup default)”, “nuke.restoreWindowLayout(1)”, “+F1”)
m.addCommand(“Restore Layout 2”, “nuke.restoreWindowLayout(2)”, “+F2”)
m.addCommand(“Restore Layout 3”, “nuke.restoreWindowLayout(3)”, “+F3”)
m.addCommand(“Restore Layout 4”, “nuke.restoreWindowLayout(4)”, “+F4”)
m.addCommand(“Restore Layout 5”, “nuke.restoreWindowLayout(5)”, “+F5”)
m.addCommand(“Restore Layout 6”, “nuke.restoreWindowLayout(6)”, “+F6”)

Edit and save as needed, my version is show below as an example.

# Layout menu m = menubar.addMenu(“&Layout”)
m.addCommand(“Restore Sphere VFX Layout (startup default)”, “nuke.restoreWindowLayout(1)”, “+F1”)
m.addCommand(“Restore Original Layout”, “nuke.restoreWindowLayout(2)”, “+F2”)
m.addCommand(“Restore Layout 3”, “nuke.restoreWindowLayout(3)”, “+F3”)
m.addCommand(“Restore Layout 4”, “nuke.restoreWindowLayout(4)”, “+F4”)
m.addCommand(“Restore Layout 5”, “nuke.restoreWindowLayout(5)”, “+F5”)
m.addCommand(“Restore Layout 6”, “nuke.restoreWindowLayout(6)”, “+F6”)