=== modified file 'openshot/windows/AddToTimeline.py' --- openshot/windows/AddToTimeline.py 2011-02-09 06:31:14 +0000 +++ openshot/windows/AddToTimeline.py 2011-05-25 20:41:28 +0000 @@ -74,6 +74,7 @@ # Add the first transition self.cboTransition.append_text(_("No Transition")) self.cboTransition.append_text(_("Random Transition")) + self.cboTransition.append_text(_("Cut end of clip")) self.cboTransition.append_text(_("Dissolve")) self.transitions[_("Dissolve")] = "" @@ -315,6 +316,7 @@ #animation = self.cboAnimation.get_active_text() use_transitions = True use_random = False + cut_end = False if transition_name == _("No Transition"): # do not use a transition @@ -322,6 +324,9 @@ elif transition_name == _("Random Transition"): # random transitions use_random = True + elif transition_name == _("Cut end of clip"): + # random transitions + cut_end = True else: # get the file path of the transition transition_file_path = self.transitions[transition_name] @@ -351,6 +356,7 @@ (dirName, fileName) = os.path.split(file.name) # Add clips to track 1 + # TODO: cut "transition_length" from file.length new_clip = current_track.AddClip(fileName, "Gold", position, float(0.0), float(file.length), file) # Apply Fade settings @@ -388,10 +394,14 @@ transition_name = random_transition[0] transition_file_path = random_transition[1] - # add the transition - new_trans = trackA_object.AddTransition(transition_name, position, transition_length, transition_file_path) - if location == "top": - new_trans.reverse = True + # if user just wants to cut the end, don't apply a transition + if cut_end: + remove_later = True + else: + # add the transition + new_trans = trackA_object.AddTransition(transition_name, position, transition_length, transition_file_path) + if location == "top": + new_trans.reverse = True # change tracks (if needed) if use_transitions: