seqinfo

command
v2.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 10 Imported by: 0

README

seqinfo

A command-line utility, using gofileseq, to parse one or more sequence pattern strings and list plain text or json info.

Example sequence formats

  • /path/to/some/file_foo.0100.exr
  • /path/to/some/file_foo.1-100#.jpg
  • /path/to/some/file_foo.1-100@@@.tif
  • relative_file.1-10,50-100x2#.tif
  • file_without_frame.ext

Usage

# Single string pattern, in plain-text
$ seqinfo "/path/to/seq.1-100#.exr"
Source = /path/to/seq.1-100#.exr
    String = /path/to/seq.1-100#.exr
    Dirname = /path/to/
    Basename = seq.
    Range = 1-100
    Padding = #
    Ext = .exr
    Start = 1
    End = 100
    Len = 100
    ZFill = 4
    HasRange = true

# Multiple patterns, in json format
$ seqinfo --json "/path/to/file.exr" "/path/to/seq.-10-200x2@@.exr"
{
    "/path/to/file.exr": {
        "error": "",
        "string": "/path/to/file.exr",
        "dir": "/path/to/",
        "base": "file",
        "range": "",
        "pad": "",
        "ext": ".exr",
        "start": 0,
        "end": 0,
        "length": 1,
        "zfill": 0,
        "hasRange": false
    },
    "/path/to/seq.-10-200x2@@.exr": {
        "error": "",
        "string": "/path/to/seq.-10-200x2@@.exr",
        "dir": "/path/to/",
        "base": "seq.",
        "range": "-10-200x2",
        "pad": "@@",
        "ext": ".exr",
        "start": -10,
        "end": 200,
        "length": 106,
        "zfill": 2,
        "hasRange": true
    }
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL