Beginner scripting questions:
1. how would I write code that detects a gap in the timeline of, say, more than 1 second?
2. how would I instruct Vegas to Insert Time (for, say, 3 seconds) at the current cursor?
I tried this but it crashed:
using ScriptPortal.Vegas;
namespace InsertGap
( public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
InsertTime (vegas.TransportControl.CursorPosition, "00:00:03:00");
}
}
}
What bits am I missing? 😳
These are the errors I'm getting so far:
The name 'InsertTime' does not exist in the current context
'ScriptPortal.Vegas.Vegas' does not contain a definition for 'TransportControl'
2a. in general, how do I execute a menu, key or mouse command - such as Insert Empty Event, Import Media File, Insert Media (at a specific timecode and track), or move the cursor to the next/previous marker/region/event?
It seems to me to be a matter of reading the properties or executing the methods for the various API functions.
But there's other "housekeeping" matters that I can't find any info about (e.g. do I need any extra special "using" or "import" statements?
Thanks for tips, suggestions, instructions... :)