Example #1
0
def do_multiple_clip_insert(track, clips, tline_pos):
    index = _get_insert_index(track, tline_pos)

    # Can't put audio media on video track
    for new_clip in clips:
        if (new_clip.media_type == appconsts.AUDIO) and (track.type == appconsts.VIDEO):
            _display_no_audio_on_video_msg(track)
            return

    movemodes.clear_selected_clips()

    # Do edit
    data = {"track": track, "clips": clips, "index": index}
    action = edit.insert_multiple_action(data)
    action.do_edit()

    updater.display_tline_cut_frame(track, index)
Example #2
0
def do_multiple_clip_insert(track, clips, tline_pos):
    index = _get_insert_index(track, tline_pos)

    # Can't put audio media on video track
    for new_clip in clips:
        if ((new_clip.media_type == appconsts.AUDIO)
                and (track.type == appconsts.VIDEO)):
            _display_no_audio_on_video_msg(track)
            return

    movemodes.clear_selected_clips()

    # Do edit
    data = {"track": track, "clips": clips, "index": index}
    action = edit.insert_multiple_action(data)
    action.do_edit()

    updater.display_tline_cut_frame(track, index)