With a read or write node selected run this script and it will open the location in Finder. This is taken from Saurabh Sameer's script (reveal in explorer) that was made for windows and altered to work on a Mac. Let me know if there are any problems.
Reveal in Finder
Updated: 5 May 2011
Author: lacrossj
Compatible Nuke versions: 6.0 or later
Compatibility: Mac
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
def RevealFinder(): import os import subprocess a=nuke.selectedNode() b=a['file'].value() u=os.path.split(b) [0] u = os.path.normpath (u) print u subprocess.Popen(['open', '-R', '%s' % (u)]) mymenu=nuke.toolbar('Nodes',) mymenu.addCommand('RevealInFinder','RevealFinder()') |