openExploreDir

Quickly open the current project directory or the file knob directory of the selected node.

Updated: 27 October 2022

Author: Lundy

Compatible Nuke versions: 10.0 or later

Compatibility: Linux, Mac, Windows

Original name: winExploreDir.

Original author: The code written by Thorsten and released by Varun Hadkar.

The name and code of the script all have been changed by me, new features added and available for Windows, Linux, Mac.

 


Feature

open the current project directory or the file knob directory of the selected node ( like Read Node, Write Node, ReadGeo Node, Camera Node, WriteGeo Node, DeepRead Node, etc ). - - - - - - - shortcut: Shift + B

open the .nuke directory - - - - - - - shortcut: Shift + 0 ( number 0 )

open the nuke installation directory - - - - - - -

 


Installation example

init.py

import nuke

nuke.pluginAddPath('./PythonScripts/openExploreDir')

 

menu.py

import nuke
import openExploreDir

s = nuke.menu('Nuke').addMenu('PythonScripts')
h = s.addMenu('OpenExploreDir')
h.addCommand('Open nk or file dir', 'openExploreDir.openFileDir()', '+b')
h.addCommand('Open .nuke dir', 'openExploreDir.openDotNuke()', '+0')
h.addCommand('Open nuke installation dir', 'openExploreDir.openExePath()')

 


Thanks Thorsten and Varun Hadkar.

Sign in or register to download or rate.