Comments

jetdv wrote on 6/17/2004, 7:02 AM
No.
Sol M. wrote on 6/17/2004, 3:40 PM
Ah, thanks.

Sony, care to shed some light on why the Trimmer remains one of the few unscriptable areas in Vegas?
SonyPJM wrote on 6/18/2004, 7:44 AM

The trimmer just fell outside the main focus of the scripting API. For
the most part, the API is centered around manipulating project data.
The exceptions are (mainly) rendering, saving snapshots, and accessing
the timeline selection.

Basic trimmer functions can be achieved by manipulating TrackEvents.
The ability to manipulate media markers via scripting is something
that's on our to-do list.
Sol M. wrote on 6/21/2004, 8:44 PM
Thanks for the info.

You're right about the trimmer functions not needing to be scriptable for too many operations. The reason I was hoping for the trimmer to be scriptable was that someone was asking for overwrite functionality in Vegas (over in the Vegas-Video section). If the trimmer was scriptable, it would seem failrly simple to write a script to overwrite a selected event on the timeline with a selection in the trimmer in one step (rather than having someone create a new event from the trimmer selection and then running the script).

I'm sure this is already assumed, and Vegas' developement must be prioritized, but the more Vegas is scriptable, the better! :)
Rosebud wrote on 6/22/2004, 11:42 AM
Hi Jive,
Do you know if script can access to the ClipBoard data ?
What do you think about this workflow to simulate Overwrite Edit Mode:
-Make a time selection in Trimmer
-Hit Ctrl+C to copy
-Place cursor on Time Line
-Run a script to Paste data on Timeline and overwrite existing media

Possible ?
Thank.
Rosebud wrote on 6/25/2004, 9:36 AM
Anybody know if script can access to the ClipBoard data ?
SonyPJM wrote on 6/25/2004, 11:33 AM
Check out the System.Windows.Forms.Clipboard class in Microsoft's .net framework docs.
Rosebud wrote on 6/27/2004, 1:43 AM
Thank SonyPJM,

I have make some tests.
I cannot get access to Media Path of the clipboard data (System.IO.MemoryStream).

Any idea ?
Many thank


//*************************
import System;
import System.Text;
import System.IO;
import System.Windows.Forms;
import Sony.Vegas;

try {

var iData : IDataObject = Clipboard.GetDataObject();
var myFormat = iData.GetFormats();
var myDonnee = iData.GetData("Sony Vegas Data 5.0",true);

MessageBox.Show(myDonnee.MediaPath); // return undefined

} catch (e) {
MessageBox.Show(e);
}

//**********************************
SonyPJM wrote on 6/28/2004, 9:08 AM

It will be a very complex undertaking to decipher the format of Vegas'
clipboard data. The clipboard data and the scripting API are not
directly related.