def do_timeline_objects_paste(): if _timeline_has_focus() == False: return track = current_sequence().get_first_active_track() if track == None: return paste_objs = editorstate.get_copy_paste_objects() if paste_objs == None: return data_type, paste_clips = paste_objs if data_type != COPY_PASTA_DATA_CLIPS: do_compositor_data_paste(paste_objs) return tline_pos = editorstate.current_tline_frame() new_clips = [] for clip in paste_clips: new_clip = current_sequence().create_clone_clip(clip) new_clips.append(new_clip) editorstate.set_copy_paste_objects((COPY_PASTA_DATA_CLIPS, new_clips)) # Paste clips editevent.do_multiple_clip_insert(track, paste_clips, tline_pos)
def do_timeline_objects_paste(): track = current_sequence().get_first_active_track() if track == None: return paste_objs = editorstate.get_copy_paste_objects() if paste_objs == None: return tline_pos = editorstate.current_tline_frame() new_clips = [] for clip in paste_objs: new_clip = current_sequence().create_clone_clip(clip) new_clips.append(new_clip) editorstate.set_copy_paste_objects(new_clips) # Paste clips editevent.do_multiple_clip_insert(track, paste_objs, tline_pos)