fxT_revealInFolder v2.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Tor Andreassen
Website: www.fxtor.net
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.
Requirements:
9.0, 8.0, 7.1, 7.0, 6.3, 6.2, 6.1, 6.0 or later
Linux, Mac, Windows
09 Jul 2016
286

fxT_revealInFolder v2.0

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

 

 

revealInFolder

 

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.

 

Share if you like it, but don't repost as your own.
Please login in order to download these files.

Comments   

 
# Octavio Mancilla 2014-10-06 02:27
Thanks for sharing! This is now one of my most used commands =)
 
 
# Tor Andreassen 2014-10-24 16:01
No problem Octavio, glad you find it useful. Also, there is now a updated version that now works for scripted file paths.
 
 
# Tor Andreassen 2015-05-14 01:26
v1.4: major update. Fix for bugs that caused errors on invalid paths. Code extended to catch many more possible errors, also fixed an error with local Windows paths.

Enjoy, and please feel free to comment if you have bug reports or suggested feature updates.
 
 
# Ben Warburton 2015-05-14 17:11
It works great, except I'm getting the result in a chrome browser. I'm assuming this has something to do with nukes default browser setting. Any way to specify Dolphin file browser in linux?
 
 
# Tor Andreassen 2015-05-14 17:49
Thanks for your feedback Ben, much appreciated.
Interesting, yes that can be fixed but I'll have to look into it - didn't have a linux machine at hand when writing the tool. I'll post a update here when I get to it.

If you want to poke around yourself before I get to it, here is a link: http://community.thefoundry.co.uk/discussion/topic.aspx?f=189&t=98157
 
 
# Tor Andreassen 2015-05-14 17:53
Btw, can I ask what distro/version of linux you are running?
 
 
# Ben Warburton 2015-05-14 20:09
I did the following for myself, which now works.

replaced :

nukescripts.start(openPath)

with :

n = openPath
inner_cmd = '\"dolphin %s &\"' %n
exec "os.system(%s)" %inner_cmd

This now opens dolphin with the selected nodes file path. Its probably not the best way, but it works xD
 
 
# Tor Andreassen 2015-05-16 21:44
Thanks Ben, glad you found a quick fix, I'll update the tool once I have some more time.
 
 
# Tor Andreassen 2015-06-14 20:52
v2.0 is now updated with a fix for Linux.

I have included a separate python file where one can set the file manager/browser of choice. No need to edit the main python file. Instructions is included in the .py file.

Menu icon is also included.
 
 
# Johannes Masanz 2015-07-30 08:57
The one that i use, opens the nk script directory when nothing is selected.
 
 
# Tor Andreassen 2015-07-30 09:13
That is strange. The script never picks up the nuke script directory. It's based of the file-knob of a node or multiple nodes.

I just did a clean install of the latest version of this script, and it works as it's suppose to.

Can you clarify a little more? What OS are you running and are you running the latest version?
 
 
# Johannes Masanz 2015-08-01 14:38
Sorry! I was not very clear about that. I meant that it is a nice feature in an other revealInFolder script, called 'BrowseDir'.
http://www.nukepedia.com/python/misc/browsedir
This cannot browse multiple paths at once though.
 
 
# Tor Andreassen 2015-08-01 18:44
Ah, yeah it absolutely is! Thanks for sharing that script.

I usually have a shot-menu that can access the various folders of the show (renderfolder, scriptfolder, ref folders and so on, that is based on the script directory. Though it's very studio specific.

Thanks again for sharing :)
 

You have no rights to post comments

We have 2236 guests and 52 members online