Skip to main content

Tool to renumber image sequences.

Project description

About renumseq

renumseq is a Unix/Linux command-line-utility for renumbering image-sequences which are most typically used in CG post-production.

renumseq allows you to renumber sequences with an offset or give them a new start frame. It also allows you adjust the padding of the frame numbers.

renumseq uses the syntax of the native output of lsseq to specify the sequence to be renumbered. Therefore it is recommended to use lsseq as it makes using renumseq easier.

For example, use lsseq to list a sequence, then cut and paste its output as the arguments to renumseq with the appropriate arguments for setting the offset or new start-frame.

renumseq was written to be safe in that it won't unintentionally overwrite any existing files during renumbering.

If renumseq finds that by renumbering a sequence it will write over another frame outside the range specified then it will skip renumbering that sequence (printing a warning) and go onto the next sequence in the list. Naturally there is an option to force renumseq to overwrite those files if desired.

renumseq doesn't need to make temporary copies of files during the renumbering (it does a move of the file), so it's fast.

renumseq also has a useful option, called --replaceUnderscore that changes any underscore-separators (separating the filename from the frame-number) with dot-separators, like this:

filename_[n-m].extension -> filename.[n-m].extension

Protip: If all you want to do is switch the separator from an underscore to a dot, then use a zero offset, plus the --replaceUnderscore argument.

Installing renumseq

python3 -m pip install renumSeq --upgrade

Testing renumseq

After installing try the following:

$ cd ~
$ mkdir tmp
$ cd tmp
$ touch aaa.001.tif aaa.002.tif aaa.003.tif aaa.004.tif aaa.005.tif
$ lsseq -Z
aaa.[001-005].tif
$ renumseq --verbose --offset 10 'aaa.[001-005].tif'
aaa.005.tif -> aaa.015.tif
aaa.004.tif -> aaa.014.tif
aaa.003.tif -> aaa.013.tif
aaa.002.tif -> aaa.012.tif
aaa.001.tif -> aaa.011.tif
$ lsseq -Z
aaa.[011-015].tif

Note that you may get an error from your shell when you try to run the renumseq command above, without the quotes around the sequence, that might look something like this:

% renumseq -o 10 aaa.[001-005].tif
renumseq: No match.

In which case you need to "escape" the square brackets as they are special characters as far as the shell is concerned. Escape them like this:

% renumseq -v -o 10 aaa.\[001-005\].tif
aaa.005.tif -> aaa.015.tif
aaa.004.tif -> aaa.014.tif
aaa.003.tif -> aaa.013.tif
aaa.002.tif -> aaa.012.tif
aaa.001.tif -> aaa.011.tif

Alternatively you can just enclose the argument in quotes ('aaa.[001-005].tif') like we did in the example above.

Type this:

$ renumseq --help

...for much more useful info.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

renumseq-1.4.2.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

renumSeq-1.4.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file renumseq-1.4.2.tar.gz.

File metadata

  • Download URL: renumseq-1.4.2.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.20

File hashes

Hashes for renumseq-1.4.2.tar.gz
Algorithm Hash digest
SHA256 6182a0560f3107779f9d97c16a0d2116a1e9e0ce9b69a5dbed822b86ab62f89e
MD5 2cfef5b8803a335c235e7af0014bd531
BLAKE2b-256 f4e408bf992427c4cd956a5433b1ca90c777c60a1e6c2f00483ca3d43003abeb

See more details on using hashes here.

File details

Details for the file renumSeq-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: renumSeq-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.20

File hashes

Hashes for renumSeq-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09113f7d2dde71022388e2a68412bda7c348cca83de90f6d78389ca33392c822
MD5 1b73f9e454b71d88b9b7c084d1709f80
BLAKE2b-256 b4e4a9cd7b829e2ef188ad9695dcfb8ad15a2ce247f86afb2e901763bd6d4e68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page