Script to rename renders (all OS's) & denoise (linux)
Posted: Mon Dec 04, 2006 1:16 pm
I'm very new to coding, but I made a really quick script. I've been rendering out a "quick" animation of my logo with indigo to see how it would look. You can't set the output frame name or number or anything, so I wrote this script that will rename all files of a type in a directory to a seqential, numbered sequence. It's easier to import them into a video editing program as a sequence this way. I have them set to use the naming scheme I am used to while using houdini. If this is a problem, I can change it or...I'm sure the script is simple enough that anyone could easily change whatever about it. It plays back great to me.
Example of use:
tclsh renameanddenoise.tcl /home/dee/Devel/indigo_06/renders/frames2 png
http://www.davidhipp.com/scripts/renameanddenoise.tcl
http://www.davidhipp.com/scripts/rename ... tcl.tar.gz
I edited the script so it now uses GREYCstoration_linux to denoise the files. The originals will be renamed just like the original and GREYCstoration_linux will be called (assuming it is in /usr/bin or /bin and call be run from a command line by simply typing GREYCstoration_linux) to denoise each file. If you haven't tried GREYCstoration, try it. It's great.
You can get GREYCstoration from:
http://www.greyc.unicaen.fr/~dtschump/greycstoration/
If you want to use it, simple add the command:
denoise
And you can control the output file name instead of it always being render.#.extension
example:
tclsh renameanddenoise.tcl /home/dudeman/3d/indigo_06/renders/frames png outputfilename
with the total being:
tclsh renameanddenoise.tcl /home/dudeman/3d/indigo_06/renders/frames png outputfilename denoise
It will then make two files, the original render, renamed and all that, and the denoised file.
I don't use windows much, but I changed the original code in here to use no linux commands for renaming the files. If you use windows, renaming should work.
Example of use:
tclsh renameanddenoise.tcl /home/dee/Devel/indigo_06/renders/frames2 png
http://www.davidhipp.com/scripts/renameanddenoise.tcl
http://www.davidhipp.com/scripts/rename ... tcl.tar.gz
I edited the script so it now uses GREYCstoration_linux to denoise the files. The originals will be renamed just like the original and GREYCstoration_linux will be called (assuming it is in /usr/bin or /bin and call be run from a command line by simply typing GREYCstoration_linux) to denoise each file. If you haven't tried GREYCstoration, try it. It's great.
You can get GREYCstoration from:
http://www.greyc.unicaen.fr/~dtschump/greycstoration/
If you want to use it, simple add the command:
denoise
And you can control the output file name instead of it always being render.#.extension
example:
tclsh renameanddenoise.tcl /home/dudeman/3d/indigo_06/renders/frames png outputfilename
with the total being:
tclsh renameanddenoise.tcl /home/dudeman/3d/indigo_06/renders/frames png outputfilename denoise
It will then make two files, the original render, renamed and all that, and the denoised file.
I don't use windows much, but I changed the original code in here to use no linux commands for renaming the files. If you use windows, renaming should work.