Skip to content

Commit def4869

Browse files
authored
"Copy Keyframes > All" includes "Crop *" settings
(Feel free to ignore this PR or tell me i'm out of my mind) But this may help someone who maybe expecting the Copy Keyframes > All feature to include the Crop keyframes (which work together with scaling X/Y and location X/Y to "frame" a video nicely). Added data elements in my proposal: -`crop_x` -`crop_y` -`crop_height` -`crop_width` Tested it locally and seems to work. Not sure if there is a catch. Again, please just tell me if there is. Hope this helps
1 parent 8c3d90c commit def4869

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/windows/views/webview.py

+4
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,10 @@ def Copy_Triggered(self, action, clip_ids, tran_ids):
14621462
self.copy_clipboard[clip_id] = clip.data
14631463
elif action == MENU_COPY_KEYFRAMES_ALL:
14641464
self.copy_clipboard[clip_id]['alpha'] = clip.data['alpha']
1465+
self.copy_clipboard[clip_id]['crop_height'] = clip.data['crop_height']
1466+
self.copy_clipboard[clip_id]['crop_width'] = clip.data['crop_width']
1467+
self.copy_clipboard[clip_id]['crop_x'] = clip.data['crop_x']
1468+
self.copy_clipboard[clip_id]['crop_y'] = clip.data['crop_y']
14651469
self.copy_clipboard[clip_id]['gravity'] = clip.data['gravity']
14661470
self.copy_clipboard[clip_id]['scale_x'] = clip.data['scale_x']
14671471
self.copy_clipboard[clip_id]['scale_y'] = clip.data['scale_y']

0 commit comments

Comments
 (0)