media module

Media module.

Contains all classes and enums related to media.

mrv2.media.Afile() mrv2.FileMedia

Return the A file item.

mrv2.media.Aindex() int

Return the A file index.

mrv2.media.BIndexes() list[int]

Return the list of B indexes.

mrv2.media.Bfiles() list[mrv2.FileMedia]

Return the list of B files.

class mrv2.media.CompareTimeMode

Members:

Relative

Absolute

property name
mrv2.media.activeFiles() list[mrv2.FileMedia]

Return all the active files.

mrv2.media.clearB() None

Clear the B indexes.

mrv2.media.close(index: int) None

Close the current A file.

mrv2.media.closeAll() None

Close all files.

mrv2.media.firstVersion() None

Set the first version for current media.

mrv2.media.getCompareTime() mrv2.media.CompareTimeMode

Get compare time.

mrv2.media.lastVersion() None

Set the last version for current media.

mrv2.media.layers() list[int]

Return the list of layers.

mrv2.media.list() list[mrv2.FileMedia]

Return all the files.

mrv2.media.nextVersion() None

Set the next version for current media.

mrv2.media.previousVersion() None

Set the previous version for current media.

mrv2.media.setA(index: int) None

Set the A file index.

mrv2.media.setB(index: int, value: bool) None

Set a new B file index.

mrv2.media.setCompareTime(value: mrv2.media.CompareTimeMode) None

Set compare time.

mrv2.media.setLayer(item: mrv2.FileMedia, layer: int) None

Set layer for file item.

mrv2.media.setStereo(index: int) None

Set a new stereo file index.

mrv2.media.toggleB(index: int) None

Toggle the B file index.

class mrv2.media.CompareMode

Members:

A

B

Wipe

Overlay

Difference

Horizontal

Vertical

Tile

class mrv2.media.CompareOptions

Comparison options.

mode = mrv2.media.CompareMode

Compare mode mrv2.media.CompareMode.

overlay = float

Overlay ( A over B )

wipeCenter = mrv2.math.Vector2f

Wipe center in X and Y mrv2.math.Vector2f.

wipeRotation = float

Wipe Rotation.