Automatic relative pathes
dgRelativePathes
Updated: 20 August 2012
Author: jahamba
Compatible Nuke versions: 6.3 or later
Compatibility: Windows
DESCRIPTION
This script is destinated to simplify pipeline using Relative filenames instead of Absolute ones.
It may help you to transfer, archive data without any additional action. Just open the script and use.
I'm share this in beta mode for now. It's looked like it works fine but need testing. So any offers welcome.
WHAT SCRIPT CAN
1. Automatic detection of the shot root folder on script load
2.. Automatic converting to relative pathes for new Read/Write nodes (if posible).
3. Automatic converting to relative pathes for pating Read/Write nodes (if possible)
4. Manual converting to relative pathes for selected nodes (if possible) Alt+R shortcut
5. Manual converting to absolute pathes for selected nodes. Ctrl+R shortcut
6. Copy nodes with absolute pathes. Ctrl+Alt+C. (For pasting to another shot)
7. Coloring Read nodes according to it Relative/Absolute state.
LIST TO DO:
1. Add ReadGeo, Camera, AudioRead nodes
2. Manual indication of shot root folder for unpredictable cases
3. Ability to disable Relative Pathes in critical situations if happened.
INSTAL
1. Put dgRelativePathes folder to .nuke or any other specified plugin path
2. Add next line to your init.py
1 |
nuke.pluginAddPath('dgRelativePathes')
|
3. Specify your SCRIPT_ROOTNAME in dgRelativePathes/properties. Default is "work".
WHAT IS SCRIPT_ROOTNAM?!
This parameter must be specified according to your pipeline
SCRIPT_ROOTNAME must to be a folder that is root for nukescripts and is located in root of the shot.
For example:
"TempNukeProject" is your shot root folder.
"scripts" is a folder containing all your nuke scripts for this shot
For that case SCRIPT_ROOTNAME must to be "work" (Default)
After that toy can acces to shot folders like: ./result ./source ./work/art ./vfx etc.
It's helpfull to specify default folders for this pathes.
Hope it'd be helpfull.
You can use and modify this script without any restrictions
Please if you modify the script and skill it up make me know