Recording aborts when a script is run

Bob1999 wrote on 9/9/2010, 9:32 PM
When I'm do an audio recording with Vegas 9 and I run a script the recording stops.
Any thoughts?

Here's the VB script (though I think any script will abort the recording).

imports System.Windows.Forms
imports Sony.Vegas
imports Microsoft.VisualBasic
Public Class FileSystem
End Class
Public Module MainModule
Sub Main
Microsoft.VisualBasic.FileSystem.FileOpen(1, "C:\VoiceDevRecording\Test.txt", _
OpenMode.Output, OpenAccess.Default, OpenShare.Shared)
Microsoft.VisualBasic.FileSystem.PrintLine(1, VegasApp.Cursor.ToString())
Microsoft.VisualBasic.FileSystem.PrintLine(1, "Hello World")
Microsoft.VisualBasic.FileSystem.FileClose(1)
End Sub

End Module

Comments

jetdv wrote on 9/10/2010, 6:11 AM
I tried running the "add timecode" script via Tools - Scripting while a recording was being made and it immediately popped up the dialog asking me to name the event and stopped the recording.

I tried doing some things in Excalibur as a Custom Command and the recording continued even though I ran several of the tools.

So if you convert your script to a custom command, you should be able to run it while the recording continues.