HG_play readnode external

A very small Python. I wrote it to help run the file on the external file player with shortcut Alt + R , without returning to the folder, and run it from the outside by simply pressing the keyboard button.

Updated: 3 September 2023

Author: hossam.galal

Compatible Nuke versions: 11.0 or later

Compatibility:

A very small Python. I wrote it to help run the file on the external file player with shortcut  Alt + R  , without returning to the folder, and run it from the outside by simply pressing the keyboard button.

1.Place the 'play_readnode_external.py' file into your .nuke directory (usually 'C:/Users/YOUR_USER/.nuke') or path;
2.Paste this text at the end of your 'menu.py' file;
It will be under the Edit - node in nuke's top menu, or right-click on the Read's properties panel.


TO INSTALL:

1. Go to the .nuke directory:

Windows: C:\Users\username\.nuke

Mac Os X: /Users/username/.nuke

Linux: /home/username/.nuke

2. Copy play_readnode_external.py into the folder.

3. Locate menu.py inside the folder and open it with any notepad/text editor.

If menu.py didn’t exist, create one with the notepad itself.

4. Add this to menu.py:

import nuke
import play_readnode_external
menu = nuke.menu('Nuke')
menu.addCommand('Edit/Node/Play Read with External Player',
                             'play_readnode_external.play_readnode_with_external_player()',
                             'Alt+R')


5. Restart nuke


Hope you find it useful! Let me know if you find any errors

Sign in or register to download or rate.