collectFiles v1.2
This location is for Registered Users Only.
Perhaps you need to login or register.
6.1, 6.2, 6.3 or later
Supported Video Files:
'mov', 'avi', 'mpeg', 'mp4', 'R3D'
Description:
Collect files of the script
Tutorials:
www.marianoantico.blogspot.com
www.vimeo.com/29200474
Installation Notes:
1. Copy "collectFiles.py" to nuke plugins directory (Example: "C:\Program Files\Nuke6.1v1\plugins")
2. Open "Init.py" 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:
collectFiles.collectFiles()
6. Check the python button and press ok
Create Menu Node:
1. Open "Menu.py" located on "C:\Program Files\Nuke6.1v1\plugins"
2. And paste this at the end:
#Collect Files Menu Node
collectMenu = nuke.menu("Nodes").addMenu("Collect_Files")
collectMenu.addCommand('Collect Files', 'collectFiles.collectFiles()')
collectMenu.addCommand('Help', 'collectFiles.myBlog()')
Run:
collectFiles()
Comments
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!
collectFiles.co llectFiles()
i am not getting it with this point.....
is that mean, i have to paste collectFiles.co llectFiles() in menu.py ?
i have solved and now working fine ....
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?
this script good
import collectFiles
m.addCommand('File/Collect Files', 'collectFiles.collectFiles()')
works fine! thanks!!!
[file dirname [value root.name]] and I have a habit of doing it.
Modifying line 143 to
Quote: solves the problem for me.
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? ;)
That seems correct, so the whole chunk would be like:
Quote: 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 ;)
Quote: And following my comment from above regarding relative file paths, the script can now work with relative file paths and #### frame padding.
Quote: in the beginning in the import block at the beginning of the script, around line 57 will do.
i wanted to use this script but something came up, it doesn't handle
[file dirname [value root.name]]
any idea to make it work ?
thanks by advance
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 root.name]] and I have a habit of doing it.
Modifying line 143 to
Quote:
fileNodePath = nuke.filename(f ileNode)
if os.path.exists(os.path.dirname(str(fileNodePath))):
solves the problem for me.
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 root.name]] and I have a habit of doing it.
Modifying line 143 to
Quote:
fileNodePath = nuke.filename(f ileNode)
if os.path.exists(os.path.dirname(str(fileNodePath))):
solves the problem for me.
change line 114: raise Exception("Some thing's not working!")
for Nuke 13
change line 114: raise Exception("Some thing's not working!")
change line 138: task.setProgres s(int(count*100 /len(nuke.allNo des())))
File "C:/Program Files/Nuke13.2v 3/plugins/init. py", line 18, in
import collectFiles
File "C:/Program Files/Nuke13.2v 3/plugins\colle ctFiles.py", line 114
raise Exception, "Something's not working!"
its shown in nuke when we use
nteger argument expected, got float
its shown in nuke when we use
nteger argument expected, got float
change line 114: raise Exception("Some thing's not working!")
change line 138: task.setProgres s(int(count*100 /len(nuke.allNo des())))
After then, it will works successfully.
Hope be helpful.
RSS feed for comments to this post