Skip to content

Enums

Bases: IntEnum

The type of a ProjectItem.

One of CLIP, BIN, ROOT or FILE [Premiere Scripting Guide ProjectItem.type].

Source code in src/py_premiere/enums/general.py
class ProjectItemType(IntEnum):
    """The type of a `ProjectItem`.

    One of `CLIP`, `BIN`, `ROOT` or `FILE` [Premiere Scripting Guide
    `ProjectItem.type`].
    """

    CLIP = 1
    BIN = 2
    ROOT = 3
    FILE = 4

Attributes

BIN class-attribute instance-attribute

BIN = 2

CLIP class-attribute instance-attribute

CLIP = 1

FILE class-attribute instance-attribute

FILE = 4

ROOT class-attribute instance-attribute

ROOT = 3

Bases: IntEnum

Temporal interpolation of a keyframe.

Values match the Scripting Guide's kfInterpMode constants and UXP's Constants.InterpolationMode; verified against the stored keyframe encoding via the 09_keyframes fixture.

Source code in src/py_premiere/enums/general.py
class KeyframeInterpolation(IntEnum):
    """Temporal interpolation of a keyframe.

    Values match the Scripting Guide's `kfInterpMode` constants and UXP's
    `Constants.InterpolationMode`; verified against the stored keyframe
    encoding via the `09_keyframes` fixture.
    """

    LINEAR = 0
    EASE_IN_OBSOLETE = 1
    EASE_OUT_OBSOLETE = 2
    EASE_IN_EASE_OUT_OBSOLETE = 3
    HOLD = 4
    BEZIER = 5
    TIME = 6
    TIME_TRANSITION_START = 7
    TIME_TRANSITION_END = 8

Attributes

BEZIER class-attribute instance-attribute

BEZIER = 5

EASE_IN_EASE_OUT_OBSOLETE class-attribute instance-attribute

EASE_IN_EASE_OUT_OBSOLETE = 3

EASE_IN_OBSOLETE class-attribute instance-attribute

EASE_IN_OBSOLETE = 1

EASE_OUT_OBSOLETE class-attribute instance-attribute

EASE_OUT_OBSOLETE = 2

HOLD class-attribute instance-attribute

HOLD = 4

LINEAR class-attribute instance-attribute

LINEAR = 0

TIME class-attribute instance-attribute

TIME = 6

TIME_TRANSITION_END class-attribute instance-attribute

TIME_TRANSITION_END = 8

TIME_TRANSITION_START class-attribute instance-attribute

TIME_TRANSITION_START = 7

Bases: IntEnum

How a still's alpha channel is interpreted.

Values from the UXP FootageInterpretation.ALPHACHANNEL_* constants.

Source code in src/py_premiere/enums/general.py
class AlphaUsage(IntEnum):
    """How a still's alpha channel is interpreted.

    Values from the UXP `FootageInterpretation.ALPHACHANNEL_*` constants.
    """

    NONE = 0
    STRAIGHT = 1
    PREMULTIPLIED = 2
    IGNORE = 3

Attributes

IGNORE class-attribute instance-attribute

IGNORE = 3

NONE class-attribute instance-attribute

NONE = 0

PREMULTIPLIED class-attribute instance-attribute

PREMULTIPLIED = 2

STRAIGHT class-attribute instance-attribute

STRAIGHT = 1

Bases: IntEnum

Field dominance of interlaced footage.

Values from the UXP FootageInterpretation.FIELD_TYPE_* constants.

Source code in src/py_premiere/enums/general.py
class VideoFieldType(IntEnum):
    """Field dominance of interlaced footage.

    Values from the UXP `FootageInterpretation.FIELD_TYPE_*` constants.
    """

    DEFAULT = -1
    PROGRESSIVE = 0
    UPPER_FIRST = 1
    LOWER_FIRST = 2

Attributes

DEFAULT class-attribute instance-attribute

DEFAULT = -1

LOWER_FIRST class-attribute instance-attribute

LOWER_FIRST = 2

PROGRESSIVE class-attribute instance-attribute

PROGRESSIVE = 0

UPPER_FIRST class-attribute instance-attribute

UPPER_FIRST = 1

Bases: IntEnum

Which of Premiere's synthetic media an item is backed by.

Generated media has no file: its Media/FilePath is a big-endian four-character code instead of a path, which is why ExtendScript reports no media path for these items. The codes are the values here (BLAK, COLR, ...), captured by creating one of each through the QE DOM.

Source code in src/py_premiere/enums/general.py
class GeneratorType(IntEnum):
    """Which of Premiere's synthetic media an item is backed by.

    Generated media has no file: its `Media/FilePath` is a big-endian
    four-character code instead of a path, which is why ExtendScript reports
    no media path for these items. The codes are the values here (`BLAK`,
    `COLR`, ...), captured by creating one of each through the QE DOM.
    """

    BLACK_VIDEO = 1112293707
    COLOR_MATTE = 1129270354
    BARS_AND_TONE = 1111577171
    TRANSPARENT_VIDEO = 1414680150
    UNIVERSAL_COUNTING_LEADER = 1279607108

Attributes

BARS_AND_TONE class-attribute instance-attribute

BARS_AND_TONE = 1111577171

BLACK_VIDEO class-attribute instance-attribute

BLACK_VIDEO = 1112293707

COLOR_MATTE class-attribute instance-attribute

COLOR_MATTE = 1129270354

TRANSPARENT_VIDEO class-attribute instance-attribute

TRANSPARENT_VIDEO = 1414680150

UNIVERSAL_COUNTING_LEADER class-attribute instance-attribute

UNIVERSAL_COUNTING_LEADER = 1279607108

Bases: IntEnum

How a retimed clip fills in the frames it needs.

Premiere elides the field at FRAME_SAMPLING, so an untouched clip reports that. The mapping was pinned by writing each value through the QE DOM: legacy setFrameBlend(true) and setTimeInterpolationType(1) produce the same stored 1.

Source code in src/py_premiere/enums/general.py
class TimeInterpolationType(IntEnum):
    """How a retimed clip fills in the frames it needs.

    Premiere elides the field at `FRAME_SAMPLING`, so an untouched clip
    reports that. The mapping was pinned by writing each value through the QE
    DOM: legacy `setFrameBlend(true)` and `setTimeInterpolationType(1)`
    produce the same stored `1`.
    """

    FRAME_SAMPLING = 0
    FRAME_BLENDING = 1
    OPTICAL_FLOW = 2

Attributes

FRAME_BLENDING class-attribute instance-attribute

FRAME_BLENDING = 1

FRAME_SAMPLING class-attribute instance-attribute

FRAME_SAMPLING = 0

OPTICAL_FLOW class-attribute instance-attribute

OPTICAL_FLOW = 2