Tk-nuke-write node hotkeys?

Hey all,

This feels like it should be a simple question, but who knows, I’ve tried to get it working in the past and it obviously wasn’t as simple as I hoped it to be.

I would like to override the “W” hotkey in Nuke so that when my artists press “W”, it creates a Shotgun Write node instead of a normal Nuke Write node.

I’ve tried mapping it using the tk-nuke.yml menu_favourites block but I think I must have done something wrong…

Here is the code I had in tk-nuke.yml


# shot_step
settings.tk-nuke.shot_step:
  apps:

    tk-multi-loader2: "@settings.tk-multi-loader2.nuke.shot"
    tk-nuke-writenode: "@settings.tk-nuke-writenode.shot"

  menu_favourites:
  - {app_instance: tk-nuke-writenode, hotkey: W, name: "Write Node [Shotgun]" }
  - {app_instance: tk-multi-loader2, hotkey: R, name: Load... }

  location: "@engines.tk-nuke.location"

And my corresponding tk-nuke-writenode.yml


# shot
settings.tk-nuke-writenode.shot:
  template_script_work: nuke_shot_work
  write_nodes:
  - file_type: exr
    name: Write Node
    proxy_publish_template:
    proxy_render_template:
    publish_template: shot_render_publish_exr
    render_template: shot_render_work_exr
    settings:
      datatype: 16 bit half
    tank_type: Rendered Image
    tile_color: []
    promote_write_knobs: []

  location: "@apps.tk-nuke-writenode.location"

I have removed the extra text in both of those files but based on that, there must be something silly that I am not doing, can anyone give me a hand on how they implemented the hotkey?

Thanks
-Alex