AI-generated morph transition script between two selected clips

mamomo wrote on 10/28/2025, 2:54 PM

Hi everyone,

I’m exploring the possibility of creating a VEGAS Pro script that uses AI to automatically generate a morph-style transition between two selected clips.

Concept workflow:
1️⃣ User selects two video events in the timeline
2️⃣ Script extracts:

Last frame of Event A → A_end.png

First frame of Event B → B_start.png
3️⃣ Script opens a small form where the user writes a prompt (e.g. “liquid metallic morph from A to B”) and duration settings
4️⃣ The script sends both images + prompt to an AI image-to-video API (Runway, Pika, Stability, or a local ComfyUI pipeline)
5️⃣ When the MP4 result is ready, the script automatically imports it into VEGAS and places it between both clips

Goal:
A fast way to create creative AI transitions directly inside VEGAS, without leaving the timeline.

I’d like to ask:
✅ Has anyone here experimented with something similar?
✅ Any sample code for frame export → HTTP request → auto-insert clip?
✅ Known limitations with Vegas scripting on this kind of workflow?
✅ Advice on the best method to capture the exact ending/starting frames?

If someone has already started a project like this, I’d love to collaborate.
If not, I may try to build a prototype (I’m comfortable with C# scripting).

Thanks in advance for any hints!
— Manel

Comments

jetdv wrote on 10/28/2025, 3:52 PM

Getting the images is the easy part. On the first one, just take an image at the time of the event.End - 1 frame and then on the second one, take an image at the time of the event.Start.

The harder part will be sending all of the information and then retrieving the result.

Once you have the result, moving the second event to fit the new video is easy - but you may need to move everything after that second event as well. Then inserting the resulting video would be an easy task as well.