VP 22, Why don't Animated Text events automatically adjust length?

anthony-chiappette wrote on 2/19/2025, 10:47 PM

Really not specific to any particular version, but is there a reason why the length of titles and text events does not get automatically updated when the length is changed on the timeline?

Titles and text, events are created with a default of 5 seconds in length. Generally I stretch them out to a longer length, but then I have to go into the properties and click the icon to match the time of the event - this is important for animations to work correctly. Why do I have to manually update every event to match the timeline? Why doesn't the event length get updated automatically when I increase or reduce the size on the timeline?

Is there a setting to allow this to happen automatically?

 

Last changed by anthony-chiappette

ASUS Prime Z590-A Motherboard with Intel Core i7 11700 8 Core / 16 Thread 2.50GHZ, 64GB Crucial DDR4 3200( 4 x 16GB), nVidia GeForce GTX1650Super 4GB DDR5, SoundBlaster X AE5 soundcard, 3 x 4TB Samsung 860 EVO SATA 3 SSD, 2 x 8TB Samsung 870 QVO SATA 3 SSD, 1 x 2TB Samsung 980 Pro NVME PICE4 SSD, 2 X WD 4 TB NVME PCIE3 SSD, 2 X Viewsonic monitors, LG Blu-Ray writer. Windows 11 (latest build), currently using Vegas Pro Edit 22 latest build.

Comments

jetdv wrote on 2/20/2025, 8:40 AM

It's just a generated media and all generated media are the same. When created, they have a "Length" just like all of your video files. If you make it longer on the timeline, the "length" doesn't change unless you tell it to (unlike with video files). If you have an animated title and you need to animate it multiple times, this would allow you to do that my just making it longer on the timeline. However, if you want it to match, you do need click the button you indicated or type in the new length in the box you circled. You could use a script and have it change all titles whose length does not match the event length to change the length so it does match. I can see pros/cons both directions. For the titles I create, I can typically make them longer without changing the "length" and not see a difference as I virtually never use the animations. You might post this in the feature request list.

Grazie wrote on 2/20/2025, 9:02 AM

@jetdv - good job Edward.

bvideo wrote on 2/20/2025, 10:08 AM

When using ctrl + drag (on the end of the clip) to change length, the animation key frames move proportionately. Is that what you wanted @anthony-chiappette ? The length displayed in the "media generator" display doesn't change, but maybe the result is the same for your purpose?

jetdv wrote on 2/20/2025, 10:25 AM

This script will take ANY select Generated Media and change the "length of the media" to match the "length of the event."

using System;
using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Drawing;
using System.Runtime;
using System.Xml;
using ScriptPortal.Vegas;

namespace Test_Script
{
    public class Class1
    {
        public Vegas myVegas;

        public void Main(Vegas vegas)
        {
            myVegas = vegas;

            foreach(Track myTrack in myVegas.Project.Tracks)
            {
                if (myTrack.IsVideo())
                {
                    foreach (VideoEvent vEvent in myTrack.Events)
                    {
                        if (vEvent.Selected && vEvent.ActiveTake.IsGenerator)
                        {
                            vEvent.ActiveTake.Media.Length = vEvent.Length;
                        }
                    }
                }
            }
        }

    }
}

public class EntryPoint
{
    public void FromVegas(Vegas vegas, string scriptFile, XmlDocument scriptSettings, ScriptArgs args)
    {
        Test_Script.Class1 test = new Test_Script.Class1();
        test.Main(vegas);
    }
}

 

anthony-chiappette wrote on 2/20/2025, 2:53 PM

Thank you, jetdv. I wouldn't know how to go about using this. I've never used scripts before. Could you please explain how I would "install" and use this script?

ASUS Prime Z590-A Motherboard with Intel Core i7 11700 8 Core / 16 Thread 2.50GHZ, 64GB Crucial DDR4 3200( 4 x 16GB), nVidia GeForce GTX1650Super 4GB DDR5, SoundBlaster X AE5 soundcard, 3 x 4TB Samsung 860 EVO SATA 3 SSD, 2 x 8TB Samsung 870 QVO SATA 3 SSD, 1 x 2TB Samsung 980 Pro NVME PICE4 SSD, 2 X WD 4 TB NVME PCIE3 SSD, 2 X Viewsonic monitors, LG Blu-Ray writer. Windows 11 (latest build), currently using Vegas Pro Edit 22 latest build.

Gid wrote on 2/20/2025, 3:13 PM

Thank you, jetdv. I wouldn't know how to go about using this. I've never used scripts before. Could you please explain how I would "install" and use this script?

@anthony-chiappette Hi, read my comment in this post https://www.vegascreativesoftware.info/us/forum/can-certain-default-settings-be-changed--148322/#ca933010

Vegas Pro 18 - 22
Vegas Pro/Post 19
Boris Continuum & Sapphire, 
Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 
Boris Optics,
NewBlue TotalFX
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans
Dell SE3223Q 31.5 Inch 4K UHD (3840x2160) Monitor, 60Hz, & an Acer 24" monitor.

At the moment my filming is done with a Samsung Galaxy S23 Ultra 5G & a GoPro Hero11 Black

I've been a Joiner/Carpenter for 40yrs, apprentice trained time served, I don't have an apprentice of my own so to share my knowledge I put videos on YouTube.

YouTube videos - https://www.youtube.com/c/Gidjoiner

 

jetdv wrote on 2/20/2025, 5:57 PM

@anthony-chiappette copy all of the text in the gray box and paste it into Notepad.

Create a folder name "Vegas Script Menu" in "My Documents"

Save the file from Notepad into "Vegas Script Menu" and call it "Adjust Media Generator Length.cs"

Start VEGAS Pro. Put a Media generator on the timeline, change it's length, make sure it's selected, and go to Tools - Scripting - Adjust Media Generator Length

That will then adjust the length to that selected media generator. It will apply to ALL SELECTED media generator events. You can even place it as a button on the toolbar. Please go here to see more details (you might want to go back to the very first videos there)

https://www.youtube.com/@JetDVScripts/videos

anthony-chiappette wrote on 2/24/2025, 12:09 AM

Thank you so much. I've created the cs file and saved as instructed. I will try it out on my next project.

 

UPDATE: I did not see the script in Vegas. However, there is already a script there named "Resize Generated Media". I did see the above script after I did a rescan. But what is the Resize Generated Media script?

Last changed by anthony-chiappette on 2/24/2025, 12:16 AM, changed a total of 1 times.

ASUS Prime Z590-A Motherboard with Intel Core i7 11700 8 Core / 16 Thread 2.50GHZ, 64GB Crucial DDR4 3200( 4 x 16GB), nVidia GeForce GTX1650Super 4GB DDR5, SoundBlaster X AE5 soundcard, 3 x 4TB Samsung 860 EVO SATA 3 SSD, 2 x 8TB Samsung 870 QVO SATA 3 SSD, 1 x 2TB Samsung 980 Pro NVME PICE4 SSD, 2 X WD 4 TB NVME PCIE3 SSD, 2 X Viewsonic monitors, LG Blu-Ray writer. Windows 11 (latest build), currently using Vegas Pro Edit 22 latest build.

anthony-chiappette wrote on 2/24/2025, 1:56 AM

I cannot thank you enough! This works perfectly, and is going to save me so much time.

ASUS Prime Z590-A Motherboard with Intel Core i7 11700 8 Core / 16 Thread 2.50GHZ, 64GB Crucial DDR4 3200( 4 x 16GB), nVidia GeForce GTX1650Super 4GB DDR5, SoundBlaster X AE5 soundcard, 3 x 4TB Samsung 860 EVO SATA 3 SSD, 2 x 8TB Samsung 870 QVO SATA 3 SSD, 1 x 2TB Samsung 980 Pro NVME PICE4 SSD, 2 X WD 4 TB NVME PCIE3 SSD, 2 X Viewsonic monitors, LG Blu-Ray writer. Windows 11 (latest build), currently using Vegas Pro Edit 22 latest build.

jetdv wrote on 2/24/2025, 9:03 AM

@anthony-chiappette "Resize Generated Media" will resize (the physical width/height) of the media if you've changed project sizes. Say a project was started at 1920x1080 and you've added several generated medias. Now you've changed it to 4096x2304. That script will change all the Generated Media to now be 4096x2304 instead of 1920x1080.

anthony-chiappette wrote on 2/24/2025, 6:20 PM

Thanks for explaining.

ASUS Prime Z590-A Motherboard with Intel Core i7 11700 8 Core / 16 Thread 2.50GHZ, 64GB Crucial DDR4 3200( 4 x 16GB), nVidia GeForce GTX1650Super 4GB DDR5, SoundBlaster X AE5 soundcard, 3 x 4TB Samsung 860 EVO SATA 3 SSD, 2 x 8TB Samsung 870 QVO SATA 3 SSD, 1 x 2TB Samsung 980 Pro NVME PICE4 SSD, 2 X WD 4 TB NVME PCIE3 SSD, 2 X Viewsonic monitors, LG Blu-Ray writer. Windows 11 (latest build), currently using Vegas Pro Edit 22 latest build.