• Shotcut QML Scripting API
  • org.shotcut.qml
  • AttachedFiltersModel
  • AttachedFiltersModel QML Type

    A list model of filters attached to the currently selected clip or track. More...

    Import Statement: import org.shotcut.qml

    Properties

    Signals

    Methods

    Detailed Description

    AttachedFiltersModel is available as the attachedfiltersmodel context property in the Filters dock. Each row represents one attached filter service.

    Property Documentation

    isProducerSelected : bool

    true when a producer is currently selected and filters can be inspected.


    producerTitle : string

    The display name of the producer (clip or track) the filters are attached to.


    true when the current producer supports Time filters (i.e. MLT link chains).


    Signal Documentation

    changed()

    Emitted when any filter in the list is added, removed, reordered, or toggled.

    Note: The corresponding handler is onChanged.


    duplicateAddFailed(int index)

    Emitted when adding a filter would create a duplicate that is not allowed. index is the row of the conflicting filter.

    Note: The corresponding handler is onDuplicateAddFailed.


    Method Documentation

    int add(Metadata meta)

    Adds the filter described by meta to the attached filters list. Returns the row index of the newly added filter.


    bool move(int fromRow, int toRow)

    Moves the filter from fromRow to toRow. Returns true on success.


    void pasteFilters()

    Pastes any filters stored on the clipboard onto the current producer.


    void remove(int row)

    Removes the filter at row from the attached filters list.