[SCRIPT] Go to Event.

Rosebud wrote on 6/1/2007, 2:00 AM
HERE, my last script named “Go to Event” (only for Vegas7).
To install the script, just copy the DLL in Vegas’s script directory.
This script lists all the Timeline’s Events. A double-click on the listview moves the cursor to the event’s start.
This script have a non-modal window form, so you can edit Timeline while the script is running.
It is still in beta version, thx in advance to report any bug.

Gilles

You can find my other scripts HERE

Comments

Grazie wrote on 6/1/2007, 2:50 AM
Gilles, excellent! - I like the way it stays OVER the WORKSPACE!

Want some suggestions?:

#1 - Sort on Fields?

#2 - Use Count - could/would be a bonus?

#3 - Is it possible to ALSO HIGHLIGHT the Event? Took a while to see just where the Cursor had zoomed off to!! Very fast though .. very fast indeed.

#4 - Centre the Numbers under the Index column?

#5 - Have the window re-sizable?

#6 - My whole timeline does a momentary "shudder" is that fix-able?

Love it .. love it!! I'm in awe!

Grazie
Wolfgang S. wrote on 6/1/2007, 4:44 AM
Great - thanks a lot.

Desktop: PC AMD 3960X, 24x3,8 Mhz * RTX 3080 Ti (12 GB)* Blackmagic Extreme 4K 12G * QNAP Max8 10 Gb Lan * Resolve Studio 18 * Edius X* Blackmagic Pocket 6K/6K Pro, EVA1, FS7

Laptop: ProArt Studiobook 16 OLED * internal HDR preview * i9 12900H with i-GPU Iris XE * 32 GB Ram) * Geforce RTX 3070 TI 8GB * internal HDR preview on the laptop monitor * Blackmagic Ultrastudio 4K mini

HDR monitor: ProArt Monitor PA32 UCG-K 1600 nits, Atomos Sumo

Others: Edius NX (Canopus NX)-card in an old XP-System. Edius 4.6 and other systems

Marco. wrote on 6/1/2007, 6:01 AM
Yes, very uselful indeed!

Marco
Rosebud wrote on 6/1/2007, 6:54 AM
Glad to see you find this script useful. :)))
I made some improvements (beta2), so please download it again.
I had to rewrite some code, so I wish I did not add some new bugs (make a backup of your DLL before install new version).
In addition, since I’m not English, please tell me if there is inappropriate word in the interface.

>To Marco.
I received you mail.
Of course, there is no problem to hosting this script on your website.
Btw, I’m the same Gilles registered on your forum. ;)

>To Grazie
#1 I will look for. But I’m a C# beginner and need to learn more for this feature.
#2 I can add it. But “Use Count” is more related to MediaStream. Is there a really need to add it ? I need more users advice please.
#3 Feature added.
#4 Sorry, it is a Framework2 limitation.
#5 like #2, I need more users advice please.
#6 This is because I can’t use the Shortcut “\” to center timeline around cursor (to be compatible with all Vegas language version). I must use the Shortcuts Cursor UP & Down (Zoom up & down).

Gilles
Grazie wrote on 6/1/2007, 8:01 AM
Excellent Gilles!

Make Time Selection is probably what a lot of VegHeads have been after for some time now. The way I can identify an Event really stand out now! What would I use "Event's Group" for? I suppose you can't get the Thumbnails in there? Nah . . thought not.

As to your English, maybe put an UPPERCASE "E" for Event - it is a noun. But then again, I'm being picky ..

I'm now trying to see how and where I would use it? It does work, and works very well, but without something like thumbnails, a further reference for me, or take and sort options, I'm finding it hard to think just when I'd use it?

Grazie

Marco. wrote on 6/1/2007, 9:39 AM
Thanks Gilles! I added the script to the script section of our website. I also like your "Split Audio Channels"-script very much.

"I’m the same Gilles registered on your forum. ;)"

I know, only the name Rosebud wasn't that familiar to me at a first look. ;-)

Marco

johnmeyer wrote on 6/1/2007, 11:11 AM
Amazing. Didn't know you could do this via the script interface. Very clever.

Now that you've added the "select event" option, I think you'll need to provide a way to de-select the events. More important, whenever you add a feature requested by a user, I think you need to make sure it actually solves the problem the user was trying to address. In Grazie's case, what I think I heard was that he was having problems following where the cursor was going. His suggestion was that you highlight the event, in order to make it easier to see where the cursor has gone. You did what he asked, but remember that Grazie is a brilliant video editor, but not a software engineer. Thus, as a result of implementing HIS idea of how to fix his problem, you actually created another problem: As you move around the timeline, pretty soon every event in sight has been highlighted! And what is more than a little ironic, is that when all the events have eventually become highlighted, you are back to the same problem Grazie was having!

One solution would be to unselect the last selected event whenever you move to the next event. Of course, if some user wants to use this script to select events, then this would not be a good thing. However, the Edit Details view already provides a way to sort on various columns and then check the "Select" box, so I am not sure you need to add a feature in this script that already exists in the Edit details (and therefore you shouldn't worry about de-selecting events as you move to the next event). If I understand the original reason for this script, it was created for the reason that you cannot actually force Vegas to go to the event listed in Edit Details. You have done that brilliantly.


Rosebud wrote on 6/1/2007, 12:38 PM
Thx John.

I understand your point of view (and in fact, I was working to add the “select feature” before Grazie had asking for).
In other hand, I think it is fine to be able to select several Events (for example to delete or move them).
So, I think the normal workflow is to double-click a line to access Event, enable the checkbox only when we are sure we had access the wanted Event and double-click another time the line.
Ok, it’s not very handy…
A solution is maybe to replace the Checkbox: “Select Event” and “Select Event’s group” by two Buttons “Select/Unselect Event”, “Select/Unselect Event’s group”. So the Workflow would be to double-click a line to move cursor to Event and click buttons to select the wanted Event ?

I’m waiting for suggestions.

For info, next improvement will be: The selected line stay selected when we switch between Timeline/Script windows.
johnmeyer wrote on 6/1/2007, 2:49 PM
If you are thinking of adding commands so the user can then act on the selected events, I just completed a script that lets you swap the first two selected events on the first selected timeline. Everyone but me like Johnny Roy's old script which swaps two events, but doesn't ripple the timeline, and doesn't touch the associated audio. The one I just finished does both. I wasn't planning on posting it (since everyone was happy with the existing script) or doing anything except using it myself. However, if you want the code (it's jscript, so of only limited value to your C# project), I'd be happy to send it to you. If nothing else, it shows vividly the need to walk backwards through enumerations when doing any even rippling.
Rosebud wrote on 6/2/2007, 1:13 AM
Many thx John.
I will be glad to have a look on your script (you can send me a mail by clicking my name).

In addition, I would like to have more users advice about current workflow (it’s good or it need to be improved ?).

I need also more users advice about:
-Make window resizable ?
-Add a switch (checkbox) to keep (or not) the script’s window always on top ?

Gilles
NickHope wrote on 6/2/2007, 1:19 AM
Great work Rosebud! Thanks.

Any chance you can stop the list going back to the top after you've double-clicked the event you want to display? For example I would use this script for taking a quick look at all the "octopus" events in a big complicated project. In your script's list window these typically appear together sorted by "file path" and I don't want to have to scroll back down the window each time to double-click the next one.

Just a tiny point on terminology, I wondered if "Show selected events only" was going to only show me the selected events on the timeline. Perhaps "List selected events only" might be less ambiguous for a new user. Just a thought.

Anyway thanks a lot as I think this came from my suggestion in the other thread. Don't forget a cute litte png to put on our toolbars ;)
NickHope wrote on 6/2/2007, 1:26 AM
Yes please, definitely resizable so I can list as many events as possible in there if I want, or just leave it as a small open window up near the top of my screen.

Personally I would always want it on top.

Another thing... I will never be looking at the first four columns. I expect most users will be looking for the "Active Take Name" or the "File Path". So maybe have those colums first (on the left) so that they are the ones that display first in a narrow window.
Grazie wrote on 6/2/2007, 1:30 AM
. . nice if it had an itsy-bitsy thumbnail icon too . ..
Rosebud wrote on 6/2/2007, 3:57 AM
>Any chance you can stop the list going back to the top after you've double-clicked the event you want to display?

Should be fixed now. Please check it.

>I wondered if "Show selected events only" was going to only show me the selected events on the timeline. Perhaps "List selected events only"

Fixed.

>Don't forget a cute litte png to put on our toolbars ;)

Work in progress ;)

>I will never be looking at the first four columns. I expect most users will be looking for the "Active Take Name" or the "File Path". So maybe have those colums first (on the left) so that they are the ones that display first in a narrow window.

You can resize each columns to 0 to have only wanted columns displayed.

>. . nice if it had an itsy-bitsy thumbnail icon too . ..

Oh yes Grazie, I totally agree with you… unfortunately it is out of my competences :((


I made many code changes, so HERE a new link for the new version (beta3).
Please check for possible new bugs.

Gilles
NickHope wrote on 6/2/2007, 4:13 AM
Rosebud you're the man. If only software companies responded this quickly :)

It's working well. Just one thing though. When the window is made smaller you lose some of the tick boxes and the exit script button. And in particular the scrollbar is lost. Can you make those adjust position and remain inside the smaller window?
Tinle wrote on 6/2/2007, 4:50 AM
Gilles

"To install the script, just copy the DLL in Vegas’s script directory."

What determines the best choice for when to choose the file extension ".cs", ".js", or in this case "'dll" ?

Tinle
Rosebud wrote on 6/2/2007, 2:01 PM
Next version (Beta4) :

New features :
-You can reorder columns (drad & drop)
-Resizing Window keep all controls visible (but now, there is a minimum window size)

I need to know if there is some Checkbox needing to be checked by default (a French user ask for this with the “List selected Events only” checkbox. Good idea or not ?).


Tinle>”What determines the best choice for when to choose the file extension ".cs", ".js", or in this case "'dll" ?

.js is for Jscript
.cs is for Csharp Script
.dll if for pre-compiled scripts.
You don’t need to choose file extension. Just copy the file.
NickHope wrote on 6/2/2007, 10:29 PM
It's getting better and better Rosebud.

I need to know if there is some Checkbox needing to be checked by default (a French user ask for this with the “List selected Events only” checkbox. Good idea or not ?).

Personally, for me, no. I will be using this just for finding events by filename in a big busy project.

Also personally I would prefer it to remain on top of the Vegas window but underneath other windows belonging to other programs that I have open. For example I just opened MediaMonkey and the little Go To Event Window is still on top of it even though the rest of Vegas is underneath it. I don't suppose it's possible to make this window dockable in Vegas is it?

Also any way for it to remember how the user has set it up for next time? Window size, column order etc.. I guess that might be complicated.
Rosebud wrote on 6/2/2007, 11:45 PM
>"I don't suppose it's possible to make this window dockable in Vegas is it?"

I don’t think so.

>"Also any way for it to remember how the user has set it up for next time? Window size, column order etc.. I guess that might be complicated."

Not very complicated. But I need to learn more about Framework.
I add this to my list of Users's wishes ;)
rmack350 wrote on 6/3/2007, 2:12 AM
It's late and I haven't read through the other responses so forgive me if I'm repeating someone else.

Since this can select events and then keep adding to the list of selected events, could it have the edit details field of "selected" so that a user could easily see what's selected and then deselect some things?

Yes, you could just set the actual edit details window to show selected events, but it's be more elegant if the field were shown in the Go To Event window.

Rob Mack
Rosebud wrote on 6/3/2007, 1:59 PM
Go to Event beta5

Many changes in this version:

-New “select” column added to show if Events are selected or not.
-The checkbox “Select Event” gone. Now to select an Event, right clic the Event line.
-“Select Event’s group » checkbox replaced by “Select/Deselect Event’s group ” checkbox. This allow to select or deselect event’s group when right clic a line.
-and few others minor changes.
-No change to go to Event > Double clic a line.
NickHope wrote on 6/3/2007, 11:32 PM
All good :) The right click is cool.

A question... The single click on an event line appears to do nothing except highlighting so can you make it go to the event just with a single click on the event line instead of double click? I ask this because you have made a single right click do something so I assume a single left click can be made to do something.
Rosebud wrote on 6/4/2007, 1:37 AM
At this time, I prefer to keep a double-click to go to Event. I think just highlighting a line, make this line more readable (and when we are sure this is the right Event, we make a double-click).
NickHope wrote on 6/4/2007, 2:46 AM
No problem Rosebud, I understand your thinking.

While you are in full flight with scripting, I wonder if you could take a look at another script idea that I've just posted on the scripting forum.