reveal in explorer script v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: saurabh sameer
this lets you reveal your selected read node in window explorer.
Requirements:
4.8, 5.0, 5.1, 5.2, 6.0, 6.1 or later
Windows
27 Jul 2010
310
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def Revealexplr():
    import os
    a=nuke.selectedNode()
    b=a['file'].value()
    u=os.path.split(b)[0]
    u = os.path.normpath(u)
    print u
    cmd = 'explorer "%s"' % (u)
    print cmd
    os.system(cmd)
 
 
 
 
mymenu=nuke.toolbar('Nodes',)
 
mymenu.addCommand('RevealInExplorer','Revealexplr()',icon='explrr.png')
 

 

Please login in order to download these files.

Comments   

 
0 # Frédéric Vanmeerbeeck 2010-07-30 13:44
Useful, thanks :-)
 
 
0 # Joshua LaCross 2011-05-03 19:32
Thanks! I was having trouble getting it to work on a Mac so I altered it a bit from yours. I will post this as a separate script as well and give you some of the credit ;-)

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(['open', '-R', '%s' % (u)])
 

You have no rights to post comments

We have 2377 guests and 95 members online