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
borrows the syntax of the native output of
lsseq
to specify
the sequence to be renumbered. Therefore it is recommended to
also install 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 appropriate optional
arguments for setting the offset etc.
renumseq
was written to be safe in that it won't
unintentionally overwrite any existing files
during the 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
to change files of this form:
filename_[n-m].extension
...to this,
filename.[n-m].extension
which, as you can see, replaces the underscore-separator with a dot-separator.
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
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 like we did above: 'aaa.[001-005].tif'
.
Type this:
$ renumseq --help
...for much more useful info.
Please contact j a m e s <at> a l p h a - e l e v e n . c o m with any bug reports, suggestions or praise as the case may be.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file renumSeq-1.2.2.tar.gz
.
File metadata
- Download URL: renumSeq-1.2.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00742b31466382a75eb55a5391bf0e348be925a8e2e07310ef1284b02498065e |
|
MD5 | 80479c3442aed32c2304ef00bdc27530 |
|
BLAKE2b-256 | 968cbb7a01c29c7d32900db12b86546fe6f3567bf2a3510bc714d122a52e09aa |
File details
Details for the file renumSeq-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: renumSeq-1.2.2-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1fdfb849cd1f1660d9da983f3d98dd0d01ce1edfee166d539233ba8b3de78a8 |
|
MD5 | b4538109d6544cffe6bade381bdbbf96 |
|
BLAKE2b-256 | 4c49a9ddf13d34665a41a4aee3a597c99e60eb5215a214c25c442addad31d1ac |