feature requests for 4.0c

SonyPJM wrote on 4/24/2003, 10:15 AM

I just wanted to put out a call for scripting feature requests for the
4.0c release. There's probably no time for biggies but I'll do what I
can. Here's what I have so far:

1) Custom command marker types (CommandMarkerType now has public constructor)

2) Vegas.Exit() quits the application upon completion of the script.

3) Keyframe interpolation types (both effect Keyframes and VideoMotionKeyframes).

Comments

jetdv wrote on 4/24/2003, 10:52 AM
How about a way to COPY an event with all effects intact? For example, I would like to take an event and make an exact duplicate on another track - this includes ANY effects added, pan/crop changes, ...
roger_74 wrote on 4/24/2003, 11:37 AM
I'm not sure if this is possible already, I haven't been able to work it out:

Let's say I want to process all selected tracks. I would make a function that returns a Tracks object (collection of tracks). However, I am unable to instanciate a Tracks object, since it has no constructor.

Instead I return an ArrayList containing each Track.

So, is it possible to instanciate objects that inherit from BaseList, or is that a bad idea?
SonyPJM wrote on 4/24/2003, 12:10 PM

Probably the ArrayList approach is best... or maybe you could create a
"filtered" enumerator class that has a (or is a) standard enumerator
but returns only the selected tracks.

Generally speaking, the internal constructors for objects in Vegas's
scripting API need internal object ids, etc... they involve a bunch of
nasty details we've tried to hide in the public API.
SonyPJM wrote on 4/24/2003, 4:43 PM
You got it (barring any major bugs that turn up in further testing).
Veasna wrote on 4/25/2003, 12:55 AM
Thanks for gathering scripting feature requests for 4.0c release. I am not sure if the following task can be done with the current scripting implementation, but I cannot see that it can be done through looking at the API document:

I would like to write a script that can take in still images from a specified directory and render it to a specified render video template without having to bring in the still images into the Vegas video track.

I know that currently I have to drag and drop the still images into the track before anything can be done. This new scripting feature will allow me to bypass this step and save me a lot time when I just want to turn my still images into a video file.

Thanks,
-Veasna
SonyPJM wrote on 4/25/2003, 9:17 AM

If the still images are named as a sequence (like image001.jpg,
image002.jpg, image003.jpg, ...), Vegas has the ability to bring that
sequence in as a single video clip.

But if the images are only related by their containment in a
particular directory, I think a script can be written to produce a
video track from them. The script would need to create a temporary
project with a video track and lay them out on the track as events.
Then it would render the temporary project. One complication could be
sequencing the images in the proper order... if there's nothing
"sortable" about the image files, you may be better off just doing it
manually.
aboukirev wrote on 4/27/2003, 2:04 PM
If I'm not too late...

1) ability to identify selected bin in media pool
2) ability to identify selected media in media pool (user selects several items and runs script operating just on those items)

Thanks.

Alexei
bcgreen wrote on 4/27/2003, 2:37 PM
How about a simple macro recorder? Scripting is great, but I'm no programmer. It would be nice to be able to simply assign a series of keystrokes to a key combination...(without having to use a third-party app like RemoteKeys)

Thanks!
Bryan

dust wrote on 4/28/2003, 4:20 AM
Hi,

My scripting wishlist is the following (maybe some things are already possible, but I didn't find a way so far):

- Access to event grouping in the timeline (so I can add/remove events from a group)

- Access to scroll in the timeline and media-bin to a certain position (for example to make a cursor position or media visible)

- Maybe a "keyboard simulation mode" so one could, for example, select certain events (by setting its selected property) and then process "press G key" simulation in order to group them

Thanks, dust
SonyPJM wrote on 4/28/2003, 9:46 AM
I'm afraid the media selection stuff is currently entirely tied to the
media pool GUI so if the user happens to not have the media pool
displayed, the selection is inaccessible. However, I've logged your
request for a future version.
SonyPJM wrote on 4/28/2003, 10:06 AM
> - Access to event grouping in the timeline (so I can add/remove events from a group)

I'm afraid event grouping is too big for the the 4.0c
time frame... request logged for a later release though.

- Access to scroll in the timeline and media-bin to a certain position (for example to make a cursor position or media visible)

We're still not sure if and how to expose strictly GUI-related things
such as this (there are a ton of them)... request logged.

- Maybe a "keyboard simulation mode" so one could, for example, select certain events (by setting its selected property) and then process "press G key" simulation in order to group them

Mimicking keyboard strokes involves inner-script message processing
which is (for the most part) not done... there are threading and
order-of-operations issues involved. Anyway, we'd prefer to have a
scripting API equivalent to any keyboard operation. Using your
example, there should be a Vegas.Project.Groups collection of Group
objects which can have events added and removed... as stated above,
that will have to come later.


Thanks for your request. Sorry I couldn't do more in the short term
but please keep an eye out in future releases.
SonyPJM wrote on 4/28/2003, 10:17 AM

Thanks for your feedback.

A proper macro recorder is to much for 4.0c (which is due very
shortly). Sending key strokes in the middle of a script has issues in
terms of threading, message processing, and order of operations.
Ideally, there'd be a scripting API equivalent to any combination key
strokes.

I understand your perspective though... you'd like to have some amount
of automation without having to learn the ins and outs of
programming. We'll give it further consideration for a future release.
PeterWright wrote on 4/29/2003, 6:35 AM
I'm an appreciater rather than a writer of scripts, but I'd like to say that it's the sort of dialogue that's in this thread, between software producer and users, that makes people like me such avid (that's a small "a") supporters of SoFo and it's products.
uffefl wrote on 4/29/2003, 9:04 AM
I know this isn't part of the Vegas API, but somebody please put pressure on Microsoft to include proper delegate support in JScript.NET. It is the only thing (as I can see) that prevents us from creating Vegas scripts with proper GUIs. (Apart from writing scripts in VB or calling external assemblies.)

- Uffe
roger_74 wrote on 4/29/2003, 10:04 AM
You may know this already, but to handle events you can use:

Button1.add_Click(Button1_Click);

instead of (in c#)
Button1.Click += new EventHandler(this.Button1_Click);
Constantino wrote on 4/30/2003, 9:42 AM
I have a project with several thousand captured clips and I need to visualise all these, not on the monitor, but in printed form (small prints) on large cardboards in the studio. Walter Murch describes this technique in his fine books. It's great for making correlations between clips and developping a sequence.

I put all clips on timeline and I need a script that saves a snapshot from the first frame of each clip, saving a jpeg WITH THE NAME (nUmber) OF EACH CLIP (ex. 58-224) in a folder. I then run photoshop to automate contact sheets of all these little photos with the names of the source clips on. I make print A4 pages for 1 EUR each, cut them and do my cardboards. Hand-made editing again -:) I came in editing from photography, I have a visual memory. I try also to compensate the luck of Story board in Vegas.

Is there anyway to automate the saving AND naming process?

Many thanks in advance.

C.
BrianStanding wrote on 5/5/2003, 4:48 PM
Maybe too much for the 4.0c release, but...

Can we make the Trimmer scriptable, so we can export clips from Regions set in the Trimmer?
SonyPJM wrote on 5/6/2003, 9:25 AM

Nice request.

But this sort of deals with the overall model of the scripting
API... Should it be modeled after the GUI or the underlying data. So
far we've leaned toward the data model. What will hopefully happen in
a future version (but not 4.0c) is that Media objects will have
collections of Markers and Regions which can be manipulated in much
the same way as project markers and regions.
BrianStanding wrote on 5/6/2003, 3:16 PM
Not really a scripting feature, but... how about customizable toolbar buttons for each script?

Or is there a way to do this already?
SonyPJM wrote on 5/6/2003, 3:32 PM
You can already do this... just go to the Options menu and select "Customize Toolbar..." At the bottom of the list there are 10 script icons (corresponding to the 10 assignable script menu items) that you can add to the toolbar.
BrianStanding wrote on 5/6/2003, 11:37 PM
Sorry, I guess I wasn't clear. What I'm asking is if we can change the pictures on the buttons so they will be more suggestive of what the script DOES. (i.e., a multiple render icon for the BatchRender script). As it is now, all scripts have the same picture on the button, only the number is different.

Does this make sense?
roger_74 wrote on 5/7/2003, 7:52 AM
When rendering in Vegas there are options for Stretch video to fill output frame (do not letterbox) and Save project markers in media file. I can't find support for these in scripting. Can they be added?
SonyPJM wrote on 5/7/2003, 9:33 AM
Too late for 4.0c but I'll see waht I can do in a future release. Currently, markers are exported (I realize you may not want this) and you can control the video letterboxing by adjusting the project's video properties and video events' MaintainAspectRatio.
SonyPJM wrote on 5/7/2003, 9:40 AM
I thought that might have been what you meant. I'll add this feature request to my list. I see how it would be nifty to have a clear visual clue in the toolbar rather than having to memorize or roll over to see the script name.