Problem summary
As of Nuke11.0v1, the shortcut ' | ' does not appear to work, so users cannot snap selected nodes to a grid via the shortcut.
Interesting points:
1. The hotkey ' \ ' still works for snapping ALL nodes to the grid.
2. Snapping to grid via the menu command at '
Edit -> Node -> Snap to Grid' works as expected
3. The menu entry '
Edit -> Node -> Snap' to Grid reports that the correct hotkey of ' | ' is assigned.
4. Having a shortcut with ' Shift+| ' works.
5. Setting up a custom command with ' | ' OR ' Shift+\ ' does not work.
Customer reported version
nuke.11.0v1
Customer reported platform
windows10
Steps to reproduce
1. Open Nuke
2. Slightly move the viewer node off the grid.
3. While the viewer node is selected, press ' | ' (Shift+\)
Result: Nothing happens, there is no Echo in the Script Editor. Workaround
Rewriting the shortcut with 'Shift+|' corrects the issue.
Add this snippet of code to your 'menu.py' file in your '
.Nuke' directory:
import nukedef selSnapShortcut(): n = nuke.selectedNodes() for i in n: nuke.autoplaceSnap(i)if nuke.NUKE_VERSION_MAJOR >= 11: nuke.menu('Nuke').addCommand('Edit/Node/Snap to Grid', lambda: testShortcut(),'Shift+|')
For more information on the location of your '
.Nuke' Directory please check out the article linked below:
Q100048: Nuke Directory Locations Reproduced by support
Nuke11.0v1 - Windows 7 - Mac10.12 - CentOS6.9
Regression:
Nuke10.5v5 - Windows 7 - Mac10.12 - CentOS6.9
Earliest version tested
Nuke10.5v5 - Nuke has regression with the last release.
Expected behaviour
When selecting ' | ' while selecting a Node, it should snap to the nearest grid.
Actual behaviour
Nothing happens when hotkey is selected.