This script loops through all selected nodes and checks if the node has a file knob. If a file knob is present, the path will be opened in the OS file manager/browser. The user will be notified if nothing is selected or if the user does not select any nodes that have an existing file-path. If a selected node has a nonexistent path, this will be printed in the script editor, and the script will continue to process the next selected node. All paths are tested for an existing file. However, due to rendered files being frequently opened and deleted, write nodes only test for an existing directory.
fxT_revealInFolder
Updated: 13 June 2022
Author: fxtor
Compatible Nuke versions: 11.0 or later
Compatibility: Linux, Mac, Windows
fxT_revealInFolder v2.2
This script loops through all selected nodes and checks if the node has a file knob. If a file knob is present, the path will be opened in the OS file manager/browser. The user will be notified if nothing is selected or if the user does not select any nodes that have an existing file-path. If a selected node has a nonexistent path, this will be printed in the script editor, and the script will continue to process the next selected node. All paths are tested for an existing file. However, due to rendered files being frequently opened and deleted, write nodes only test for an existing directory.
OS Support: Windows, OSX, Linux
Linux:
As there is no standard file manager on Linux, I have chosen to set the file manager/browser for Linux as a fixed variable.
This can be set in the 'setLinuxFileManager.py' file, where you can also find instructions for how to set your chosen file manager if you prefer a certain app for that. PS: It's very easy, no scripting knowledge is needed.
Supports: Existing paths of the type:
- scripted paths (for example, paths made up of TCL)
- local paths
- server paths:
should work, but might need rework after code restucure and py3 conversion
currently dont have a widows test machince for this case, feel free to report issues
Install Notes:
Full install notes are listed step by step in the top of the python file.
IMPORTANT: To change the file manager used on linux, edit the 'filemagager'-variable in the attached python file.
To install the tool in it's own nuke menu with the attached menu icon: please see attached 'init.py' and 'menu.py' files.
Install the tool and icon file according to the paths in the 'init.py' file, or alternetivly change these paths to your own preferred install location.
Change Log:
v2.2: Windows local paths fix.
v2.1: Code cleanup and support for nuke 13. Not backwards campatibel, for nuke12 use version 2.0.
PS: The menu.py and init.py code has been changed for this version, make sure to update.
Share if you like it, but don't repost as your own.