Nice one! This is totally working for us (so long as you steer clear of
Nuke's viewer defaults that is :), thank you kindly, and thank you for
getting another support mail out about it.
Cheers,
~Schnee
On 08/18/2015 08:42 AM, Jed Smith wrote:
One way to make this work is to use lambda so that the python code
invokes correctly. For example these are the entries I added to my
viewer menu so that I can map the shortcut navigation to different
keys. (Does this answer your question correctly?)
# Viewer Shortcuts
nuke.menu('Viewer').addCommand("Next Frame", lambda:
nuke.activeViewer().frameControl(1), "shift+f")
nuke.menu('Viewer').addCommand("Previous Frame", lambda:
nuke.activeViewer().frameControl(-1), "shift+d")
nuke.menu('Viewer').addCommand("Next Keyframe", lambda:
nuke.activeViewer().frameControl(2), "alt+shift+f")
nuke.menu('Viewer').addCommand("Previous Keyframe", lambda:
nuke.activeViewer().frameControl(-2), "alt+shift+d")
nuke.menu('Viewer').addCommand("Next Frame", lambda:
nuke.activeViewer().frameControl(1), "shift+f")
nuke.menu('Viewer').addCommand("Play Forward", lambda:
nuke.activeViewer().frameControl(5), "ctrl+alt+f")
nuke.menu('Viewer').addCommand("Play Backward", lambda:
nuke.activeViewer().frameControl(-5), "ctrl+alt+d")
It certainly would be nice to override the default viewer shortcuts
though. I'll go ahead and send support a mail about that.
On Mon, Aug 17, 2015 at 8:22 PM, davids <[email protected]
<mailto:[email protected]>> wrote:
Well that's disappointing, but thank you Ben! I'll give the
prodding a go.
That said, let's say the keys are 'v' & 'b' ?
On 08/17/2015 04:59 PM, Ben Dickson wrote:
z/x/c, r/g/b and a few others are hardwired in the viewer, and
can't be overridden by menu items
It is worth prodding [email protected]
<mailto:[email protected]> about "Feature 32383"
On 18/08/15 02:57, davids wrote:
A friend helped me out on the Node Graph side of things,
but I'll also
need to reassign the 'front' and 'rtside' hotkeys while in
the viewer,
anyone know how to call on those two elusive commands for
reassignment?
menubar.addCommand("Viewer/View/step
backward","nuke.activeViewer().frameControl(-1)", 'z' ,
shortcutContext=2)
menubar.addCommand("Viewer/View/step
forward","nuke.activeViewer().frameControl(1)", 'x' ,
shortcutContext=2)
Thanks in advance,
~Schnee
--
\/ davids / comp \/ 177
/\ tippettstudio /\ afd
_______________________________________________
Nuke-users mailing list
[email protected]
<mailto:[email protected]>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--
\/ davids / comp \/ 177
/\ tippettstudio /\ afd
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users