Changing the length of a media generator after dragging in

Juri.gm wrote on 9/23/2023, 6:16 AM

Hello there,

I am working with Vegas for a long time now, but there is one thing that really annoys me and I haven't figured out how and if I can change that.

When I go to the "Media Generator"-Tab and want to drag in any of the generators, they always have a 10-second length. I work with really short clips, so it is completely unnecessary for me to have the full 10 seconds. I'd rather want the generator after dragging in to have a 2-second length or something like that.

Is there any way I can change that in the settings?

Thanks for answering and have a good one!

Comments

Reyfox wrote on 9/23/2023, 7:54 AM

Read this TOPIC.

I personally would rather have a default setting in the Preferences...

Last changed by Reyfox on 9/23/2023, 7:54 AM, changed a total of 1 times.

Newbie😁

Vegas Pro 22 (VP18-21 also installed)

Win 11 Pro always updated

AMD Ryzen 9 5950X 16 cores / 32 threads

32GB DDR4 3200

Sapphire RX6700XT 12GB Driver: 25.3.2

Gigabyte X570 Elite Motherboard

Panasonic G9, G7, FZ300

jetdv wrote on 9/23/2023, 8:48 AM

Create a selection area on the timeline, right-click it, and choose Insert Generated Media and it will be inserted at the length of the selection area.

Or, after dragging to the timeline, change it to the desired length and then open the Generated Media settings and click on the "Match Event Length" button at the top right.

 

Juri.gm wrote on 9/23/2023, 9:42 AM

Read this TOPIC.

I personally would rather have a default setting in the Preferences...

Thanks, I searched for an existing thread but couldn't find anything..

 

One guy there wrote:

Change "New still image length" in Editing Prefs, right-click on the track and Insert Text Media (or Gen. Media and choose).

What does he mean by Editing Prefs? I can't find anything like that

Juri.gm wrote on 9/23/2023, 9:44 AM

Create a selection area on the timeline, right-click it, and choose Insert Generated Media and it will be inserted at the length of the selection area.

Or, after dragging to the timeline, change it to the desired length and then open the Generated Media settings and click on the "Match Event Length" button at the top right.

 

Yes, that I know, but that is not a practical option. I need the preview of my presets before dragging them in :(

But thanks though!

vkmast wrote on 9/23/2023, 10:17 AM

@Juri.gm please see "New still image length" in Options menu > Preferences, Editing tab.

Cheers, One guy

Former user wrote on 9/23/2023, 10:24 AM

@vkmast Hi, mine is set at 5.000 (150 frames at 29.970fps) but Generated Media still comes at 10secs when dragged onto the timeline.

vkmast wrote on 9/23/2023, 10:38 AM

Did you right-click on the track? (please see the old thread and your comment there.)

@Former user

Former user wrote on 9/23/2023, 10:42 AM

@vkmast No I dragged it in as i said. Right click that does add it at 5secs (for my setting) I thought you were just ref to adding generated media in general.

PS I was taking into account @Juri.gm last comment "Yes, that I know, but that is not a practical option. I need the preview of my presets before dragging them in" that's why i thought you were ref to dragging in generated media,

vkmast wrote on 9/23/2023, 11:11 AM

To clarify, my original comment in the old thread - Change "New still image length" in Editing Prefs, right-click on the track and Insert Text Media (or Gen. Media and choose) - was from 2015 and to another user, not to Juri. No ref to dragging.

jetdv wrote on 9/23/2023, 1:19 PM

You really have three options (and I already gave you two of them). If you need to preview the presets, I see these three options:

1. Click and drag it to the timeline, change the length to the desire length, and use the option in the gen media dialog to "Match Event Length".

2. Type in the desired length in the gen media dialog and then change the timeline event length to match.

3. Create a selection area, right-click to insert the generated media, and then pick the preset you previously chose.

Here's a video showing all of these options.

Another option would be to use a script that could change an event length as needed.

Reyfox wrote on 9/23/2023, 2:01 PM

In the consumer editors that I have on my computer, I can set the length preference for it and everything I put on the timeline by dragging will be that length. If you have a lot of titles that you have to work with, it can be time consuming. Maybe a feature request to be able to designate a length like images.

Newbie😁

Vegas Pro 22 (VP18-21 also installed)

Win 11 Pro always updated

AMD Ryzen 9 5950X 16 cores / 32 threads

32GB DDR4 3200

Sapphire RX6700XT 12GB Driver: 25.3.2

Gigabyte X570 Elite Motherboard

Panasonic G9, G7, FZ300

jetdv wrote on 9/24/2023, 7:19 AM

@Reyfox or use a script that can add them at any length you wish to specify. For example a 15 second add:

            string genUID = "{Svfx:com.vegascreativesoftware:titlesandtext}"; //Magix Titles & Text
            PlugInNode plugIn = null;
            plugIn = myVegas.Generators.GetChildByUniqueID(genUID);

            Media media = new Media(plugIn);
            MediaStream stream = media.Streams.GetItemByMediaType(MediaType.Video, 0);
            VideoEvent newEvent = new VideoEvent(myVegas.Transport.CursorPosition, Timecode.FromSeconds(15));
            Mtrack.Events.Add(newEvent);
            Take take = new Take(stream);
            newEvent.Takes.Add(take);

 

Reyfox wrote on 9/24/2023, 9:14 AM

@jetdv thanks. The ability to come up with scripts in Vegas is wonderful. But the general user doesn't know how.

I think this is something that should be included in the Project Settings.

Newbie😁

Vegas Pro 22 (VP18-21 also installed)

Win 11 Pro always updated

AMD Ryzen 9 5950X 16 cores / 32 threads

32GB DDR4 3200

Sapphire RX6700XT 12GB Driver: 25.3.2

Gigabyte X570 Elite Motherboard

Panasonic G9, G7, FZ300

jetdv wrote on 9/24/2023, 9:41 AM

@Reyfox, not going to argue that it shouldn't be included in the preferences (not project settings.) However, there are solutions to the problem as shown in the video I posted as well as the scripting option. And, while I also agree that many general users don't know how to write the scripts, a quick request will let code like the above be known and used by general users. In fact, the code above came from one of my tutorials.

Juri.gm wrote on 10/2/2023, 10:40 AM

@Reyfox or use a script that can add them at any length you wish to specify. For example a 15 second add:

            string genUID = "{Svfx:com.vegascreativesoftware:titlesandtext}"; //Magix Titles & Text
            PlugInNode plugIn = null;
            plugIn = myVegas.Generators.GetChildByUniqueID(genUID);

            Media media = new Media(plugIn);
            MediaStream stream = media.Streams.GetItemByMediaType(MediaType.Video, 0);
            VideoEvent newEvent = new VideoEvent(myVegas.Transport.CursorPosition, Timecode.FromSeconds(15));
            Mtrack.Events.Add(newEvent);
            Take take = new Take(stream);
            newEvent.Takes.Add(take);

 

I guess I'll try this out. The other options are just not practical. I just want to look at my previews and then drag a 2 second long media into my project.

Thanks for the script