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); Back to post
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); } 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 👍 Thiago_Sase wrote on 8/31/2024, 3:18 PM @Gid Good to know. Thanks✌️ 1