Automating a sequence of commands

Claude-Francoeur wrote on 11/25/2024, 6:09 AM

Hello. Using Vegas Pro 22, what is the best way for a non-developer to automate a series of commands to edit a project? I would like to create a macro that does this: 1- Select all events on all tracks 2- Group this selection 3- Select all after the cursor on the timeline 4- Split the events on all tracks at the cursor 5- Group all events on all tracks after the cursor 6- Move the group after the cursor to the right a few seconds. I'm using Windows 11. Thank you.

Comments

jetdv wrote on 11/25/2024, 7:49 AM

Honestly, these would probably all be easier using scripts (except for 1 and 2 which are single keypresses anyway) or just using the menu options. You can see all my scripting tutorials here:

If you're not going to write a script, you would need some app or device that can play back keystrokes. For example:

1. CTRL-A (i.e. Select All)

2. G (i.e. Group)

3. ALT E L Down Enter (i.e. Edit menu, Select, Select all after cursor)

4. CTRL-SHIFT-A S or CTRL-A S (i.e. Deselect all, Split OR Select all, Split)

5. ALT E L Down Enter G (i.e. Edit menu, Select, Select all after cursor, Group)

6. ALT E L Down Enter (Num3 or Num6 multiple times) (i.e. Edit menu, Select, Select all after cursor, Nudge by frame-3 or by pixel-6)

If you want help on the scripting parts, I could create specific tutorials for each of these.

Claude-Francoeur wrote on 11/25/2024, 7:56 AM

Good idea. Then, I could use AutoHotkey to automate these commands. I will try that. Where can I get a list of the keyboard shortcuts used in Vegas Pro? Thanks!

jetdv wrote on 11/25/2024, 8:11 AM

Help - Keyboard Shortcuts

Which, in VEGAS Pro 22, takes you here:

https://help.magix-hub.com/video/vegas/22/en/content/topics/13-appendix/shortcutkeys.htm?cshid=1001

 

jetdv wrote on 11/25/2024, 8:27 AM

Note that something like this actually goes through the menu system so it's not in the Keyboard list:

ALT E L Down Enter

Means:

ALT - start looking at menus

E - select the "Edit" menu

L - "Select"

Down Arrow - choose the second option under "Select"

Enter - Select that menu option