This script gives you the option to scan all read nodes or only the selected ones(still images or sequences, geo and cameras) in the nodegraph,and then search for the correct file path of each node. This is usefull if you moved your project directory into a new path, and as a result all your read nodes gives you an error due to the incorrect file path.
SK_pathFinder_v01
Updated: 9 November 2014
Author: esc4pe85
Compatible Nuke versions: 6.3 or later
Compatibility:
INSTALLATION
copy this in your MENU.PY :
>>>>
import SK_pathFinder_v01
from __future__ import division
import nuke
import os
SK_menu = nuke.menu('Nuke').addMenu('Superknot')
SK_menu.addCommand('SK_Path_Finder', 'SK_pathFinder_v01.path_panel()')
######################################
Limitations:
At the moment it doesn't work with sequences like those:
1)
NO >>> C:/test/test1/file_001.tiff
your sequences should use a '.' instead of an '_' >>>
YES >>> C:/test/test1/file.001.tiff
2)
NO >>> C:/test/test1/file.1.tiff >>
file.2.tiff >>
file.3.tiff >>
and so on...your sequences should have at least one 'zero' padding
YES >>> C:/test/test1/file.01.tiff >>
file.02.tiff >>
file.03.tiff >> and so on...
How to Use:
1 . Select only the nodes you want to change and then run the script.
2. Select the new root path of your project and click the 'Next' button.
3. Choose 'only_selected ' in the pulldown menù ,tick/untick the checkboxes of what you want to change, 'images', 'geo', 'cameras'
and then click the 'Do it' button'.
Or
1. Run the script.
2. Select the new root path of your project and click the 'Next' button.
3. Choose 'all_read_nodes' in the pulldown menù ,tick/untick the checkboxes of what you want to change, 'images', 'geo', 'cameras'
and then click the 'Do it' button'.
TESTED in Windows with Nuke 8 ,but it should also work with previous versions of Nuke, and in the other OS...
Please feel free to drop me a line for any question, bugs or suggestions...
Cheers
Salvatore