This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyautogui # Import pyautogui to simulate keystrokes and mouse actions | |
| # Get the current project and timeline from DaVinci Resolve | |
| project = resolve.GetProjectManager().GetCurrentProject() | |
| timeline = project.GetCurrentTimeline() | |
| # Get the timeline frame rate as an integer | |
| frame_rate = int(project.GetSetting("timelineFrameRate")) | |
| # Function to get the clip currently under the playhead |