V5 layout administration script

dust wrote on 5/6/2004, 11:53 PM
For those that are interested, I wrote a script that can backup and restore V5 layout-sets (=all 10 currently active layouts of V5), and also to transport these from PC to PC. It uses undocumented technical details of V5 though (registry locations where V5 stores layouts), so I can't guarantee it runs on later V5 releases (> 5.0a build 134). More...

Comments

Nat wrote on 5/7/2004, 2:08 PM
brilliant !
dust wrote on 5/8/2004, 6:47 AM
I added another script 'quicklayout.js' as "little brother" of 'layouts.js'. You can find them both
at the same location, including docs. Its purpose is to add a quick access to specific saved layouts. It is needed to copy and rename the script, because it takes all its information from the filename. Precise information is given on the webpage.

Example: you create a layout and, say, store it using Ctrl-Alt-D 5. Then you store the layout-set using layouts.js as "mylayout".

Create a copy of quicklayout.js under the name "xxx_mylayout_5.js" (xxx can be chosen to your liking). running this script will automatically load layout-set 'mylayout' and activate layout 5 using Alt-D 5 (using the Wshell object :-).

Of course this will also overwrite the other 9 layouts (0-4 and 6-9). You can prevent this by renaming the script as 'xxx_mylayout_55_5.js' (which will only load layout 5 and merge with the rest), or 'xxx_mylayout_54_4.js (which will also only load layout 5, but store it
on Vegas' internal location 4, and then invoke Alt-D 4). A bit more complicated, probably you don't need this mode at all though.

One advantage of the whole stuff is that you can kind of access layouts by "absolute names" instead of only index numbers that could change (and sometimes change in an unwanted way, to say the least :-).

Have fun, dust