Shift 1-2 to go to markers
This commit is contained in:
@@ -1274,7 +1274,7 @@ class VideoEditor:
|
||||
"""Calculate frame delay in milliseconds based on playback speed"""
|
||||
# Round to 2 decimals to handle floating point precision issues
|
||||
speed = round(self.playback_speed, 2)
|
||||
print(f"Playback speed: {speed}")
|
||||
# print(f"Playback speed: {speed}")
|
||||
if speed >= 1.0:
|
||||
# Speed >= 1: maximum FPS (no delay)
|
||||
return 1
|
||||
@@ -4511,6 +4511,14 @@ class VideoEditor:
|
||||
self.cut_end_frame = self.current_frame
|
||||
print(f"Set cut end at frame {self.current_frame}")
|
||||
self.save_state() # Save state when cut end is set
|
||||
elif key == ord("!"): # Shift+1 - Jump to cut start marker
|
||||
if not self.is_image_mode and self.cut_start_frame is not None:
|
||||
self.seek_to_frame(self.cut_start_frame)
|
||||
print(f"Jumped to cut start marker at frame {self.cut_start_frame}")
|
||||
elif key == ord("\""): # Shift+2 - Jump to cut end marker
|
||||
if not self.is_image_mode and self.cut_end_frame is not None:
|
||||
self.seek_to_frame(self.cut_end_frame)
|
||||
print(f"Jumped to cut end marker at frame {self.cut_end_frame}")
|
||||
elif key == ord("N"):
|
||||
if len(self.video_files) > 1:
|
||||
self.previous_video()
|
||||
|
Reference in New Issue
Block a user