Reveal in Finder v1.0
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Joshua LaCross
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.
Requirements:
6.0, 6.1, 6.2 or later
Mac
6.0, 6.1, 6.2 or later
Mac
04 May 2011
197
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()') |
Please login in order to download these files.
Comments
This is for linux
def RevealFinder():
import os
import subprocess
a=nuke.selected Node()
b=a['file'].val ue()
u=os.path.split (b) [0]
u = os.path.normpat h (u)
print u
subprocess.Pope n(['nautilus',' %s' % (u)])
os.path.relpath (path[, start])
http://docs.python.org/release/3.1.3/library/os.path.html#os.path.normpath
RSS feed for comments to this post