A cross-platform Python script to collect and relink scenes and assets.
Nuke Collect
Updated: 6 December 2015
Author: cgbeige
Compatible Nuke versions: 9.0 or later
Compatibility:
A cross-platform Python script to collect and relink scenes and assets. Supports globbing (###, %04d type variables) and is smart enough not to collect duplicate read nodes for time savings. It also won't clobber assets that have the same name but different source folder (i.e.: /render/diffuse/image.exr and /render/specular/image.exr). To install in your Nuke menu bar, put this script in your script folder and then add this to the end of your Nuke menu.py file:
import nukecollect
ref = menubar.addMenu('Nuke Collect')
ref.addCommand('Nuke Collect', 'nukecollect.nukecollect()')