def _compositor_menu_item_activated(widget, data): action_id, compositor = data if action_id == "open in editor": compositeeditor.set_compositor(compositor) elif action_id == "delete": compositor.selected = False data = {"compositor":compositor} action = edit.delete_compositor_action(data) action.do_edit() elif action_id == "sync with origin": track = current_sequence().tracks[compositor.transition.b_track] # b_track is source track where origin clip is origin_clip = None for clip in track.clips: if clip.id == compositor.origin_clip_id: origin_clip = clip if origin_clip == None: dialogutils.info_message(_("Origin clip not found!"), _("Clip used to create this Compositor has been removed\nor moved to different track."), gui.editor_window.window) return clip_index = track.clips.index(origin_clip) clip_start = track.clip_start(clip_index) clip_end = clip_start + origin_clip.clip_out - origin_clip.clip_in data = {"compositor":compositor,"clip_in":clip_start,"clip_out":clip_end} action = edit.move_compositor_action(data) action.do_edit()
def _compositor_menu_item_activated(widget, data): action_id, compositor = data if action_id == "open in editor": compositeeditor.set_compositor(compositor) elif action_id == "delete": compositor.selected = False data = {"compositor": compositor} action = edit.delete_compositor_action(data) action.do_edit() elif action_id == "sync with origin": track = current_sequence().tracks[ compositor.transition. b_track] # b_track is source track where origin clip is origin_clip = None for clip in track.clips: if clip.id == compositor.origin_clip_id: origin_clip = clip if origin_clip == None: dialogutils.info_message( _("Origin clip not found!"), _("Clip used to create this Compositor has been removed\nor moved to different track." ), gui.editor_window.window) return clip_index = track.clips.index(origin_clip) clip_start = track.clip_start(clip_index) clip_end = clip_start + origin_clip.clip_out - origin_clip.clip_in data = { "compositor": compositor, "clip_in": clip_start, "clip_out": clip_end } action = edit.move_compositor_action(data) action.do_edit()
def _delete_compositors(data): clip, track, item_id, x = data compositors = current_sequence().get_clip_compositors(clip) for compositor in compositors: data = {"compositor":compositor} action = edit.delete_compositor_action(data) action.do_edit()
def delete_current_selection(): global compositor if compositor == None: return data = {"compositor":compositor} action = edit.delete_compositor_action(data) action.do_edit() compositor.selected = False # this may return in undo? compositor = None
def _compositor_menu_item_activated(widget, data): action_id, compositor = data if action_id == "open in editor": compositeeditor.set_compositor(compositor) elif action_id == "delete": compositor.selected = False data = {"compositor": compositor} action = edit.delete_compositor_action(data) action.do_edit() elif action_id == "sync with origin": tlineaction.sync_compositor(compositor)
def _compositor_menu_item_activated(widget, data): action_id, compositor = data if action_id == "open in editor": compositeeditor.set_compositor(compositor) elif action_id == "delete": compositor.selected = False data = {"compositor":compositor} action = edit.delete_compositor_action(data) action.do_edit() elif action_id == "sync with origin": tlineaction.sync_compositor(compositor)
def _multi_delete_compositors(data): clip, track, item_id, x = data for clip_index in range(movemodes.selected_range_in, movemodes.selected_range_out + 1): composited_clip = track.clips[clip_index] if composited_clip.is_blanck_clip == True: continue compositors = current_sequence().get_clip_compositors(composited_clip) for compositor in compositors: data = {"compositor": compositor} action = edit.delete_compositor_action(data) action.do_edit()
def _compositor_menu_item_activated(widget, data): action_id, compositor = data if action_id == "open in editor": compositeeditor.set_compositor(compositor) elif action_id == "delete": compositor.selected = False data = {"compositor": compositor} action = edit.delete_compositor_action(data) action.do_edit() elif action_id == "sync with origin": tlineaction.sync_compositor(compositor) elif action_id == "set auto follow": compositor.obey_autofollow = widget.get_active() updater.repaint_tline()
def _compositor_menu_item_activated(widget, data): action_id, compositor = data if action_id == "open in editor": compositeeditor.set_compositor(compositor) elif action_id == "delete": compositor.selected = False data = {"compositor":compositor} action = edit.delete_compositor_action(data) action.do_edit() elif action_id == "sync with origin": tlineaction.sync_compositor(compositor) elif action_id == "set auto follow": compositor.obey_autofollow = widget.get_active() updater.repaint_tline()
def _delete_compositor_pressed(): data = {"compositor": compositor} action = edit.delete_compositor_action(data) action.do_edit()
def _delete_compositor_pressed(): data = {"compositor":compositor} action = edit.delete_compositor_action(data) action.do_edit()