Path Switch

When open your nuke comp... This script automatically switches the paths when identify the Os (Windows, MacOs, Linux). So you can open your nuke comp or send to a network render independent of your Os.

Updated: 20 September 2012

Author: dubiella

Compatible Nuke versions: 4.8 or later

Compatibility: Linux, Mac, Windows


Path Switch 1.0
When open your nuke comp... This script automatically switches the paths when identify the Os (Windows, MacOs, Linux).
So you can open your nuke comp or send to a network render independent of your Os.

Instalation
Copy pathSwitch.py to YourNukeRootFoder/plugins/
Copy pathSwitch.png to YourNukeRootFoder/plugins/icons/
Append to Menu.py in YourNukeRootFoder/plugins/

 

1
2
3
4
5
6
import pathSwitch
 
# Nuke Path Switch
m = nuke.menu( 'Nodes' )
m.addCommand("Path Switch", "pathSwitch.pathSwitch()" , icon='pathSwitch.png')
m.addCommand("Path Switch/pathSwitch", "pathSwitch.pathSwitch()" , icon='pathSwitch.png')

Startup
Node Menu

Path Switch will create a node named "pathSwitch"

And will create a script in your "onScriptLoad"

All this verify the Os, and changes the paths of all nuke nodes: 'Reads' and 'Writes' nodes.
And apply the corresponding path.

You have to configure each path corresponding the each OS
(To working correctly, always hold in your nuke comp the 'pathSwitch' node.)

Now every time you switch the Os or submit your job to others Os's, the Path Switch will find and replace the last path to the current path.

v1.1
- Bug fixed. When script load. Line 7

Sign in or register to download or rate.