Hi everyone, this is a simple script that can be useful to someone like is usable for me. Actually, both are shortcuts to use the native Vegas options to copy the event's attributes and to paste Selectively Paste Event Attributes, via Script. I used .ahk files and compile them to .exe. Just copy both files to the script menu folder of your Vegas version and that's it.
P.S: Password for the rar. file: 123
This is the link for both files, the .cs and .exe;
https://drive.google.com/drive/folders/1abNUzf9IpAlWJc6sqXK6ZsXuI06cn4l3?usp=sharing
And this is the code for the Copy Attributes Shortcut;
using System; using System.IO; using System.Diagnostics; using System.Windows.Forms; using ScriptPortal.Vegas; namespace VegasScript { public class EntryPoint { public void FromVegas(Vegas vegas) { string vegasDirectory = FindVegasProDirectory(); if (vegasDirectory != null) { string scriptPath = Path.Combine(vegasDirectory, "Script Menu", "CopyAttributes.exe"); Process.Start(scriptPath); } else { MessageBox.Show("VEGAS Pro installation not found."); } } private string FindVegasProDirectory() { string[] vegasVersions = { "22.0", "21.0", "20.0", "19.0", "18.0", "17.0", "16.0" }; foreach (string version in vegasVersions) { string vegasPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "VEGAS", "VEGAS Pro " + version); if (Directory.Exists(vegasPath)) { return vegasPath; } } return null; } } }
And this is the code for the Selectively Paste Event Attributes Shortcut;
using System; using System.IO; using System.Diagnostics; using System.Windows.Forms; using ScriptPortal.Vegas; namespace VegasScript { public class EntryPoint { public void FromVegas(Vegas vegas) { string vegasDirectory = FindVegasProDirectory(); if (vegasDirectory != null) { string scriptPath = Path.Combine(vegasDirectory, "Script Menu", "SelectivelyPasteEventAttributes.exe"); Process.Start(scriptPath); } else { MessageBox.Show("VEGAS Pro installation not found."); } } private string FindVegasProDirectory() { string[] vegasVersions = { "22.0", "21.0", "20.0", "19.0", "18.0", "17.0", "16.0" }; foreach (string version in vegasVersions) { string vegasPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "VEGAS", "VEGAS Pro " + version); if (Directory.Exists(vegasPath)) { return vegasPath; } } return null; } } }
And this is the ahk. / .exe code for the Copy Attributes Shortcut;
Send, ^c ; Sends Ctrl+C
And this is the ahk. / .exe code for the Selectively Paste Event Attributes Shortcut;
Send, !es{Down}{Down}{Enter}