find_track_element


Description:

public TrackElement? find_track_element (Track? track, Type type)

Finds an element controlled by the clip.

If track is given, then only the track elements in track are searched for. If type is given, then this function searches for a track element of the given type.

Note, if multiple track elements in the clip match the given criteria, this will return the element amongst them with the highest priority (numerically, the smallest). See find_track_elements if you wish to find all such elements.

Parameters:

this

A Clip

track

The track to search in, or null to search in all tracks

type

The type of track element to search for, or `G_TYPE_NONE` to match any type

Returns:

The element controlled by this, in track, and of the given type, or null if no such element could be found.