⚠️ (BUG?) New track with CTRL + SHIFT + Q

m3lquixd wrote on 3/3/2023, 8:55 AM

When we selected a track, we clicked with the right mouse button and inserted a new track. The new track is created directly on top of the previously selected track. However, if we select a track and insert a new track using the shortcut CTRL + SHIFT + Q. The new track is created on top of all tracks.

Last changed by m3lquixd

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

Comments

m3lquixd wrote on 3/3/2023, 8:57 AM

@jetdv I think you can create a script with the command to insert a new track on top of the selected track, then just remove the default shortcut and define it for the script.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

jetdv wrote on 3/3/2023, 3:16 PM

Yes, a script can add a track anywhere.

Here's basically what you'd need to do:

            foreach (Track myTrack in myVegas.Project.Tracks)
            {
                if (myTrack.Selected)
                {
                    VideoTrack newTrack = new VideoTrack(myTrack.Index, "Optional Name");
                    myVegas.Project.Tracks.Add(newTrack);
                    break;
                }
            }

 

m3lquixd wrote on 3/3/2023, 3:58 PM

@jetdv and audio track? please

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

jetdv wrote on 3/3/2023, 4:02 PM

So you want video + audio above the current selected track?

            foreach (Track myTrack in myVegas.Project.Tracks)
            {
                if (myTrack.Selected)
                {
                    int thisIndex = myTrack.Index;
                    VideoTrack newTrack = new VideoTrack(thisIndex, "Optional Video Track Name");
                    myVegas.Project.Tracks.Add(newTrack);
                    AudioTrack newATrack = new AudioTrack(thisIndex + 1, "Optional Audio Track Name");
                    myVegas.Project.Tracks.Add(newATrack);
                    break;
                }
            }

 

m3lquixd wrote on 3/3/2023, 4:10 PM

Yes, a script can add a track anywhere.

Here's basically what you'd need to do:

            foreach (Track myTrack in myVegas.Project.Tracks)
            {
                if (myTrack.Selected)
                {
                    VideoTrack newTrack = new VideoTrack(myTrack.Index, "Optional Name");
                    myVegas.Project.Tracks.Add(newTrack);
                    break;
                }
            }

 


@jetdv It doesn't work.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

m3lquixd wrote on 3/3/2023, 4:11 PM

So you want video + audio above the current selected track?

@jetdv
I want one for the video track and one for the audio track, to replace the native Vegas commands.The video always creating above the selected track and the audio creating below the selected track.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

jetdv wrote on 3/3/2023, 4:33 PM

That's just the "guts" of the script, not the entire script. To scale it down and make it "runable":

Video Track above first selected track:

using ScriptPortal.Vegas;

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
        Vegas myVegas = vegas;

        foreach (Track myTrack in myVegas.Project.Tracks)
        {
            if (myTrack.Selected)
            {
                VideoTrack newTrack = new VideoTrack(myTrack.Index);
                myVegas.Project.Tracks.Add(newTrack);
                break;
            }
        }
    }
}


 

Audio Track after first selected track:

using ScriptPortal.Vegas;

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
        Vegas myVegas = vegas;

        foreach (Track myTrack in myVegas.Project.Tracks)
        {
            if (myTrack.Selected)
            {
                AudioTrack newTrack = new AudioTrack(myTrack.Index + 1);
                myVegas.Project.Tracks.Add(newTrack);
                break;
            }
        }
    }
}

 

m3lquixd wrote on 3/3/2023, 4:47 PM

@jetdv 
Worked perfectly. But when I defined a shortcut for the script, I noticed that the execution time is unfortunately slower than Vegas' native create new track function.
Can you do one more thing? I realized that when there is no trail it is not possible to create a new trail. Is there a way to make it also create a track even without selecting any tracks? (I understand that with more lines of code the script will take even longer to run.)

Last changed by m3lquixd on 3/3/2023, 4:50 PM, changed a total of 1 times.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

jetdv wrote on 3/3/2023, 4:55 PM

If no selected track, will add a video track at the top or an audio track at the bottom.

using ScriptPortal.Vegas;

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
        Vegas myVegas = vegas;
        bool added = false;

        foreach (Track myTrack in myVegas.Project.Tracks)
        {
            if (myTrack.Selected)
            {
                VideoTrack newTrack = new VideoTrack(myTrack.Index);
                myVegas.Project.Tracks.Add(newTrack);
                added = true;
                break;
            }
        }
        if (!added)
        {
            VideoTrack newTrack = new VideoTrack(0);
            myVegas.Project.Tracks.Add(newTrack);
        }
    }
}


 

using ScriptPortal.Vegas;

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
        Vegas myVegas = vegas;
        bool added = false;

        foreach (Track myTrack in myVegas.Project.Tracks)
        {
            if (myTrack.Selected)
            {
                AudioTrack newTrack = new AudioTrack(myTrack.Index + 1);
                myVegas.Project.Tracks.Add(newTrack);
                added = true;
                break;
            }
        }
        if (!added)
        {
            AudioTrack newTrack = new AudioTrack(myVegas.Project.Tracks.Count);
            myVegas.Project.Tracks.Add(newTrack);
        }
    }
}

 

m3lquixd wrote on 3/3/2023, 5:18 PM

@jetdv Thank you very much! Worked perfectly.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

m3lquixd wrote on 3/10/2023, 7:20 AM

@VEGASDerek Although our friend jetdv managed to create something that solves the problem, this remains an issue that should be resolved in official updates.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

VEGASDerek wrote on 3/10/2023, 7:47 AM

This is how VEGAS has worked since the beginning of time. It is unlikely we will change this default behavior. However, we could consider some alternate new track options.

m3lquixd wrote on 3/10/2023, 8:01 AM

@VEGASDerek But shouldn't the shortcut's behavior be the same as right-clicking and selecting the option? Since the shortcut is a quick way to do the same function?​​​​​​​

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

VEGASDerek wrote on 3/10/2023, 8:50 AM

It is quite simple the reason behind it...the right click option places the new track at the point where the right click occurred in the timeline. The keyboard shortcut will place a video track at the top of the timeline or and audio track at the bottom since it has not relevance to the mouse cursor. You're assumption that this is based on a selected track is incorrect...it is based on the location of the mouse click.

lan-mLMC wrote on 3/11/2023, 11:20 PM

@VEGASDerek

The current audio track's right-click menu lacks "Create New Video Track",

video track's right-click menu lacks "Create New Audio Track".

Many users would like this to be improved to bring greater flexibility and freedom for Vegas.

m3lquixd wrote on 3/12/2023, 11:49 AM

@lan-mLMC I agree.​​​​​​​
Ps. With this script above you can do that.​​​​​​​

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

m3lquixd wrote on 3/12/2023, 12:58 PM

It is quite simple the reason behind it...the right click option places the new track at the point where the right click occurred in the timeline. The keyboard shortcut will place a video track at the top of the timeline or and audio track at the bottom since it has not relevance to the mouse cursor. You're assumption that this is based on a selected track is incorrect...it is based on the location of the mouse click.

@VEGASDerek I do not agree with this. I don't know if anyone else agrees with me, but I think that when we LEFT click on a track we are selecting it. So, if we were to do CTRL + SHIFT + Q at that moment, it should create the track above the track we selected. That's what I think, I've never seen any program just recognize that we're selecting something only when we click the right button.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))

m3lquixd wrote on 3/12/2023, 1:04 PM

@VEGASDerek If we were to use that reasoning, we shouldn't be able to delete a track or an event with the delete key, since we left-click to indicate what we want to delete and then press delete. And even then you have the option to right-click and delete as well. Even better since we're talking about a shortcut. The copy and paste. We can use the right button to open the menu or we can use the shortcut. Selecting has always been with the left, right button serves to open menu.
So I reaffirm, they should be able to click on a track, execute the shortcut and the track will be created right above the selected track. In case we want to create a new track altogether, then we don't select any track, we can click on the timeline in an empty place and execute the shortcut.

About me:
Hi! Melqui Calheiros Here. I've been using Vegas as my only video editor for over 10 years. I edit professionally for various influencers, public bodies and small businesses. My goal is to squeeze Vegas to the fullest! And end the prejudice that software has here in Brazil.

⬇️ Some of my jobs. ⬇️
https://www.vegascreativesoftware.info/us/forum/post-your-vegas-creations--109464/?page=37#ca872169

PC Specs:
Operating System:
    Windows 11 Pro 64-bit
CPU:
    AMD Ryzen 3 3200G 3.60 GHz
RAM:
    16,0GB Dual-Channel DDR4 2666MHz
Motherboard:
    Gigabyte Technology Co. Ltd. A320M-S2H-CF (AM4)
Graphics:
    4095MB NVIDIA GeForce GTX 1650 (ZOTAC International)
Storage:
    465GB Seagate ST500DM002-1BD142 (SATA )
    238GB Lexar 256GB SSD (SATA (SSD))