Beispiel #1
0
def init_sequence_gui():
    """
    Called after project load or changing current sequence 
    to initialize interface.
    """
    # Set correct compositing mode menu item selected
    gui.editor_window.init_compositing_mode_menu()
    gui.editor_window.init_timeline_rendering_menu()
    gui.editor_window.tline_render_mode_launcher.set_pixbuf(
        editorstate.tline_render_mode)
    gui.comp_mode_launcher.set_pixbuf(editorstate.get_compositing_mode())

    # Set initial timeline scale draw params
    editorstate.current_sequence().update_length()

    # Handle timeline rendering GUI and data
    tlinerender.init_for_sequence()
    gui.editor_window.hide_tline_render_strip()
    if editorstate.get_tline_rendering_mode() != appconsts.TLINE_RENDERING_OFF:
        gui.editor_window.show_tline_render_strip()

    updater.update_pix_per_frame_full_view()
    updater.init_tline_scale()
    updater.repaint_tline()
Beispiel #2
0
def update_renderer_to_mode():
    global _timeline_renderer
    if get_tline_rendering_mode() == appconsts.TLINE_RENDERING_OFF:
        _timeline_renderer = NoOpRenderer()
    else:
        _timeline_renderer = TimeLineRenderer()