fs.lseqΒΆ

table sequences fs.lseq ( string path )

List the files in given path and look for sequences of files

This function lists the files in a given directory, and arrange them by sequence of similar files, so that files containing frame numbers are listed altogether. For instance, a directory containing:

  • render_beauty_00001.png
  • render_beauty_00002.png
  • render_beauty_00003.png
  • render_albedo_00001.png
  • render_albedo_00002.png
  • render_albedo_00003.png
will list render_beauty_$05f.png and render_albedo_$05f.png.

The returned value is a table of { id, directory, base, ext, frames }, where = /<$0xf>, and frames is a list of matching frames.

If path is a regular file, then lseq returns the file sequence for this file only.

Arguments:

  • path the path to the directory to list sequences

Return:

  • sequences The found sequences in the directory