Adverti horiz upsell

compressList2.tcl 2.0.0 for Nuke

compress a list into sequence syntax

License
Button download
362 Downloads

Compatibility

History

Created:09/15/2006
Last Modified:09/13/2007
File Size: 1.3 KB
this will convert a tcl list of files into Nuke readable syntax.
I.e.:
MyFile.0001.exr
MyFile.0002.exr
MyFile.0003.exr
MyFile.0004.exr

will become:
{{MyFile.%04d.exr} 1-4}

syntax:
compressList

example:

nuke> set myList1 {MyFileA.0001.exr MyFileA.0002.exr MyFileA.0003.exr MyFileA.0004.exr}
nuke> MyFileA.0001.exr MyFileA.0002.exr MyFileA.0003.exr MyFileA.0004.exr
nuke>
nuke> set myList2 {MyFileB.01.exr MyFileB.02.exr MyFileB.03.exr}
nuke> MyFileB.01.exr MyFileB.02.exr MyFileB.03.exr
nuke>
nuke> set myList3 concat $myList1 $myList2
nuke> MyFileA.0001.exr MyFileA.0002.exr MyFileA.0003.exr MyFileA.0004.exr MyFileB.01.exr MyFileB.02.exr MyFileB.03.exr
nuke>
nuke> compressList $myList3
nuke> {MFileB.%02d.exr 1-3} {MyFileA.%04d.exr 1-4}






Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.