in reply to Re: Detect file sequences in File:Find results
in thread Detect file sequences in File:Find results
--->What does the preprocess sub do?
It sorts the directory results so that the unpadded sequences comes back in the correct order. Without it the sequence comes back looking like this:
It sorts the directory results so that the unpadded sequences comes back in the correct order. Without it the sequence comes back looking like this:
Which would make the sequence detection incorrect. It also handles the cases where there are files with the same name but different extension like this:image_sequenceA.1.tif image_sequenceA.11.tif image_sequenceA.12.tif image_sequenceA.13.tif image_sequenceA.14.tif image_sequenceA.15.tif image_sequenceA.16.tif image_sequenceA.17.tif image_sequenceA.18.tif image_sequenceA.19.tif image_sequenceA.2.tif image_sequenceA.20.tif image_sequenceA.3.tif
So the preprocess sub is necessary in my case unless I can do the same sort somewhere elseimage_sequenceA.1.tif image_sequenceA.2.tif image_sequenceA.3.tif image_sequenceA.1.exr image_sequenceA.2.exr image_sequenceA.3.exr
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Detect file sequences in File:Find results
by johngg (Canon) on Jan 21, 2013 at 15:38 UTC |
In Section
Seekers of Perl Wisdom