- Posts: 2
- Joined: Mon Sep 02, 2024 4:33 pm
- Real Name: Charles Simon
Hey Charles,
In Resolve, on the Menubar, go to Help > Documentation > Developer
It will open files/explorer/finder window to the Resolve Developer folder, then go to Scripting and check out the readme.txt this has all the API calls you can use and documents how to set up paths etc. Also in the /examples folder are some scripts to get you started!
I wish there was something like what you have described, there are few things around this forum like Roger's thread:
viewtopic.php?f=21&t=175315&p=920798#p920414
Getting the last frame of a shot is something I've been wanting to properly figure out for a long time... its weirdly hard to do even with a fairly large API... and it gets very complicated if the shot is retimed...
But for what you are trying to do, it could be easier to script your keyboard actions with something like AutoHotkey or Keyboard Maestro... I would do:
1. Press ; or ' key to go to first or end frame of the current shot
2. Go 1 frame fwd or back via left/right arrow key
3. ctrl/cmd + B to cut/razor
4. Move to newly cut frame left/right x1
5. Shift + R to freeze frame (I think that's a standard keyboard shortcut?)
6. Pull the freeze-framed shot out to its desired length with mouse
I think you could script/make steps 1-5 in AHK or KBM fairly painlessly...