This script will find the missing external files of your script and relink them. It will search the files on the informed disk or folder.
bvfx Find Path
Updated: 16 September 2021
Author: mborgo
Compatible Nuke versions: 10.0 or later
Compatibility: Linux, Mac, Windows
v1.5 makes it compatible with Python 3 (nuke 13+)
v1.4 fixes some errors on Nuke v8 and handles multiple read nodes pointing to the same file (check version log inside file for more details)
This script will find the missing external files of your script and relink them (All nodes with ERROR from missing files)
How to use it and further automation (with english subtitles): http://youtu.be/mjlk6N2Ua90
Its was inspired by the work of my friend Dubi, (http://www.nukepedia.com/python/misc/findpath/), with the following improvements:
01. All Nodes that own a file property will be searched (Read, ReadGeo.... any node with a 'file' input)
02. Speed improvements, if you want you can start from the disk root folder without problems.
03. Added a progress bar, users can Cancel the task at anytime if its taking too long
Install:
Source and run the script in the script editor or add it to a menu. By default even the Write nodes will be considered, if you do not want to change Write Nodes, run the script with a False argument:
bvfx_findPath() # normal use
bvfx_findPath(False) # this one excludes the Write nodes
To add it to a menu, place this on your menu.py:
from bvfx_findPath import *
toolbar = nuke.menu('Nodes')
bvfxt = toolbar.addMenu('BoundaryVFX Tools')
bvfxt.addCommand('Locate files paths', 'bvfx_findPath(False)')
Copyright (c) 2012, Magno Borgo
All rights reserved.
BSD-style license:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Magno Borgo or its contributors may be used to
endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.