collectFiles v1.2

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Mariano Antico
This script collects the footage from your script and saves it in a target directory. It also copies the script and relinks all the files to the new directory.
6.1, 6.2, 6.3 or later
21 Sep 2011

Supported Video Files:
'mov', 'avi', 'mpeg', 'mp4', 'R3D'

Collect files of the script


Installation Notes:
1. Copy "" to nuke plugins directory (Example: "C:\Program Files\Nuke6.1v1\plugins")
2. Open "" located on "C:\Program Files\Nuke6.1v1\plugins"
3. And paste this:
import collectFiles
4. Save it and restart nuke
5. Open the Script Command window and paste this:
6. Check the python button and press ok
Create Menu Node:
1. Open "" located on "C:\Program Files\Nuke6.1v1\plugins"
2. And paste this at the end:
#Collect Files Menu Node
collectMenu ="Nodes").addMenu("Collect_Files")
collectMenu.addCommand('Collect Files', 'collectFiles.collectFiles()')
collectMenu.addCommand('Help', 'collectFiles.myBlog()')

Please login in order to download these files.


# Ernesto Cespedes 2011-09-19 08:41
# Andres Grynberg 2015-06-29 15:51
ah, sos de racin?
+1 # Ariel M.O. Picone 2011-09-21 13:22
Works perfectly! Thanks!
# Jung Keun Kim 2011-10-13 11:24
# sebastian laas 2012-02-03 09:55
Super great script. Muchas Gracias.
# ASIF HAQUE 2012-04-25 10:57
This script is amazing! I have been using it for a while now, but right now I have NukeX 6.3v5 and when I try to add code in to the file and launch nuke I get an thi: "error interpreting this plugin"

If I leave the menu file alone and just use the script command window it still works. Just wondering if there is a way to add it back to the menu!

Thank you!
# ASIF HAQUE 2012-04-25 11:03
NVM just figured out what I did wrong! Thanks again for the awesome script!!
# kaushal shah 2012-05-05 04:11
5. Open the Script Command window and paste this: llectFiles()

i am not getting it with this point.....
is that mean, i have to paste llectFiles() in ?
# kaushal shah 2012-05-05 06:17
Okeys.... the problem is in the given script.
i have solved and now working fine ....
# kerem ogan 2012-09-29 04:07
its great! thank you so much
# simon ritchie 2012-10-18 09:04
Thanks for the script.

They only thing I found is that it doesn't seem to work for stereo comps . ie when the read node is: Shot_001_%V.### #.exr. Any idea on how to correct this?
# Kubo Yoshiharu 2013-03-24 19:43
whoaaa..this is really saves my day...thank you so much !!!
# Dongkyun Kim 2014-05-01 03:49
THank you~ There is not this script on the homepage of Marianoantico~ So while I was searching this script I got it here~ Thank you ~
# yongsoo jung 2015-02-05 10:22
wow very thank you

this script good
# Alexey Ushakov 2015-12-21 20:51
Open and paste:
import collectFiles
m.addCommand('File/Collect Files', 'collectFiles.collectFiles()')

works fine! thanks!!!
# Jeang Jenq Loh 2017-09-04 07:06
Still works great in Nuke10.5v1! One thing I always find inconvenience is this script doesn't work with TCL relative file path, like
[file dirname [value]] and I have a habit of doing it.
Modifying line 143 to
fileNodePath = nuke.filename(fileNode)
if os.path.exists(os.path.dirname(str(fileNodePath))):
solves the problem for me.
# Lukasz Stolarski 2017-11-16 19:46
Thank you so much for sharing that!
One question:
So you replace two lines? Or by adding those two lines you've mentioned you actually add one? Sorry, I'm new to this.

The code before (lines 142-144):
if not checkForKnob(fi leNode, 'Render'):
fileNodePath = fileNode['file' ].value()
if (fileNodePath == ''):

Code after (lines 142-145):
if not checkForKnob(fi leNode, 'Render'):
fileNodePath = nuke.filename(fileNode)
if os.path.exists( os.path.dirname (str(fileNodePa th))):
if (fileNodePath == ''):

If after if... Is that ok? ;)
# Jeang Jenq Loh 2017-11-18 13:20
Hi there,

That seems correct, so the whole chunk would be like:
#check for 'file' knob
if checkForKnob(fileNode, 'file'):
if not checkForKnob(fileNode, 'Render'):
fileNodePath = nuke.filename(fileNode)
if os.path.exists(os.path.dirname(str(fileNodePath))):
if (fileNodePath == ''):
If after If is alright as long as the indentation is done correctly, I remember I have to add indentation to a really huge chunk after I added that "if" line.
Not sure if reply here would show the indentation so you're gonna have to check it yourself ;)

You have no rights to post comments

We have 3073 guests and 20 members online