📝⚙️(Script) Duplicate an event to a new track.

Comments

jetdv wrote on 2/9/2024, 2:17 PM

Try changing:

int trackIndexToAdd = -1;

foreach (Track myTrack in myVegas.Project.Tracks) 
{

to

foreach (Track myTrack in myVegas.Project.Tracks) 
{
    int trackIndexToAdd = -1; 

 

m3lquixd wrote on 2/9/2024, 2:37 PM

Worked, thank you!

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 7 5700G 3.80 GHz
RAM:
    32,0GB Dual-Channel DDR4 3200MHz
Motherboard:
    ASRock B450M Steel Legend (AM4)
Graphics:
    MSI RTX 4060 Ventus 2X Black OC 8GB
Storage:
    476GB ADATA SU650 (SATA (SSD))
    931GB KINGSTON SNV2S1000G (SATA-2 (SSD))

jetdv wrote on 2/9/2024, 3:04 PM

@m3lquixd As you can see, sometimes the placement of those lines can lead to very different results!