Google AI Pro Subscription Review.
Using the Google AI Pro Subscription so far is pretty fun and saved me some time.
I have a 6 month free trial for Google One – Google AI Pro subscription because of buying the Google Pixel 11 Pro XL phone.
Other than making a few AI videos with Google Flow and playing with AI music ideas in Google Flow Music I didn’t think much about Gemini on the AI Pro Subscription until…..
I remembered we have some boring steps in the video workflows that I tried before to automate with scripts and failed.
I gave it another try….
Wow the Google Gemini Argon can really deliver code that actually works OUT OF THE literal BOX.
With a few back and forth, I (it) was able to build a python script to run in the DaVinci Resolve Studio 21 Console or as a Workspace Automation Script.
I was thinking maybe nobody cares about this or maybe I shouldn’t be sharing my secrets but this whole channel and the website are all about helping and sharing information so here it is in case someone might find this useful.
Google Gemini 4 Argon Split DaVinci Resolve 21 Timeline into Multiple Timelines Video Demonstration Splitting Working
Do everything in batches, everything
We have everything recorded and processed in batches.
The purpose of batches is to make editing and processing faster and ultimately easier for us so the computer does the processing while we play at the beach.
The videos are 100% real and the editing is still 100% human-made, but I will look into the Resolve 21 AI editing more.
I did try the Claude desktop app to plug into DaVinci Resolve 21 to do some good old AI editing but that didn’t go well for our kind of videos.
It kept saying it doesn’t read the actual video or audio and needs captions to do the editing. Even with subtitles/ captions, it didn’t work.
The workflow still has many repetitive steps and every time I tried to automate it with AI-generated scripts, it didn’t work.
I have a script done in AHK that will send keystrokes to resolve to automate some repetitive tasks and that works most of the time but not always.
In Gemini 4 Argon…
I was able to replace the unreliable AKH script with Resolve API calls to to the repetitive work and I’m shocked it’s working so well and how reliable it is.
I’m impressed really.
This post is written by hand and might not look as good as it should but I only care about delivering the information to you how I could without the fancy words.
The workflow is…
Record 10-20 videos with the camera and a separate audio recording for the room sounds.
Camera: Panasonic LUMIX S5 with the DMW-XLR1 on the hotshoe and the Rode NT1 plugged into the XLR adapter interface.
Audio recording done separate with the SONY PCM-A10 and a stereo DYI Microphone based on the Primo EM-172 capsules.
When starting a recording I snap my fingers next to the microphones a few times for sync later.
I don’t have timecode. I wish I did but snapping fingers works mostly fine – not always.
Results:
Video files : 4K 60p HLG HDR with Dual MONO 24 bit Audio from the Rode NT1.
Audio files: 24 bit Stereo WAV.
In Resolve
Import the video and audio files into a predefined folder structure.
Naming example 20261026 iPhone and Android videos
The folders start with YYYYMMDD and if there are multiple folders in a day the second becomes 20261026B or make for morning 20261026A and evening 20261026B. Split the day into AM PM so can say 20261026A and after 12 noon 20261026P. It can be anything.
Before I had the files into separate folders for each camera and recorder with the name of the camera and audio for audio clips but now I just put everything into this folder as it is. It’s easier like that.
Have the Resolve project template ready and duplicate it then rename it with the same name as the source media folder – copy and paste.
Opening the Resolve project and adding the media files to the source media bin inside the new Resolve project.
Then Select all files and use Ctrl+Alt+Shift Q to attach the audio clips to the video files. Use waveform and choose to keep existing audio.
Now you have hopefully video clips with 4 audio tracks when adding them to your timeline. The extra audio clips are attached to the videos from now on as one.
Generate Proxy media for me is Ctrl+Alt+Shift P.
Edit the videos and because the clips are for multiple videos, we put markers between videos.
If any clips need to be blurred for privacy they are marked as Violet clip colors to look at later in the Color tab.
We name the markers as the final videos to be rendered and uploaded to YouTube.
Example: 20261026-01 iPhone Change eSIM; 20261026-02 Android Remove SIM.
Each video gets an index ID based on the location on the timeline. This doesn’t have to be like this, it can be any name but I like it this way YYYYMMDD-NN Name
Prepared timeline
Do any color grading – mostly a template saved as a color grading group for each setup. Desk is the most common with the same 3K kelvin lights on the desk.
Any watermarks or intros are added to the whole timeline as one whole thing.
Split DaVinci Resolve 21 Timeline into Multiple Timelines.
This is the part where we do split DaVinci Resolve 21 Timeline into Multiple Timelines and add to Render Queue.
The new script does the splitting and we do the preparation so all the data points are correct.
It needs a marker before each video including the beginning.
The markers need to be named with the final video rendered file name. This is where the splitting script takes the names from.
videos_split_on_markers.py
#!/usr/bin/env python3
import sys
import os
import re
import time
import ctypes
import ctypes.util
import subprocess
# SETUP
# mkdir -p ~/Library/Application\ Support/Blackmagic\ Design/DaVinci\ Resolve/Fusion/Scripts/Edit
# nano -w ~/Library/Application\ Support/Blackmagic\ Design/DaVinci\ Resolve/Fusion/Scripts/Edit/Split_And_Render.py
##--
# mkdir -p ~/Library/Application\ Support/Blackmagic\ Design/DaVinci\ Resolve/Fusion/Scripts/Edit
# nano ~/Library/Application\ Support/Blackmagic\ Design/DaVinci\ Resolve/Fusion/Scripts/Edit/Split_And_Render.py
# Grant Accessibility Permission (Required for Keystrokes on macOS):
#Open System Settings -> Privacy & Security -> Accessibility.
#Enable DaVinci Resolve (and Terminal, if you run the script via python3 Split_And_Render.py from Terminal). Without this, macOS blocks System Events from pressing Cmd+B.
# Either run python3 ~/Library/Application\ Support/Blackmagic\ Design/DaVinci\ Resolve/Fusion/Scripts/Edit/Split_And_Render.py from Terminal, or click Workspace -> Scripts -> Edit -> Split_And_Render inside DaVinci Resolve.
IS_MAC = sys.platform.startswith("darwin")
IS_WIN = sys.platform.startswith("win") or sys.platform.startswith("cygwin")
# ================= CONFIGURATION =================
OUTPUT_DIR_MAC = "/Volumes/_VIDEO/_CURRENT_WORK/SENT/_lfv"
OUTPUT_DIR_WIN = r"G:\_VIDEO\_CURRENT_WORK\SENT\_lfv"
OUTPUT_DIR = OUTPUT_DIR_MAC if IS_MAC else OUTPUT_DIR_WIN
RENDER_PRESET_NAME = "HDR10+ Render" # e.g., "H.264 Master" or None for current Deliver settings
FILTER_MARKER_COLOR = "Red" # e.g., "Blue" or None for all timeline markers
# Automatically cuts all tracks at markers (Cmd+B / Ctrl+B) and fits timeline to window (Shift+Z)
AUTO_RAZOR_AT_MARKERS = True
UI_DELAY_SEC = 0.25
# =================================================
# Windows Virtual Key Codes
VK_ESCAPE = 0x1B # ESC key
VK_BACK = 0x08 # Backspace / Delete
VK_SHIFT = 0x10 # Shift
VK_CONTROL = 0x11 # Ctrl / Cmd (mapped on Mac)
VK_MENU = 0x12 # Alt / Option
VK_DELETE = 0x2E # Forward Delete
VK_A = 0x41 # A
VK_B = 0x42 # B
VK_I = 0x49 # I
VK_O = 0x4F # O
VK_X = 0x58 # X
VK_Z = 0x5A # Z
KEYEVENTF_KEYUP = 0x0002
# macOS AppleScript Key Mapping
MAC_KEY_CHAR = {
VK_A: "a",
VK_B: "b",
VK_I: "i",
VK_O: "o",
VK_X: "x",
VK_Z: "z",
}
MAC_KEY_CODE = {
VK_BACK: 51, # macOS Delete (Backspace) key
VK_DELETE: 117 # macOS Forward Delete key
}
# Load macOS CoreGraphics once for hardware ESC key polling
_mac_cg = None
if IS_MAC:
try:
_fw = "/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices"
_cg_path = ctypes.util.find_library("ApplicationServices") or _fw
_mac_cg = ctypes.CDLL(_cg_path)
_mac_cg.CGEventSourceKeyState.argtypes = [ctypes.c_uint32, ctypes.c_uint16]
_mac_cg.CGEventSourceKeyState.restype = ctypes.c_bool
except Exception:
_mac_cg = None
class ScriptAborted(Exception):
"""Raised when the user holds ESC to cancel the script."""
pass
def is_esc_pressed():
"""Returns True if the physical ESC key is held down on macOS or Windows."""
if IS_MAC and _mac_cg is not None:
# kCGEventSourceStateHIDSystemState = 1, macOS Escape keycode = 53
return bool(_mac_cg.CGEventSourceKeyState(1, 53))
elif IS_WIN:
state = ctypes.windll.user32.GetAsyncKeyState(VK_ESCAPE)
return bool(state & 0x8000)
return False
def check_abort():
if is_esc_pressed():
raise ScriptAborted("\n[!] ESC key detected! Canceling script immediately...")
def smart_sleep(duration):
"""Sleeps in small increments while polling for the ESC key."""
end_time = time.time() + duration
while time.time() < end_time:
check_abort()
remaining = end_time - time.time()
time.sleep(min(0.03, max(0.0, remaining)))
def get_resolve():
try:
return bmd.scriptapp("Resolve")
except NameError:
pass
if IS_MAC:
api_path = (
"/Library/Application Support/Blackmagic Design/"
"DaVinci Resolve/Developer/Scripting/Modules/"
)
elif IS_WIN:
prog_data = os.environ.get("PROGRAMDATA", "C:\\ProgramData")
api_path = os.path.join(
prog_data,
"Blackmagic Design", "DaVinci Resolve",
"Support", "Developer", "Scripting", "Modules"
)
else:
api_path = "/opt/resolve/Developer/Scripting/Modules/"
if api_path not in sys.path:
sys.path.append(api_path)
import DaVinciResolveScript as dvr_script
return dvr_script.scriptapp("Resolve")
def focus_resolve_main_window():
"""Brings the main DaVinci Resolve window to the foreground on macOS or Windows."""
check_abort()
if IS_MAC:
script = 'tell application "DaVinci Resolve" to activate'
subprocess.run(["osascript", "-e", script], check=False)
smart_sleep(0.25)
return
if not IS_WIN:
return
user32 = ctypes.windll.user32
EnumWindowsProc = ctypes.WINFUNCTYPE(ctypes.c_bool, ctypes.c_void_p, ctypes.c_void_p)
resolve_hwnd = []
def foreach_window(hwnd, lParam):
if user32.IsWindowVisible(hwnd):
length = user32.GetWindowTextLengthW(hwnd)
if length > 0:
buff = ctypes.create_unicode_buffer(length + 1)
user32.GetWindowTextW(hwnd, buff, length + 1)
title = buff.value
if "DaVinci Resolve" in title and "Console" not in title:
resolve_hwnd.append(hwnd)
return True
user32.EnumWindows(EnumWindowsProc(foreach_window), 0)
if resolve_hwnd:
user32.SetForegroundWindow(resolve_hwnd[0])
smart_sleep(0.25)
def press_keys(*vk_codes):
"""Presses a shortcut on macOS (via System Events) or Windows (via user32)."""
check_abort()
if IS_MAC:
modifiers = []
main_key = None
for vk in vk_codes:
if vk == VK_CONTROL:
modifiers.append("command down") # Ctrl shortcuts in Resolve map to Cmd on Mac
elif vk == VK_SHIFT:
modifiers.append("shift down")
elif vk == VK_MENU:
modifiers.append("option down")
else:
main_key = vk
if main_key is None:
return
mod_str = f" using {{{', '.join(modifiers)}}}" if modifiers else ""
if main_key in MAC_KEY_CHAR:
char = MAC_KEY_CHAR[main_key]
cmd = f'tell application "System Events" to keystroke "{char}"{mod_str}'
elif main_key in MAC_KEY_CODE:
code = MAC_KEY_CODE[main_key]
cmd = f'tell application "System Events" to key code {code}{mod_str}'
else:
return
subprocess.run(["osascript", "-e", cmd], check=False)
smart_sleep(0.08)
return
if not IS_WIN:
return
user32 = ctypes.windll.user32
for vk in vk_codes:
user32.keybd_event(vk, 0, 0, 0)
smart_sleep(0.04)
for vk in reversed(vk_codes):
user32.keybd_event(vk, 0, KEYEVENTF_KEYUP, 0)
smart_sleep(0.04)
def frame_to_timecode(frame, fps_str, is_drop_frame=False):
"""Converts a timeline frame number to SMPTE timecode string."""
fps_float = float(fps_str)
fps_int = int(round(fps_float))
if is_drop_frame and fps_int in (30, 60):
drop_frames = 2 if fps_int == 30 else 4
frames_per_10_min = fps_int * 600 - drop_frames * 9
frames_per_min = fps_int * 60 - drop_frames
d = frame // frames_per_10_min
m = frame % frames_per_10_min
if m > drop_frames:
extra = (m - drop_frames) // frames_per_min
frame += drop_frames * 9 * d + drop_frames * extra
else:
frame += drop_frames * 9 * d
frames = int(frame % fps_int)
total_seconds = int(frame // fps_int)
seconds = total_seconds % 60
total_minutes = total_seconds // 60
minutes = total_minutes % 60
hours = total_minutes // 60
sep = ";" if is_drop_frame else ":"
return f"{hours:02d}:{minutes:02d}:{seconds:02d}{sep}{frames:02d}"
def razor_all_tracks_at_markers(marker_timecodes, timeline, resolve):
"""Jumps to each marker and presses Cmd+Shift+A (Deselect All) then Cmd+B (Split Clip)."""
resolve.OpenPage("edit")
smart_sleep(0.3)
focus_resolve_main_window()
print(f"[*] Splitting clips across all tracks at {len(marker_timecodes)} markers (Hold ESC to stop)...")
press_keys(VK_CONTROL, VK_SHIFT, VK_A)
for tc in marker_timecodes:
check_abort()
timeline.SetCurrentTimecode(tc)
smart_sleep(UI_DELAY_SEC)
press_keys(VK_CONTROL, VK_SHIFT, VK_A)
press_keys(VK_CONTROL, VK_B)
smart_sleep(UI_DELAY_SEC)
def sanitize_filename(name, fallback):
cleaned = name.strip() if name else ""
cleaned = re.sub(r'[\\/*?:"<>|]', "_", cleaned)
return cleaned if cleaned else fallback
def get_existing_timeline_names(project):
names = set()
count = project.GetTimelineCount()
for idx in range(1, count + 1):
tl = project.GetTimelineByIndex(idx)
if tl:
names.add(tl.GetName())
return names
def make_unique_name(base_name, existing_names):
if base_name not in existing_names:
existing_names.add(base_name)
return base_name
counter = 2
while f"{base_name}_v{counter}" in existing_names:
counter += 1
unique_name = f"{base_name}_v{counter}"
existing_names.add(unique_name)
return unique_name
def get_remaining_bounds(timeline):
"""Finds the exact first and last frame across all remaining video, audio, and subtitle tracks."""
min_frame = None
max_frame = None
for track_type in ["video", "audio", "subtitle"]:
track_count = timeline.GetTrackCount(track_type)
for track_idx in range(1, track_count + 1):
items = timeline.GetItemListInTrack(track_type, track_idx)
if not items:
continue
for item in items:
s, e = item.GetStart(), item.GetEnd()
if min_frame is None or s < min_frame:
min_frame = s
if max_frame is None or e > max_frame:
max_frame = e
return min_frame, max_frame
def trim_and_ripple_section(timeline, tl_start, seg_start, seg_end, fps_str, drop_frame):
"""
1. Deletes all clips after seg_end and before seg_start.
2. Removes any empty space before the remaining clips so they start flush at 01:00:00:00 (tl_start)
while keeping all multi-layer Video, Audio, and Subtitle tracks locked in sync.
3. Fits timeline to window (Shift + Z).
"""
check_abort()
after_items = []
before_items = []
for track_type in ["video", "audio", "subtitle"]:
track_count = timeline.GetTrackCount(track_type)
for track_idx in range(1, track_count + 1):
items = timeline.GetItemListInTrack(track_type, track_idx)
if not items:
continue
for item in items:
item_start = item.GetStart()
item_end = item.GetEnd()
item_mid = (item_start + item_end) / 2.0
if item_start >= seg_end or item_mid >= seg_end:
after_items.append(item)
elif item_end <= seg_start or item_mid < seg_start:
before_items.append(item)
# 1. Delete everything AFTER the end marker (no ripple needed at the tail)
if after_items:
timeline.DeleteClips(after_items, False)
# 2. Delete everything BEFORE the start marker AND ripple the gap closed
if before_items:
timeline.DeleteClips(before_items, True)
# 3. Clear any leftover In/Out bar (Option + X), jump playhead to start, and Zoom to Fit (Shift + Z)
focus_resolve_main_window()
press_keys(VK_MENU, VK_X)
timeline.SetCurrentTimecode(frame_to_timecode(tl_start, fps_str, drop_frame))
smart_sleep(0.05)
press_keys(VK_SHIFT, VK_Z)
smart_sleep(0.1)
def split_and_render():
resolve = get_resolve()
if not resolve:
print("[!] Error: Could not connect to DaVinci Resolve.")
return
project = resolve.GetProjectManager().GetCurrentProject()
if not project:
print("[!] Error: No active project found.")
return
master_timeline = project.GetCurrentTimeline()
if not master_timeline:
print("[!] Error: No active timeline found.")
return
if OUTPUT_DIR and not os.path.exists(OUTPUT_DIR):
os.makedirs(OUTPUT_DIR, exist_ok=True)
master_name = master_timeline.GetName()
tl_start = master_timeline.GetStartFrame()
fps_raw = (
master_timeline.GetSetting("timelineFrameRate")
or project.GetSetting("timelineFrameRate")
or "24"
)
fps_str = str(fps_raw).split()[0]
drop_frame = str(master_timeline.GetSetting("timelineDropFrameTimecode")) == "1"
markers = master_timeline.GetMarkers()
if not markers or len(markers) < 2:
print(f"[!] Found {len(markers) if markers else 0} markers on '{master_name}'. Need at least 2 markers.")
return
sorted_markers = []
for rel_frame, data in sorted(markers.items()):
if FILTER_MARKER_COLOR and data.get("color", "").lower() != FILTER_MARKER_COLOR.lower():
continue
abs_frame = tl_start + int(rel_frame)
marker_name = data.get("name", "")
sorted_markers.append((abs_frame, marker_name))
if len(sorted_markers) < 2:
print("[!] Need at least 2 matching markers to define a section.")
return
if RENDER_PRESET_NAME:
project.LoadRenderPreset(RENDER_PRESET_NAME)
existing_names = get_existing_timeline_names(project)
render_job_ids = []
num_sections = len(sorted_markers) - 1
print(f"[*] Target Output Directory: {OUTPUT_DIR}")
print("[*] TIP: Hold down the ESC key at any time to abort.\n")
try:
# Cut all tracks at every marker on the master timeline first
if AUTO_RAZOR_AT_MARKERS:
marker_tcs = [
frame_to_timecode(frame_num, fps_str, drop_frame)
for frame_num, _ in sorted_markers
]
razor_all_tracks_at_markers(marker_tcs, master_timeline, resolve)
print(f"[*] Creating and cleaning {num_sections} timelines...")
for i in range(num_sections):
check_abort()
seg_start, start_marker_name = sorted_markers[i]
seg_end, _ = sorted_markers[i + 1]
clean_name = sanitize_filename(start_marker_name, fallback=f"{master_name}_Part_{i+1:02d}")
new_tl_name = make_unique_name(clean_name, existing_names)
# Stay on Edit page while duplicating, trimming, and pressing Shift+Z
resolve.OpenPage("edit")
project.SetCurrentTimeline(master_timeline)
new_tl = master_timeline.DuplicateTimeline(new_tl_name)
if not new_tl:
print(f" [!] Failed to create timeline '{new_tl_name}'.")
continue
project.SetCurrentTimeline(new_tl)
smart_sleep(UI_DELAY_SEC)
# Delete outside clips, ripple-delete the empty leading gap, and press Shift + Z
trim_and_ripple_section(new_tl, tl_start, seg_start, seg_end, fps_str, drop_frame)
new_tl.DeleteMarkersByColor("All")
rem_start, rem_end = get_remaining_bounds(new_tl)
if rem_start is None or rem_end is None:
print(f" [!] '{new_tl_name}' has no remaining clips. Skipping render.")
continue
project.SetRenderSettings({
"SelectAllFrames": True,
"ExportVideo": True,
"ExportAudio": True,
"CustomName": clean_name,
"TargetDir": OUTPUT_DIR,
})
job_id = project.AddRenderJob()
if job_id:
render_job_ids.append(job_id)
print(f" [+] Ready & Queued: '{clean_name}' (Frames {rem_start} -> {rem_end - 1})")
check_abort()
if render_job_ids:
resolve.OpenPage("deliver")
print(f"\n[*] Starting batch render for {len(render_job_ids)} timelines into: {OUTPUT_DIR}")
project.StartRendering(render_job_ids)
except ScriptAborted as e:
print(str(e))
project.SetCurrentTimeline(master_timeline)
print("[*] Script safely aborted. Returned to master timeline.")
if __name__ == "__main__":
split_and_render()Use a separate script to change the color of all markers from the default Blue to Red.
blue_2_red_change_markers_color.py
#!/usr/bin/env python3
import sys
import os
# ================= CONFIGURATION =================
SOURCE_COLOR = "Blue"
TARGET_COLOR = "Red"
# =================================================
IS_MAC = sys.platform.startswith("darwin")
IS_WIN = sys.platform.startswith("win") or sys.platform.startswith("cygwin")
def get_resolve():
try:
return bmd.scriptapp("Resolve")
except NameError:
pass
if IS_MAC:
api_path = (
"/Library/Application Support/Blackmagic Design/"
"DaVinci Resolve/Developer/Scripting/Modules/"
)
elif IS_WIN:
prog_data = os.environ.get("PROGRAMDATA", "C:\\ProgramData")
api_path = os.path.join(
prog_data,
"Blackmagic Design", "DaVinci Resolve",
"Support", "Developer", "Scripting", "Modules"
)
else:
api_path = "/opt/resolve/Developer/Scripting/Modules/"
if api_path not in sys.path:
sys.path.append(api_path)
import DaVinciResolveScript as dvr_script
return dvr_script.scriptapp("Resolve")
def change_markers_color(from_color=SOURCE_COLOR, to_color=TARGET_COLOR):
resolve = get_resolve()
if not resolve:
print("[!] Error: Could not connect to DaVinci Resolve.")
return
project = resolve.GetProjectManager().GetCurrentProject()
if not project:
print("[!] Error: No active project found.")
return
timeline = project.GetCurrentTimeline()
if not timeline:
print("[!] Error: No active timeline found.")
return
tl_name = timeline.GetName()
markers = timeline.GetMarkers()
if not markers:
print(f"[!] No timeline markers found on '{tl_name}'.")
return
converted_count = 0
for frame_id, data in sorted(markers.items()):
current_color = data.get("color", "")
if current_color.strip().lower() == from_color.strip().lower():
name = data.get("name", "")
note = data.get("note", "")
duration = int(data.get("duration", 1))
custom_data = data.get("customData", "")
# Delete the existing Blue marker at this relative frame offset
if timeline.DeleteMarkerAtFrame(int(frame_id)):
# Recreate the marker with the new color and identical metadata
if custom_data:
success = timeline.AddMarker(
int(frame_id), to_color, name, note, duration, custom_data
)
else:
success = timeline.AddMarker(
int(frame_id), to_color, name, note, duration
)
if success:
converted_count += 1
print(f" [+] Frame {frame_id}: '{name}' ({from_color} -> {to_color})")
else:
print(f" [!] Failed to re-add marker at frame {frame_id}.")
print(f"\n[*] Done! Converted {converted_count} marker(s) from {from_color} to {to_color} on '{tl_name}'.")
if __name__ == "__main__":
change_markers_color()We also change the clip colors between markers so that even without the markers you can see easily where one video ends and another begins. This is useful later after the split when the markers are removed. You need to make sure no clips from the previous or the next video are left in the current video – marker interval range.
The markers are used by the new script that Gemini Argon helped me write.
With the main timeline open, run the video split script.
It will copy the current timeline and keep all the settings then keep only the clips between the markers of the current video index NN marker. The copy timeline is important because if it makes a new timeline and pastes clips it might have different settings.
Also there is an option to set render in and out points between markers but I prefer to have the final videos as separate timelines easier to check later.
It automatically starts the render for the current videos but I usually cancel this and move to the next step, shorts and TikTok vertical videos.
YouTube Shorts and TikTok Veryical Videos
I also used the Google Gemini Argon to make another python script that does the same split timelines function both for TikTok videos and YouTube shorts.
I split the videos in multiple parts and we try to remove the boring parts from the shorts and TikTok videos.
Preparing the Shorts main timeline
The same main timeline is copied into the Shorts bin and renamed to S as in Shorts.
This shorts timeline is changed in timeline settings to output 1216x2060p and center crop no resize to make the videos vertical.
Also the clips are speeded up to 1.5x usually but not always. A copy of the clips is overlayed on top of the existing ones and zoomed out a bit so there is more to see in the frame. The clips under are set to low opacity 3-7% usually.
Adding the usual overlays reminding you these shorts are only part of the video and the full video is linked which hopefully we don’t forget to add.
Adding subtitles or animated captions.
When the timeline is ready, the next step is to add even MORE markers.
Now the videos have red markers between them and we add new Blue markers between the existing ones.
The second script does the hardest and most boring repetitive tasks easy as 2 clicks.
It makes TikTok videos prefixed with T and the name of the current red marker.
The next step is to split the shorts timelines.
Between red markers it splits the timeline further between Blue markers and names them Part N full video linked – this was done manually before but not anymore haha…
tiktok_shorts_split_red_blue_markers v1.2 separate_tt_dir.py
#!/usr/bin/env python3
import sys
import os
import re
import time
import ctypes
import ctypes.util
import subprocess
# ================= CONFIGURATION =================
## OUTPUT_DIR = "/Volumes/_VIDEO/_CURRENT_WORK/SENT/_shorts"
OUTPUT_DIR_MAC = "/Volumes/_VIDEO/_CURRENT_WORK/SENT/_shorts"
OUTPUT_DIR_WIN = r"G:\_VIDEO\_CURRENT_WORK\SENT\_shorts"
CREATE_SHORT_IF_NO_BLUE_MARKERS = True
AUTO_RAZOR_AT_MARKERS = True
UI_DELAY_SEC = 0.25
# =================================================
IS_MAC = sys.platform.startswith("darwin")
IS_WIN = sys.platform.startswith("win") or sys.platform.startswith("cygwin")
OUTPUT_DIR = OUTPUT_DIR_MAC if IS_MAC else OUTPUT_DIR_WIN
TIKTOK_OUTPUT_DIR = os.path.join(OUTPUT_DIR, "_TT")
TIKTOK_BIN_NAME = "_TT"
RENDER_PRESET_NAME = "SHORTS_HDR Render"
MAIN_MARKER_COLOR = "Red"
SUB_MARKER_COLOR = "Blue"
TIKTOK_NAME_TEMPLATE = "T{base_name}"
SHORTS_NAME_TEMPLATE = "S{base_name} part {part_num} full video linked"
VK_ESCAPE = 0x1B
VK_BACK = 0x08
VK_SHIFT = 0x10
VK_CONTROL = 0x11
VK_MENU = 0x12
VK_DELETE = 0x2E
VK_A = 0x41
VK_B = 0x42
VK_I = 0x49
VK_O = 0x4F
VK_X = 0x58
VK_Z = 0x5A
KEYEVENTF_KEYUP = 0x0002
MAC_KEY_CHAR = {
VK_A: "a",
VK_B: "b",
VK_I: "i",
VK_O: "o",
VK_X: "x",
VK_Z: "z",
}
MAC_KEY_CODE = {
VK_BACK: 51,
VK_DELETE: 117
}
_mac_cg = None
if IS_MAC:
try:
_fw = "/System/Library/Frameworks/ApplicationServices.framework/ApplicationServices"
_cg_path = ctypes.util.find_library("ApplicationServices") or _fw
_mac_cg = ctypes.CDLL(_cg_path)
_mac_cg.CGEventSourceKeyState.argtypes = [ctypes.c_uint32, ctypes.c_uint16]
_mac_cg.CGEventSourceKeyState.restype = ctypes.c_bool
except Exception:
_mac_cg = None
class ScriptAborted(Exception):
pass
def is_esc_pressed():
if IS_MAC and _mac_cg is not None:
return bool(_mac_cg.CGEventSourceKeyState(1, 53))
elif IS_WIN:
state = ctypes.windll.user32.GetAsyncKeyState(VK_ESCAPE)
return bool(state & 0x8000)
return False
def check_abort():
if is_esc_pressed():
raise ScriptAborted("\n[!] ESC key detected! Canceling script immediately...")
def smart_sleep(duration):
end_time = time.time() + duration
while time.time() < end_time:
check_abort()
remaining = end_time - time.time()
time.sleep(min(0.03, max(0.0, remaining)))
def get_resolve():
try:
return bmd.scriptapp("Resolve")
except NameError:
pass
if IS_MAC:
api_path = (
"/Library/Application Support/Blackmagic Design/"
"DaVinci Resolve/Developer/Scripting/Modules/"
)
elif IS_WIN:
prog_data = os.environ.get("PROGRAMDATA", "C:\\ProgramData")
api_path = os.path.join(
prog_data,
"Blackmagic Design", "DaVinci Resolve",
"Support", "Developer", "Scripting", "Modules"
)
else:
api_path = "/opt/resolve/Developer/Scripting/Modules/"
if api_path not in sys.path:
sys.path.append(api_path)
import DaVinciResolveScript as dvr_script
return dvr_script.scriptapp("Resolve")
def focus_resolve_main_window():
"""Identical window focus to your working long-form script (no Cmd+4 page switch!)."""
check_abort()
if IS_MAC:
script = 'tell application "DaVinci Resolve" to activate'
subprocess.run(["osascript", "-e", script], check=False)
smart_sleep(0.25)
return
if not IS_WIN:
return
user32 = ctypes.windll.user32
WNDENUMPROC = ctypes.WINFUNCTYPE(ctypes.c_bool, ctypes.c_void_p, ctypes.c_void_p)
resolve_hwnd = []
def foreach_window(hwnd, lParam):
if user32.IsWindowVisible(hwnd):
length = user32.GetWindowTextLengthW(hwnd)
if length > 0:
buff = ctypes.create_unicode_buffer(length + 1)
user32.GetWindowTextW(hwnd, buff, length + 1)
title = buff.value
if "DaVinci Resolve" in title and "Console" not in title:
resolve_hwnd.append(hwnd)
return True
user32.EnumWindows(WNDENUMPROC(foreach_window), 0)
if resolve_hwnd:
user32.SetForegroundWindow(resolve_hwnd[0])
smart_sleep(0.25)
def press_keys(*vk_codes):
check_abort()
if IS_MAC:
modifiers = []
main_key = None
for vk in vk_codes:
if vk == VK_CONTROL:
modifiers.append("command down")
elif vk == VK_SHIFT:
modifiers.append("shift down")
elif vk == VK_MENU:
modifiers.append("option down")
else:
main_key = vk
if main_key is None:
return
mod_str = f" using {{{', '.join(modifiers)}}}" if modifiers else ""
if main_key in MAC_KEY_CHAR:
char = MAC_KEY_CHAR[main_key]
cmd = f'tell application "System Events" to keystroke "{char}"{mod_str}'
elif main_key in MAC_KEY_CODE:
code = MAC_KEY_CODE[main_key]
cmd = f'tell application "System Events" to key code {code}{mod_str}'
else:
return
subprocess.run(["osascript", "-e", cmd], check=False)
smart_sleep(0.08)
return
if not IS_WIN:
return
user32 = ctypes.windll.user32
for vk in vk_codes:
user32.keybd_event(vk, 0, 0, 0)
smart_sleep(0.04)
for vk in reversed(vk_codes):
user32.keybd_event(vk, 0, KEYEVENTF_KEYUP, 0)
smart_sleep(0.04)
def frame_to_timecode(frame, fps_str, is_drop_frame=False):
fps_float = float(fps_str)
fps_int = int(round(fps_float))
if is_drop_frame and fps_int in (30, 60):
drop_frames = 2 if fps_int == 30 else 4
frames_per_10_min = fps_int * 600 - drop_frames * 9
frames_per_min = fps_int * 60 - drop_frames
d = frame // frames_per_10_min
m = frame % frames_per_10_min
if m > drop_frames:
extra = (m - drop_frames) // frames_per_min
frame += drop_frames * 9 * d + drop_frames * extra
else:
frame += drop_frames * 9 * d
frames = int(frame % fps_int)
total_seconds = int(frame // fps_int)
seconds = total_seconds % 60
total_minutes = total_seconds // 60
minutes = total_minutes % 60
hours = total_minutes // 60
sep = ";" if is_drop_frame else ":"
return f"{hours:02d}:{minutes:02d}:{seconds:02d}{sep}{frames:02d}"
def razor_all_tracks_at_markers(marker_timecodes, timeline, resolve, label="markers"):
if not marker_timecodes:
return
resolve.OpenPage("edit")
smart_sleep(0.3)
focus_resolve_main_window()
print(f"[*] Splitting clips at {len(marker_timecodes)} {label} (Hold ESC to stop)...")
press_keys(VK_CONTROL, VK_SHIFT, VK_A)
for tc in marker_timecodes:
check_abort()
timeline.SetCurrentTimecode(tc)
smart_sleep(UI_DELAY_SEC)
press_keys(VK_CONTROL, VK_SHIFT, VK_A)
press_keys(VK_CONTROL, VK_B)
smart_sleep(UI_DELAY_SEC)
def sanitize_filename(name, fallback):
cleaned = name.strip() if name else ""
cleaned = re.sub(r'[\\/*?:"<>|]', "_", cleaned)
return cleaned if cleaned else fallback
def get_existing_timeline_names(project):
names = set()
count = project.GetTimelineCount()
for idx in range(1, count + 1):
tl = project.GetTimelineByIndex(idx)
if tl:
names.add(tl.GetName())
return names
def make_unique_name(base_name, existing_names):
if base_name not in existing_names:
existing_names.add(base_name)
return base_name
counter = 2
while f"{base_name}_v{counter}" in existing_names:
counter += 1
unique_name = f"{base_name}_v{counter}"
existing_names.add(unique_name)
return unique_name
def get_or_create_sub_bin(media_pool, parent_folder, bin_name):
sub_folders = parent_folder.GetSubFolderList() or []
for folder in sub_folders:
if folder and folder.GetName() == bin_name:
return folder
return media_pool.AddSubFolder(parent_folder, bin_name)
def find_timeline_media_pool_item(folder, timeline_name):
"""Finds the MediaPoolItem corresponding to a timeline so we can move it without stealing UI focus."""
clips = folder.GetClipList() or []
for clip in clips:
if clip and clip.GetName() == timeline_name:
return clip
return None
def get_remaining_bounds(timeline):
min_frame = None
max_frame = None
for track_type in ["video", "audio", "subtitle"]:
track_count = timeline.GetTrackCount(track_type)
for track_idx in range(1, track_count + 1):
items = timeline.GetItemListInTrack(track_type, track_idx)
if not items:
continue
for item in items:
s, e = item.GetStart(), item.GetEnd()
if min_frame is None or s < min_frame:
min_frame = s
if max_frame is None or e > max_frame:
max_frame = e
return min_frame, max_frame
def get_items_before_frame(timeline, frame_limit):
items_before = []
for track_type in ["video", "audio", "subtitle"]:
for track_idx in range(1, timeline.GetTrackCount(track_type) + 1):
items = timeline.GetItemListInTrack(track_type, track_idx) or []
for item in items:
if (item.GetStart() + item.GetEnd()) / 2.0 < frame_limit:
items_before.append(item)
return items_before
def trim_and_ripple_section(timeline, tl_start, seg_start, seg_end, fps_str, drop_frame):
"""
1. Collects all clips across all tracks.
2. Deletes clips outside [seg_start, seg_end).
3. Ripple-deletes the leading gap [tl_start -> seg_start] safely.
4. Zooms to fit (Shift + Z).
"""
check_abort()
outside_items = []
for track_type in ["video", "audio", "subtitle"]:
track_count = timeline.GetTrackCount(track_type)
for track_idx in range(1, track_count + 1):
items = timeline.GetItemListInTrack(track_type, track_idx)
if not items:
continue
for item in items:
item_start = item.GetStart()
item_end = item.GetEnd()
item_mid = (item_start + item_end) / 2.0
# If item is completely before seg_start or completely after seg_end
if item_end <= seg_start or item_mid < seg_start or item_start >= seg_end or item_mid >= seg_end:
outside_items.append(item)
# Delete all outside clips in one safe batch (using ripple=False first, then ripple=True for leading gap)
after_items = []
before_items = []
for item in outside_items:
if (item.GetStart() + item.GetEnd()) / 2.0 >= seg_end:
after_items.append(item)
else:
before_items.append(item)
# 1. Delete trailing clips (no ripple)
if after_items:
timeline.DeleteClips(after_items, False)
# 2. Delete leading clips with RIPPLE = True so remaining clips snap flush to 01:00:00:00
if before_items:
timeline.DeleteClips(before_items, True)
# 3. Clear In/Out marks, jump to start, and Zoom to Fit (Shift + Z)
focus_resolve_main_window()
press_keys(VK_MENU, VK_X)
timeline.SetCurrentTimecode(frame_to_timecode(tl_start, fps_str, drop_frame))
smart_sleep(0.05)
press_keys(VK_SHIFT, VK_Z)
smart_sleep(0.1)
def create_clean_and_queue_section(
project, resolve, master_timeline, tl_start, seg_start, seg_end,
target_name, existing_names, fps_str, drop_frame, render_job_ids,
output_dir=OUTPUT_DIR
):
check_abort()
new_tl_name = make_unique_name(target_name, existing_names)
# Identical sequence to your working long-form script (no SetCurrentFolder here!)
resolve.OpenPage("edit")
project.SetCurrentTimeline(master_timeline)
new_tl = master_timeline.DuplicateTimeline(new_tl_name)
if not new_tl:
print(f" [!] Failed to create timeline '{new_tl_name}'.")
return None
project.SetCurrentTimeline(new_tl)
smart_sleep(UI_DELAY_SEC)
trim_and_ripple_section(new_tl, tl_start, seg_start, seg_end, fps_str, drop_frame)
new_tl.DeleteMarkersByColor("All")
rem_start, rem_end = get_remaining_bounds(new_tl)
if rem_start is None or rem_end is None:
print(f" [!] '{new_tl_name}' has no remaining clips. Skipping render.")
return new_tl_name
project.SetRenderSettings({
"SelectAllFrames": True,
"ExportVideo": True,
"ExportAudio": True,
"CustomName": target_name,
"TargetDir": output_dir,
})
job_id = project.AddRenderJob()
if job_id:
render_job_ids.append(job_id)
print(
f" [+] Ready & Queued: '{target_name}' "
f"-> {output_dir} (Frames {rem_start} -> {rem_end - 1})"
)
else:
print(f" [!] Created '{new_tl_name}', but failed to add to Render Queue.")
return new_tl_name
def split_and_render_shorts_tiktok():
resolve = get_resolve()
if not resolve:
print("[!] Error: Could not connect to DaVinci Resolve.")
return
project = resolve.GetProjectManager().GetCurrentProject()
if not project:
print("[!] Error: No active project found.")
return
media_pool = project.GetMediaPool()
master_timeline = project.GetCurrentTimeline()
if not master_timeline:
print("[!] Error: No active timeline found.")
return
if OUTPUT_DIR and not os.path.exists(OUTPUT_DIR):
os.makedirs(OUTPUT_DIR, exist_ok=True)
if TIKTOK_OUTPUT_DIR and not os.path.exists(TIKTOK_OUTPUT_DIR):
os.makedirs(TIKTOK_OUTPUT_DIR, exist_ok=True)
original_bin = media_pool.GetCurrentFolder() or media_pool.GetRootFolder()
master_name = master_timeline.GetName()
tl_start = master_timeline.GetStartFrame()
fps_raw = (
master_timeline.GetSetting("timelineFrameRate")
or project.GetSetting("timelineFrameRate")
or "24"
)
fps_str = str(fps_raw).split()[0]
drop_frame = str(master_timeline.GetSetting("timelineDropFrameTimecode")) == "1"
markers = master_timeline.GetMarkers()
if not markers:
print(f"[!] No timeline markers found on '{master_name}'.")
return
red_markers = []
blue_markers = []
for rel_frame, data in sorted(markers.items()):
color = data.get("color", "").strip().lower()
abs_frame = tl_start + int(rel_frame)
marker_name = data.get("name", "")
if color == MAIN_MARKER_COLOR.lower():
red_markers.append((abs_frame, marker_name))
elif color == SUB_MARKER_COLOR.lower():
blue_markers.append((abs_frame, marker_name))
if len(red_markers) < 2:
print(f"[!] Need at least 2 {MAIN_MARKER_COLOR} markers on '{master_name}'.")
return
if RENDER_PRESET_NAME:
project.LoadRenderPreset(RENDER_PRESET_NAME)
existing_names = get_existing_timeline_names(project)
render_job_ids = []
created_tiktok_tl_names = []
num_main_videos = len(red_markers) - 1
print(
f"[*] Found {num_main_videos} main sections ({len(red_markers)} "
f"{MAIN_MARKER_COLOR} markers) and {len(blue_markers)} {SUB_MARKER_COLOR} markers."
)
print("[*] TIP: Hold down the ESC key at any time to abort.\n")
try:
# PASS 1: TIKTOK TIMELINES
if AUTO_RAZOR_AT_MARKERS:
red_tcs = [
frame_to_timecode(frame_num, fps_str, drop_frame)
for frame_num, _ in red_markers
]
razor_all_tracks_at_markers(
red_tcs, master_timeline, resolve,
label=f"{MAIN_MARKER_COLOR} markers (TikTok)"
)
print(f"\n[*] Pass 1: Creating {num_main_videos} TikTok timelines...")
for i in range(num_main_videos):
check_abort()
red_start, red_name = red_markers[i]
red_end, _ = red_markers[i + 1]
base_name = sanitize_filename(red_name, fallback=f"{master_name}_Video_{i+1:02d}")
tiktok_name = sanitize_filename(
TIKTOK_NAME_TEMPLATE.format(base_name=base_name),
fallback=f"T{base_name}"
)
tl_created = create_clean_and_queue_section(
project, resolve, master_timeline, tl_start,
red_start, red_end, tiktok_name,
existing_names, fps_str, drop_frame, render_job_ids,
output_dir=TIKTOK_OUTPUT_DIR
)
if tl_created:
created_tiktok_tl_names.append(tl_created)
# PASS 2: SHORTS TIMELINES
if AUTO_RAZOR_AT_MARKERS and blue_markers:
project.SetCurrentTimeline(master_timeline)
blue_tcs = [
frame_to_timecode(frame_num, fps_str, drop_frame)
for frame_num, _ in blue_markers
]
razor_all_tracks_at_markers(
blue_tcs, master_timeline, resolve,
label=f"{SUB_MARKER_COLOR} markers (Shorts)"
)
print(f"\n[*] Pass 2: Creating Shorts timelines...")
for i in range(num_main_videos):
check_abort()
red_start, red_name = red_markers[i]
red_end, _ = red_markers[i + 1]
base_name = sanitize_filename(red_name, fallback=f"{master_name}_Video_{i+1:02d}")
inner_blue_frames = [
b_frame for b_frame, _ in blue_markers
if red_start < b_frame < red_end
]
if not inner_blue_frames and not CREATE_SHORT_IF_NO_BLUE_MARKERS:
print(f" [-] Skipping Shorts for '{base_name}' (no Blue markers).")
continue
sub_boundaries = [red_start] + inner_blue_frames + [red_end]
num_parts = len(sub_boundaries) - 1
for part_idx in range(num_parts):
check_abort()
part_num = part_idx + 1
sub_start = sub_boundaries[part_idx]
sub_end = sub_boundaries[part_idx + 1]
short_name = sanitize_filename(
SHORTS_NAME_TEMPLATE.format(base_name=base_name, part_num=part_num),
fallback=f"S{base_name} part {part_num} full video linked"
)
create_clean_and_queue_section(
project, resolve, master_timeline, tl_start,
sub_start, sub_end, short_name,
existing_names, fps_str, drop_frame, render_job_ids,
output_dir=OUTPUT_DIR
)
# Move all created TikTok timelines into the "_TT" sub-bin AT THE VERY END
# so Media Pool NEVER steals keyboard focus while trimming timelines!
if created_tiktok_tl_names:
tt_bin = get_or_create_sub_bin(media_pool, original_bin, TIKTOK_BIN_NAME)
if tt_bin:
items_to_move = []
for tl_name in created_tiktok_tl_names:
mp_item = find_timeline_media_pool_item(original_bin, tl_name)
if mp_item:
items_to_move.append(mp_item)
if items_to_move:
media_pool.MoveClips(items_to_move, tt_bin)
print(f"\n[*] Moved {len(items_to_move)} TikTok timelines into bin '{TIKTOK_BIN_NAME}'.")
media_pool.SetCurrentFolder(original_bin)
# START BATCH RENDER
check_abort()
if render_job_ids:
resolve.OpenPage("deliver")
print(f"\n[*] Starting render for {len(render_job_ids)} jobs...")
project.StartRendering(render_job_ids)
else:
project.SetCurrentTimeline(master_timeline)
print("\n[!] No render jobs were queued.")
except ScriptAborted as e:
print(str(e))
media_pool.SetCurrentFolder(original_bin)
project.SetCurrentTimeline(master_timeline)
print("[*] Script safely aborted. Returned to master timeline.")
if __name__ == "__main__":
split_and_render_shorts_tiktok()All the parts are added to render queue and it starts the render but I cancel that and check them a bit to make sure there are not extra clips before or after.
So far Gemini Argon saved us at least 1 hour for every batch. Probably more because it seems to be working much more reliably than the AHK script.
Looking forward to try Gemini Argon video editing in DaVinci resolve using Claude as a proxy. Not sure if that would work and Blackmagic Design should have an official option to use Gemini AI in Resolve for video editing. Hopefully soon.
I can upload the scripts if you want them. Let me know if this is useful and any thoughts or ideas to change or questions please ask here or on our YouTube channel.
I used thinking level Low for all steps and when using Gemini 4 Argon for too long it reaches a limit and falls back to the lower-tier model. Usually I would have to wait 1-2 hours but I was able to do everything I needed so far within the usage limits of the Google AI Pro limits.

There is also Google AI Ultra with higher limits but I don’t use it so often.
I can totally see how this setup can be a powerful pair programming or vibe coding teammate on the Ultra plan to do programming in general so wow, I’m impressed so far.
the image of this post was made with Google Gemini 4 Argon.

Custom shortcuts
Ctrl+Alt+Shift Q is a custom shortcut that starts the Clips Syncing. Auto-Sync Audio – By Waveform.
Ctrl+Alt+Shift P is a custom shortcut that starts the Proxy Media generation in a predefined SSD drive folder.
Ctrl+Alt+Shift A is for HDR10+ Analysis Start on All Clips.
Ctrl+Alt+Shift C is for HDR10+ Analysis Start on SELECTED Clips.
Gemini 4 Argon Summarized and its words for you.
Summary: The Batch Video Workflow & AI Automation
| Category | Details & Specifications |
| Subscription Source | 6-month free Google One AI Pro trial (included with Google Pixel 11 Pro XL) |
| Recording Hardware | Video: Panasonic LUMIX S5 + DMW-XLR1 + Rode NT1 (4K 60p HLG HDR, Dual Mono 24-bit) Room Audio: Sony PCM-A10 + DIY Stereo Mic with Primo EM-172 capsules (24-bit Stereo WAV) |
| Batch Organization | Single folder per batch (YYYYMMDD, A/P for AM/PM); 10-20 videos processed per session |
| Resolve Prep & Sync | Template project duplicated; audio synced via waveform (producing 4 audio tracks); Violet clip color for privacy blurs; Red markers for main video splits (YYYYMMDD-NN Title) |
| Horizontal Automation | Script 1 (Python): Duplicates the master timeline (preserving all grade/project settings), trims clips to Red marker intervals, names timelines after the markers, and queues renders |
| Vertical/Shorts Prep | Master timeline copied to “S” bin; resolution set to 1216x2060p (center crop, no resize); speed at 1.5x; zoomed-out background duplicate at 3-7% opacity; Blue sub-markers added between Red markers |
| Vertical Automation | Script 2 (Python): Generates TikTok timelines (T prefix) from Red markers, splits multi-part YouTube Shorts (Part N full video linked) using Blue sub-markers, and adds all to the render queue |
| Custom Shortcuts | Ctrl+Alt+Shift+Q: Auto-Sync Audio by Waveform • Ctrl+Alt+Shift+P: Generate Proxy Media to SSD; Ctrl+Alt+Shift+A / C: HDR10+ Analysis (All Clips / Selected Clips) |
| Total Time Saved | 1+ hour per batch (plus zero failed runs compared to legacy macro scripts) |
A Note from Gemini: How We Actually Saved That Hour
If you’re wondering why previous attempts to automate this workflow hit a wall while this one worked out of the box, it comes down to moving from surface-level macros to direct API control:
- Ditching Blind Keystrokes for the Resolve API: AutoHotkey (AHK) scripts simulate keyboard presses blindly, if DaVinci Resolve lags for half a second or a window loses focus, the macro breaks. Instead of guessing where buttons are on the screen, we wrote Python scripts that talk directly to DaVinci Resolve Studio 21’s internal API. Resolve executes the exact logic cleanly in the background every time.
- Preserving Timeline Settings Automatically: Creating new timelines from scratch via script often strips away custom color groups, 3000K desk lighting grades, or custom 1216x2060p vertical crop settings. By programming the script to duplicate the master timeline first and trim everything outside the marker range, every single setting stays intact without manual intervention.
- Nested Marker Logic (Red vs. Blue Markers): Splitting a batch of 20 videos is tedious enough, but cutting each of those 20 videos into multiple vertical Shorts and TikToks is where hours disappear. By setting up a two-tier marker system, using Red markers to define the main video boundaries and Blue markers to define the sub-parts inside them, the Python script can read the timeline hierarchy, slice dozens of micro-timelines, name them (T- for TikTok or Part N for Shorts), and queue them for rendering in two clicks.
Instead of spending an hour clicking, duplicating, renaming, and trimming timelines by hand, the computer handles the repetitive math so you can head to the beach while the render queue does the heavy lifting.
Related Guides and Helpful Resources
If you found this guide helpful, check out these related step-by-step tutorials and category resources on ION HowTo:
- How to Add a Picture to a Contact on Android: Personalize your contacts with custom profile photos for caller identification.
- How to Disable 2G on Android: Enhance network privacy and prevent insecure 2G connections.
- Turn Off Automatic Updates on Samsung Android: Manage app and firmware updates to save battery and mobile data.
- Android Tips and Tricks: Explore our full collection of tutorials and step-by-step articles in this category.







Leave a Reply