Comments

Nat wrote on 4/21/2004, 6:55 AM
bbump
roger_74 wrote on 4/21/2004, 7:24 AM
Can't be scripted in the current version as far as I can tell. But why a script? I haven't tried layouts much, but don't you assign them to keys?
jetdv wrote on 4/21/2004, 9:42 AM
I agree - can't be scripted. However, you CAN save up to 10 different layouts right now. How many layouts do you need?
PAW wrote on 4/21/2004, 12:19 PM

they are changed using Alt-D then the numeric key, I am not a great lover of multiple key sequences

I have one hand on my shuttle pro, the other on my mouse. Because of the key sequence you can't map them to the shuttle pro either.

My preference would be to have a toolbar icon for layouts, just suits my way of working.

Thanks for looking

Paul
Nat wrote on 4/21/2004, 4:17 PM
It wouldn't be possible to script a sequence of keystrokes ?
roger_74 wrote on 4/21/2004, 4:23 PM
Yes, good idea! It's not fail safe but should work unless you've messed with key assignments.
Cheesehole wrote on 4/21/2004, 7:29 PM
>they are changed using Alt-D then the numeric key, I am not a great lover of multiple key sequences

You can add your own custom key mappings to Vegas now. I have my displays called up by CTRL+1, CTRL+2, etc...
Nat wrote on 4/21/2004, 7:45 PM
I still like the idea to recall them using a script.

Each script would be a layout (from 1 to 10) and would be in it's own folder. It would make a nice drop down menu of the different setups.
Nat wrote on 4/21/2004, 7:47 PM
There could be 2 folders, one to save layouts and one to recall them.
PAW wrote on 5/4/2004, 7:55 AM

This is at the end of another long thread on the Video forum, I hacked it from another post showing a script. I now have a number of layouts on the toolbar with icons :-)

Paul

import Microsoft.Win32;
import System.Windows.Forms;
import Sony.Vegas;
try
{
var wshShell = new ActiveXObject("WScript.Shell");
wshShell.SendKeys("%{d}+{1}");
}
catch(e) {MessageBox.Show(e);}


Nat wrote on 5/4/2004, 11:13 AM
This updated version will correct the problem that sometimes the tabbed windows won't be the good size :

import Microsoft.Win32;
import System.Windows.Forms;
import Sony.Vegas;
try
{
var wshShell = new ActiveXObject("WScript.Shell");
wshShell.SendKeys("%{d}+{1}");
wshShell.SendKeys("%{d}+{1}");
}
catch(e) {MessageBox.Show(e);}
dust wrote on 5/5/2004, 7:17 AM
Something else that might be of interest.... you sure know the problem of how to make backups of carefully drafted window layouts? Well, one wrong Ctrl-Alt-D x and setup x is gone!

By using regmon (registry monitor) I found that all window setups are stored in registry directory [HKEY_CURRENT_USER\Software\Sony Media Software\Vegas\5.0\Metrics], as B110 (for Alt-D 0), B111, ...,, B119 (Alt-D 9). So it is basically possible to backup these 10 keys somewhere else and reactivate if anything went wrong. You can also remove these keys, which will reset the corresponding layouts to default.

One could even switch between different layout-"sets" from a script, because you can access the registry from a script. And you could swap setups between PCs or even Vegas users :-)

dust

Nat wrote on 5/5/2004, 11:06 PM
This is getting interesting...