Set the Duration of a Solid Color?

Thiago_Sase wrote on 8/31/2024, 2:10 PM

@jetdv Hello Sir, please, how I write in the code if I want to change the duration of a solid color?
I tried this, but it's not working;
 

Timecode duration = Timecode.FromSeconds(120);



 

Comments

jetdv wrote on 8/31/2024, 2:47 PM

Yeah, that's not the way to do it. Make sure "evnt" points to that generated media event and see if this works:

            if (evnt.ActiveTake.Media.IsGenerated())
            {
                evnt.ActiveTake.Media.Length = Timecode.FromSeconds(120);
            }

 

Thiago_Sase wrote on 8/31/2024, 3:04 PM

@Gid Hi, I had no idea either of how to set that duration to any value.😃 And I didn't know until now about "Trim Event to Include All Frames". There is always something new to learn about Vegas Pro. Thanks for the tip.

Thiago_Sase wrote on 8/31/2024, 3:05 PM

@jetdv Sir, that was the solution, it worked! Thank you very much.

 

if (evnt.ActiveTake.Media.IsGenerated())
            {
                evnt.ActiveTake.Media.Length = Timecode.FromSeconds(120);
            }

 

Last changed by Thiago_Sase on 8/31/2024, 3:07 PM, changed a total of 1 times.

OS: Windows 10 22H2
CPU: Intel Core I7 12700
MEMORY: 32GB DDR4 3200MHz
GHAPHIC CARD: RTX 3060 8GB
HARD DRIVES: SSD for System and M.2 for Media Files

Gid wrote on 8/31/2024, 3:12 PM

@Thiago_Sase Hi, sorry I edited my comment but deleted it somehow 🙃🤷‍♂️😂,

Yep that Switch option I've mentioned before & it's surprising how many don't know or use it,

It's in the Properties dialogue too 👍

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

 

Thiago_Sase wrote on 8/31/2024, 3:18 PM

@Gid Good to know. Thanks✌️