Class ImageSequenceReference

All Implemented Interfaces:
java.lang.AutoCloseable

public class ImageSequenceReference
extends MediaReference
An ImageSequenceReference refers to a numbered series of single-frame image files. Each file can be referred to by a URL generated by the ImageSequenceReference.

Image sequences can have URLs with discontinuous frame numbers, for instance if you've only rendered every other frame in a sequence, your frame numbers may be 1, 3, 5, etc. This is configured using the ``frame_step`` attribute. In this case, the 0th image in the sequence is frame 1 and the 1st image in the sequence is frame 3. Because of this there are two numbering concepts in the image sequence, the image number and the frame number.

Frame numbers are the integer numbers used in the frame file name. Image numbers are the 0-index based numbers of the frames available in the reference. Frame numbers can be discontinuous, image numbers will always be zero to the total count of frames minus 1.

Negative startFrame is also handled. eg: - "file:///show/sequence/shot/sample_image_sequence.-0001.exr" - "file:///show/sequence/shot/sample_image_sequence.0000.exr" - "file:///show/sequence/shot/sample_image_sequence.0001.exr"