Nuke Collect v2.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Dave Girard
A cross-platform Python script to collect and relink scenes and assets.
Requirements:
9.0 or later
05 Dec 2015
829

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()')

Please login in order to download these files.

Comments   

 
# Marc Morissette 2015-12-07 14:36
Hi Dave,

I installed it this morning. It works, but there is an issue on mac where it doesn't copy to the specified folder.

Great stuff

-Marc
 
 
+2 # Thomas Vu 2016-05-19 15:10
hi! script not working on Nuke 10 :)
 
 
# Aitor Arroyo 2016-12-14 15:05
Should I install it in V10?
 
 
# Spencer Tweed 2017-05-09 23:34
Hey Dave, I'm excited because this is just what I need but unfortunately it failed my first test! Overall this is pretty cool but the script missed collecting an image sequence. This is on Windows 7, Nuke X 9.0v6

- Spencer
 
 
# Lukasz Stolarski 2017-11-13 21:01
Doesn't work here either. I've tested on 3 imported single images (Nuke 9 and 10), just merged together. It says there are dead links and even though I give it a path it generates a subfolder in the original folder and tries to collect there (but doesn't copy the images).

Does anybody have a working alternative?
 
 
# Spencer Tweed 2017-11-13 22:02
I ended up making my own application for handling this. It is multi-threaded and pretty fast/reliable but unfortunately it's not 100% complete yet. If you are familiar with Python and PyQt I would be happy to send you what I've got so far! The collect functionality works quite well, you'll just have to play around a bit with the code to get it to work for you (I have a pretty specific workflow for my needs)
 
 
# Lukasz Stolarski 2017-11-13 22:32
Wow, that's very generous of you Spencer, thank you so much. I'm just getting started with Python so I think I'm not ready yet ;) I'll get back to you in two or three months, if that's ok ;) Or maybe by this time you'll develop the tool so much that it will end up here, on Nukepedia? Congratulations on finding your custom solution and good luck! :)
 
 
# Spencer Tweed 2017-11-14 05:49
No problem, I like when people get use out of my code! I might have some dev time tomorrow morning, in which case I'll see if I can get something together to post up on nukepedia. I need to crack that program back open anyway for some big archives I need to do (servers getting full...)
 
 
# Lukasz Stolarski 2017-11-16 20:13
Well, I found that the old one is still working:
collectFiles v1.2
It's on Nukepedia. I tried several others but there were problems.

Check the comments section for easier instalation and relative paths tip ;)

By the way, I still cannot find a good relative paths solution. Any tips? In Houdini or After Effects the project always works, no matter how you move it (with the files). In nuke I have to add expression to EVERY read and write node. This is a bit troublesome. I found scripts for selecting and replacing the path but only in the Read nodes. Write nodes are still a pain.

Thanks for any tips ;)
 
 
+1 # Spencer Tweed 2017-11-17 00:32
Working on development today! Hopefully can get something final soon...

Actually I've been meaning to play around with relative paths. Check the Nuke User Guide for "project directory" and you'll find what you're looking for ;) If you hit "S" over the nodegraph you'll get your project settings and it's right there.
 
 
# kiran nani 2017-11-28 04:38
Great. Hope you fixed it fully :) even if it's not finalized, can you please share your script? I'm also going to develop a script to archive nuke script. It will greatly help. Thank you very much,
 
 
+1 # Spencer Tweed 2017-11-28 04:41
Sorry for the delay on this, I have been working on it in between renders and needless to say that isn't very productive... I've been focusing on some After Effects functions lately but I'm just in beta testing on that, so hopefully I'm done soon and can get back to Nuke. I'll definitely post something up soon!
 
 
# Travis Button 2018-03-13 16:43
I'm not sure what issue you're having in regards to relative paths. The script you referenced here "CollectFiles v1.2" converts all your read nodes to relative paths automatically as seen here "[file dirname [value root.name]]/foo tage/". I've been using this script for over 5 years and it works well although there is one bug it has that has never been resolved and that is if you have any groups with read nodes in them then none of those sequences will be copied. The work around is to select all groups and expand them before you collect. Hope this helps.
 

You have no rights to post comments

We have 2634 guests and 136 members online