Script to set Event Length (useful for stills)

bitman wrote on 1/20/2024, 5:12 AM

Here is a script to SetEventLength of stills or video in an easy way.

There are similar scripts around, such as :

  1.  still images panel from Vegasaur, however that one contains a bug when starting it up : « Oops vegasaur bug report (index out range exception) » a fix is unlike to happen, as development on Vegasaur seems halted.
  2. Then there is « SetEventLength » from Happy Otter scripts @wwaag tools4vegas.com, but that one instantly crashes vegas 21.

So I decided to write my own script which does not crash and is in a way even smarter than Vegasaur (more on that later).

It works on events on all Video tracks and prevents audio events selection.

It is very easy to use as it is not a dropdown selection, or type in, but a much faster 8 buttons choice (from 1 second to 8 seconds) for speed editing.

Version 2 : added 4 more buttons to set length in number of frames 1, 5, 10, 15 frames + bugfix

The clever bit is that it only adapts the length of selected events, without the events moving location or changing order when there are events in between which are not selected (like jumping over those not selected and grouping together, as such changing the order of events, Vegasaur will change the order in such cases, which is bad)

The script is based on a reworked and stripped down version of whisper speech to text I made in the past, and some clever bits from @jetdv on the matter of using an array for keeping the order  of events in check.  

Here is a link to dropbox for the script Version 2:

https://www.dropbox.com/scl/fi/o3j2zn57niss68obriint/SetEventLength.cs?rlkey=mqmrjdw8xfhf0ydefvp2uebba&dl=0

   

Last changed by bitman

APPS: VIDEO: VP 365 suite (VP 22 build 194) VP 21 build 315, VP 365 20, VP 19 post (latest build -651), (uninstalled VP 12,13,14,15,16 Suite,17, VP18 post), Vegasaur, a lot of NEWBLUE plugins, Mercalli 6.0, Respeedr, Vasco Da Gamma 17 HDpro XXL, Boris Continuum 2025, Davinci Resolve Studio 18, SOUND: RX 10 advanced Audio Editor, Sound Forge Pro 18, Spectral Layers Pro 10, Audacity, FOTO: Zoner studio X, DXO photolab (8), Luminar, Topaz...

  • OS: Windows 11 Pro 64, version 24H2 (since October 2024)
  • CPU: i9-13900K (upgraded my former CPU i9-12900K),
  • Air Cooler: Noctua NH-D15 G2 HBC (September 2024 upgrade from Noctua NH-D15s)
  • RAM: DDR5 Corsair 64GB (5600-40 Vengeance)
  • Graphics card: ASUS GeForce RTX 3090 TUF OC GAMING (24GB) 
  • Monitor: LG 38 inch ultra-wide (21x9) - Resolution: 3840x1600
  • C-drive: Corsair MP600 PRO XT NVMe SSD 4TB (PCIe Gen. 4)
  • Video drives: Samsung NVMe SSD 2TB (980 pro and 970 EVO plus) each 2TB
  • Mass Data storage & Backup: WD gold 6TB + WD Yellow 4TB
  • MOBO: Gigabyte Z690 AORUS MASTER
  • PSU: Corsair HX1500i, Case: Fractal Design Define 7 (PCGH edition)
  • Misc.: Logitech G915, Evoluent Vertical Mouse, shuttlePROv2

 

 

Comments

wwaag wrote on 1/20/2024, 9:31 AM

@bitman

Then there is « SetEventLength » from Happy Otter scripts @wwaag tools4vegas.com, but that one instantly crashes vegas 21.

That bug was fixed a couple of months ago and it now works correctly with V21. Here's the direct link: https://www.vegascreativesoftware.info/us/forum/happyotterscripts-free-tools--118349/?page=5#ca895878

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

bitman wrote on 1/20/2024, 10:17 AM

@wwaag It still crashes Vegas immediately upon start. By the way I downloaded the file yesterday, so this was anyway probably the one witch contains the fix.

Just to make sure, I downloaded again now with the link you provided in the post above, but still I have the same crash...

 

Problem Description
   Application Name:    VEGAS Pro
   Application Version: Version 21.0 (Build 208)
   Problem:             Unmanaged Exception (0xe0434352)
   Fault Module:        C:\WINDOWS\System32\KERNELBASE.dll
   Fault Address:       0x00007FFA333D567C
   Fault Offset:        0x000000000006567C

Fault Process Details
   Process Path:        C:\Program Files\VEGAS\VEGAS Pro 21.0\vegas210.exe
   Process Version:     Version 21.0 (Build 208)
   Process Description: VEGAS Pro
   Process Image Date:  2023-11-30 (Thu Nov 30) 05:19:46

APPS: VIDEO: VP 365 suite (VP 22 build 194) VP 21 build 315, VP 365 20, VP 19 post (latest build -651), (uninstalled VP 12,13,14,15,16 Suite,17, VP18 post), Vegasaur, a lot of NEWBLUE plugins, Mercalli 6.0, Respeedr, Vasco Da Gamma 17 HDpro XXL, Boris Continuum 2025, Davinci Resolve Studio 18, SOUND: RX 10 advanced Audio Editor, Sound Forge Pro 18, Spectral Layers Pro 10, Audacity, FOTO: Zoner studio X, DXO photolab (8), Luminar, Topaz...

  • OS: Windows 11 Pro 64, version 24H2 (since October 2024)
  • CPU: i9-13900K (upgraded my former CPU i9-12900K),
  • Air Cooler: Noctua NH-D15 G2 HBC (September 2024 upgrade from Noctua NH-D15s)
  • RAM: DDR5 Corsair 64GB (5600-40 Vengeance)
  • Graphics card: ASUS GeForce RTX 3090 TUF OC GAMING (24GB) 
  • Monitor: LG 38 inch ultra-wide (21x9) - Resolution: 3840x1600
  • C-drive: Corsair MP600 PRO XT NVMe SSD 4TB (PCIe Gen. 4)
  • Video drives: Samsung NVMe SSD 2TB (980 pro and 970 EVO plus) each 2TB
  • Mass Data storage & Backup: WD gold 6TB + WD Yellow 4TB
  • MOBO: Gigabyte Z690 AORUS MASTER
  • PSU: Corsair HX1500i, Case: Fractal Design Define 7 (PCGH edition)
  • Misc.: Logitech G915, Evoluent Vertical Mouse, shuttlePROv2

 

 

wwaag wrote on 1/20/2024, 10:34 AM

I can't repo the problem. Here's a link to my post on the HOS Free Tools Thread. https://www.vegascreativesoftware.info/us/forum/happyotterscripts-free-tools--118349/?page=5#ca903459

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

bitman wrote on 1/21/2024, 11:17 AM

Version 2 : added 4 more buttons to set length in number of frames 1, 5, 10, 15 frames

and bugfix: no longer delete of the selected event if closing the window by the X (aka do nothing message).

APPS: VIDEO: VP 365 suite (VP 22 build 194) VP 21 build 315, VP 365 20, VP 19 post (latest build -651), (uninstalled VP 12,13,14,15,16 Suite,17, VP18 post), Vegasaur, a lot of NEWBLUE plugins, Mercalli 6.0, Respeedr, Vasco Da Gamma 17 HDpro XXL, Boris Continuum 2025, Davinci Resolve Studio 18, SOUND: RX 10 advanced Audio Editor, Sound Forge Pro 18, Spectral Layers Pro 10, Audacity, FOTO: Zoner studio X, DXO photolab (8), Luminar, Topaz...

  • OS: Windows 11 Pro 64, version 24H2 (since October 2024)
  • CPU: i9-13900K (upgraded my former CPU i9-12900K),
  • Air Cooler: Noctua NH-D15 G2 HBC (September 2024 upgrade from Noctua NH-D15s)
  • RAM: DDR5 Corsair 64GB (5600-40 Vengeance)
  • Graphics card: ASUS GeForce RTX 3090 TUF OC GAMING (24GB) 
  • Monitor: LG 38 inch ultra-wide (21x9) - Resolution: 3840x1600
  • C-drive: Corsair MP600 PRO XT NVMe SSD 4TB (PCIe Gen. 4)
  • Video drives: Samsung NVMe SSD 2TB (980 pro and 970 EVO plus) each 2TB
  • Mass Data storage & Backup: WD gold 6TB + WD Yellow 4TB
  • MOBO: Gigabyte Z690 AORUS MASTER
  • PSU: Corsair HX1500i, Case: Fractal Design Define 7 (PCGH edition)
  • Misc.: Logitech G915, Evoluent Vertical Mouse, shuttlePROv2