View.ScriptEdit

douglas_clark wrote on 6/21/2007, 3:52 AM
In Vegas7d Customize Keyboard, there is an entry called View.ScriptEdit. It's under both Explorer and Global. It's assigned to Ctrl-Alt-0. I don't find it described in Help or Keyboard Shortcuts. Anybody know what this does, or how to use it?

Home-built ASUS PRIME Z270-A, i7-7700K, 32GB; Win 10 Pro x64 (22H2);
- Intel HD Graphics 630 (built-in); no video card; ViewSonic VP3268-4K display via HDMI
- C: Samsung SSD 970 EVO 1TB; + several 10TB HDDs
- Røde AI-1 via Røde AI-1 ASIO driver;

Comments

jetdv wrote on 6/21/2007, 5:12 AM
Press CTRL-ALT-0 and it will bring up an edit window where you can type in and save scripts.
douglas_clark wrote on 6/22/2007, 12:26 AM
Ahhaaa... I had tried the keystroke before...but I didn't notice the new window in the dock area. Thanks Ed. That's nice. It even gives you the basic template for a new Vegas script, in C#, jscript og VBscript.

Handy feature, but it won't put Visual Studio out of business. ;-) It ought to be mentioned in online help and the manual!

It'd be nice with a button to open up the Vegas scripting SDK for quick reference.

I'd also suggest that the default (install) position of the ScriptEdit window be a floating window in the middle of the screen, rather than as a docked window.

Home-built ASUS PRIME Z270-A, i7-7700K, 32GB; Win 10 Pro x64 (22H2);
- Intel HD Graphics 630 (built-in); no video card; ViewSonic VP3268-4K display via HDMI
- C: Samsung SSD 970 EVO 1TB; + several 10TB HDDs
- Røde AI-1 via Røde AI-1 ASIO driver;

Teetow wrote on 6/22/2007, 3:15 AM
Well, it's not primarily meant for writing code, but for debug output.

try myVegas.DebugOut("Hello, world!");
douglas_clark wrote on 6/24/2007, 6:12 AM
Yes, that is handy. I'm just getting started with Visual Studio Express. Isn't there an equivalent feature in VSE?

Home-built ASUS PRIME Z270-A, i7-7700K, 32GB; Win 10 Pro x64 (22H2);
- Intel HD Graphics 630 (built-in); no video card; ViewSonic VP3268-4K display via HDMI
- C: Samsung SSD 970 EVO 1TB; + several 10TB HDDs
- Røde AI-1 via Røde AI-1 ASIO driver;

Teetow wrote on 6/24/2007, 3:12 PM
Not sure exactly, I use the "full" Visual Studio. The reason I tend to use Vegas.DebugOut is because I write scripts for several users, so if something goes wrong I can check the debug output on their machines.

Visual Studio has the ability to attach a debugger to a running instance of Vegas and set breakpoints. I'm not sure if VSE has that capability, though.