pink points: from center to 5.1

Qbrick wrote on 3/29/2024, 6:50 AM

Hi all!

I'd like to have a script to fight my laziness :P

I want to select 5 audio tracks, run a custom script that:

1) move the pink points like that:

from:

https://i.imgur.com/qs9l4yB.png

to:

https://i.imgur.com/52Y22kk.png

2 group tracks (Ex.: with an AUDIO label)

https://i.imgur.com/xCEd5q7.png

3) set this audio properties:

https://i.imgur.com/XTaXfFA.png

is it possible? :)

 

 

Comments

jetdv wrote on 3/29/2024, 8:21 AM

Run this to see what settings are used on each of those tracks:
 

using System;
using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Drawing;
using System.Runtime;
using System.Xml;
using ScriptPortal.Vegas;

namespace Test_Script
{
    public class Class1
    {
        public Vegas myVegas;

        public void Main(Vegas vegas)
        {
            myVegas = vegas;

            foreach(Track myTrack in myVegas.Project.Tracks)
            {
                if (myTrack.IsAudio())
                {
                    AudioTrack aTrack = (AudioTrack)myTrack;
                    string s = "Pan settings: PanX=" + aTrack.PanX;
                    s += "   PanY=" + aTrack.PanY;
                    s += "   PanCenter=" + aTrack.PanCenter;
                    MessageBox.Show(s);
                }
            }
        }
    }
}

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
        Test_Script.Class1 test = new Test_Script.Class1();
        test.Main(vegas);
    }
}

Then you can use those values to set the individual tracks to those same values.

As for grouping audio tracks:

And accessing the Project settings: