Ejemplo n.º 1
0
def log_range_clicked():
    media_file = editorstate.MONITOR_MEDIA_FILE()
    if media_file == None:
        return
    if media_file.type == appconsts.PATTERN_PRODUCER:
        # INFOWINDOW ???
        return
    if media_file.mark_in == -1 or media_file.mark_out == -1:
        return

    file_path = media_file.path
    if PROJECT().proxy_data.proxy_mode == appconsts.USE_PROXY_MEDIA:
        if media_file.second_file_path != None:
            file_path = media_file.second_file_path  # proxy file exists
        else:
            file_path = media_file.path  # no proxy file created

    log_event = MediaLogEvent(appconsts.MEDIA_LOG_MARKS_SET,
                              media_file.mark_in, media_file.mark_out,
                              media_file.name, file_path)
    log_event.ttl = media_file.ttl

    editorstate.PROJECT().media_log.append(log_event)
    editorstate.PROJECT().add_to_group(_get_current_group_index(), [log_event])
    _update_list_view(log_event)
Ejemplo n.º 2
0
def switch_monitor_display():
    monitorevent.stop_pressed()
    if editorstate.MONITOR_MEDIA_FILE() == None:
        return
    if editorstate._timeline_displayed == True:
        gui.editor_window.clip_editor_b.set_active(True)
    else:
        gui.editor_window.sequence_editor_b.set_active(True)
Ejemplo n.º 3
0
def _save_monitor_media(widget, context, selection, target_id, timestamp):
    media_file = editorstate.MONITOR_MEDIA_FILE()
    global drag_data, drag_source
    drag_data = media_file
    drag_source = SOURCE_MONITOR_WIDGET
    if media_file == None:
        return False

    return True
Ejemplo n.º 4
0
def _save_monitor_media():
    media_file = editorstate.MONITOR_MEDIA_FILE()
    global drag_data
    drag_data = media_file

    if media_file == None:
        return False

    return True
Ejemplo n.º 5
0
def _save_monitor_media():
    media_file = editorstate.MONITOR_MEDIA_FILE()
    global drag_data, drag_source
    drag_data = media_file
    drag_source = SOURCE_MONITOR_WIDGET
    if media_file == None:
        return False

    return True
Ejemplo n.º 6
0
def log_range_clicked():
    media_file = editorstate.MONITOR_MEDIA_FILE()
    if media_file == None:
        return
    if media_file.type == appconsts.PATTERN_PRODUCER:
        # INFOWINDOW ???
        return
    if media_file.mark_in == -1 or media_file.mark_out == -1:
        return

    log_event = MediaLogEvent(appconsts.MEDIA_LOG_MARKS_SET,
                              media_file.mark_in, media_file.mark_out,
                              media_file.name, media_file.path)
    editorstate.PROJECT().media_log.append(log_event)
    _update_list_view()
Ejemplo n.º 7
0
def switch_monitor_display():
    monitorevent.stop_pressed()
    if editorstate.MONITOR_MEDIA_FILE() == None:
        return
    if editorstate._timeline_displayed == True:
        gui.monitor_switch.widget.queue_draw()