def set_clip(clip, track, clip_index, show_tab=True): """ Sets clip being edited and inits gui. """ if _filter_stack != None: if clip == _filter_stack.clip and track == _filter_stack.track and clip_index == _filter_stack.clip_index and show_tab == False: return global keyframe_editor_widgets keyframe_editor_widgets = [] widgets.clip_info.display_clip_info(clip, track, clip_index) set_enabled(True) update_stack(clip, track, clip_index) if len(clip.filters) > 0: pass # remove if nothing needed here. else: show_text_in_edit_area(_("Clip Has No Filters")) if show_tab: editorlayout.show_panel(appconsts.PANEL_FILTERS) global _edit_polling_thread # Close old polling if _edit_polling_thread != None: _edit_polling_thread.shutdown() # Start new polling _edit_polling_thread = PropertyChangePollingThread() _edit_polling_thread.start()
def _update_list_view(log_event): widgets.media_log_view.fill_data_model() max_val = widgets.media_log_view.scroll.get_vadjustment().get_upper() editorlayout.show_panel(appconsts.PANEL_RANGE_LOG) view_group = get_current_filtered_events() try: event_index = view_group.index(log_event) widgets.media_log_view.treeview.get_selection().select_path(str(event_index)) except: pass # if non-starred are not displayed currently. TODO: think of logic, should new items into displayed category? GLib.idle_add(_scroll_window, max_val)
def add_job(job_proxy): global _jobs, _jobs_list_view _jobs.append(job_proxy) _jobs_list_view.fill_data_model() if editorpersistance.prefs.open_jobs_panel_on_add == True: editorlayout.show_panel(appconsts.PANEL_JOBS) if editorpersistance.prefs.render_jobs_sequentially == False: # Feature not active for first release 2.6. job_proxy.start_render() else: running = _get_jobs_with_status(RENDERING) if len(running) == 0: job_proxy.start_render() # Get polling going if needed. global _status_polling_thread if _status_polling_thread == None: _status_polling_thread = ContainerStatusPollingThread() _status_polling_thread.start()
def set_compositor(new_compositor): """ Sets clip to be edited in compositor editor. """ global compositor if compositor != None and new_compositor.destroy_id != compositor.destroy_id: compositor.selected = False compositor = new_compositor widgets.compositor_info.display_compositor_info(compositor) set_enabled(True) _display_compositor_edit_box() editorlayout.show_panel(appconsts.PANEL_COMPOSITORS) global _edit_polling_thread # Close old polling if _edit_polling_thread != None: _edit_polling_thread.shutdown() # Start new polling _edit_polling_thread = PropertyChangePollingThread() _edit_polling_thread.start()