Help me create the script

ryan-hall34 wrote on 7/11/2025, 7:14 AM

Please help me create a script with this value:

vegasApp.Transport.CursorPosition = Timecode.FromMilliseconds( vegasApp.Transport.CursorPosition.ToMilliseconds() + 5000 );

I found this value on the creativecow website, but I do not know how to make a script out of it. This script should do a fast forward during playback.

Comments

jetdv wrote on 7/11/2025, 8:45 AM

@ryan-hall34, I have four-plus years worth of tutorials that might help you...

The shortest version would be:

using ScriptPortal.Vegas;

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
       vegas.Transport.CursorPosition = Timecode.FromMilliseconds( vegas.Transport.CursorPosition.ToMilliseconds() + 5000 );
    }
}

 

ryan-hall34 wrote on 7/11/2025, 9:16 AM

@ryan-hall34, I have four-plus years worth of tutorials that might help you...

The shortest version would be:

using ScriptPortal.Vegas;

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
       vegas.Transport.CursorPosition = Timecode.FromMilliseconds( vegas.Transport.CursorPosition.ToMilliseconds() + 5000 );
    }
}

 

THANKS A LOT, THE SCRIPT IS WORKING! I've already linked it to the hotkey. But there is one thing: when the script is activated, playback stops. Can you refine this script so that after it is activated, the Enter key is also pressed at the end?

zzzzzz9125 wrote on 7/11/2025, 9:25 AM

Can you refine this script so that after it is activated, the Enter key is also pressed at the end?

@ryan-hall34 Just add one line:

using ScriptPortal.Vegas;

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
       vegas.ResumePlaybackOnScriptExit = true;
       vegas.Transport.CursorPosition = Timecode.FromMilliseconds( vegas.Transport.CursorPosition.ToMilliseconds() + 5000 );
    }
}

Last changed by zzzzzz9125 on 7/11/2025, 9:26 AM, changed a total of 2 times.

Using VEGAS Pro 22 build 248 & VEGAS Pro 21 build 208.

Information about my PC:
Brand Name: HP VICTUS Laptop
System: Windows 11.0 (64-bit) 10.00.22631
CPU: 12th Gen Intel(R) Core(TM) i7-12700H
GPU: NVIDIA GeForce RTX 3050 Laptop GPU
GPU Driver: NVIDIA Studio Driver 560.70

jetdv wrote on 7/11/2025, 9:30 AM