Script adds 1 second for Vegas2Handbrake - thx Ed!

MikeLV wrote on 6/10/2016, 7:33 PM
This script will add one second to the loop region which is very helpful when using the Vegas2Handbrake script. Please, don't thank me, thank Ed (jetdv) for providing this simple, yet very useful script to us.



using Sony.Vegas;

public class EntryPoint
{
Vegas myVegas;
Timecode offset = new Timecode("00:00:01:00"); //1 second

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

myVegas.SelectionLength = myVegas.SelectionLength + offset;
}
}

Comments

Steve_Rhoden wrote on 6/11/2016, 8:16 AM
Yes, handy when rendering Vegas2Handbrake...
Good post MikeLV.
Eagle Six wrote on 6/11/2016, 9:14 AM
Hi Mike,

Thank You for posting the script......however, I'm doing something wrong as it's not working!

I saved it off as 'Add 1 Second.cs'. It appears to run, but I can't see any addition in time.

Apparently I'm having some kind of mental block!! Thank You for any assistance.


Best Regards......George

System Specs......
Corsair Obsidian Series 450D ATX Mid Tower
Asus X99-A II LGA 2011-v3, Intel X99 SATA 6 Gb/s USB 3.1/3.0 ATX Intel Motherboard
Intel Core i7-6800K 15M Broadwell-E, 6 core 3.4 GHz LGA 2011-v3 (overclocked 20%)
64GB Corsair Vengeance LPX DDR4 3200
Corsair Hydro Series H110i GTX 280mm Extreme Performance Liquid CPU Cooler
MSI Radeon R9 390 DirectX 12 8GB Video Card
Corsair RMx Series RM750X 740W 80 Plus Gold power pack
Samsung 970 EVO NVMe M.2 boot drive
Corsair Neutron XT 2.5 480GB SATA III SSD - video work drive
Western Digitial 1TB 7200 RPM SATA - video work drive
Western Digital Black 6TB 7200 RPM SATA 6Bb/s 128MB Cache 3.5 data drive

Bluray Disc burner drive
2x 1080p monitors
Microsoft Window 10 Pro
DaVinci Resolve Studio 16 pb2
SVP13, MVP15, MVP16, SMSP13, MVMS15, MVMSP15, MVMSP16

MikeLV wrote on 6/11/2016, 12:42 PM
Eagle, are you sure it's not adding it? If your event is really long, you might not see the loop region increase unless you zoom in on the timeline. What version of Vegas are you using? I don't know if it works with anything less than 13 because that's what I'm using. Wish I could be of more help. Maybe Ed, the author of the script, will chime in.
Grazie wrote on 6/11/2016, 1:19 PM
1] You wont be able to see the Timed Selection being added to - you will see a "second" twitch added to the Selection.

2] This script wont "Undo". It doesn't figure in the UNDO lists - UNDO remains grayed-out. Other Scripts you can UNDO.

Working nice here - a small but valuable assist to my laziness!

Oh, I did a quickie PNG to go with it - anybody interested? I now have it up there on the ToolBar.

G
MikeLV wrote on 6/11/2016, 1:22 PM
Grazie, do you mean you made a button for the toolbar to run the script? If so, I'm very interested. Is it easy to add it to the toolbar?
Steve_Rhoden wrote on 6/11/2016, 1:22 PM
Everything is working fine Gentlemen.
And you have save it correctly Eagle Six..... Just remember after you create a loop
region over your entire project on the timeline, you then click the 1 second script, and
it simply extend the loop by an additional one second, and you will see it..That's it!

Very easy to add to the toolbar MikeLV, just drop the script in the script folder in
the Vegas directory with a png icon of the same name, Easy.
Grazie wrote on 6/11/2016, 1:29 PM
MLV - Yes. Just did one and added it to the Toolbar:



G
MikeLV wrote on 6/11/2016, 1:36 PM
Got it, that was easy. For anyone else reading, you then have to go to Options, Customize Toolbar to add the button to the toolbar. Just tested it and it works perfectly. This will be a big time saver when it comes time to convert all these DVD chapters to MP4 files. Thanks everyone!
Grazie wrote on 6/11/2016, 1:43 PM
I'm getting an UNDO buffer "bug"? Anybody else?

G
MikeLV wrote on 6/11/2016, 1:46 PM
No,, how do you get that to happen?
Grazie wrote on 6/11/2016, 2:28 PM
How? I click the UNDO button and get the Error. Why? I ain't got the foggiest!

G
Eagle Six wrote on 6/11/2016, 2:41 PM
Thanks Everyone, I have no idea why it appeared not to work earlier, when it works as expected now.

I made an '1S' icon, transparent background, letters in green, if anyone is interested.




Best Regards.....George

System Specs......
Corsair Obsidian Series 450D ATX Mid Tower
Asus X99-A II LGA 2011-v3, Intel X99 SATA 6 Gb/s USB 3.1/3.0 ATX Intel Motherboard
Intel Core i7-6800K 15M Broadwell-E, 6 core 3.4 GHz LGA 2011-v3 (overclocked 20%)
64GB Corsair Vengeance LPX DDR4 3200
Corsair Hydro Series H110i GTX 280mm Extreme Performance Liquid CPU Cooler
MSI Radeon R9 390 DirectX 12 8GB Video Card
Corsair RMx Series RM750X 740W 80 Plus Gold power pack
Samsung 970 EVO NVMe M.2 boot drive
Corsair Neutron XT 2.5 480GB SATA III SSD - video work drive
Western Digitial 1TB 7200 RPM SATA - video work drive
Western Digital Black 6TB 7200 RPM SATA 6Bb/s 128MB Cache 3.5 data drive

Bluray Disc burner drive
2x 1080p monitors
Microsoft Window 10 Pro
DaVinci Resolve Studio 16 pb2
SVP13, MVP15, MVP16, SMSP13, MVMS15, MVMSP15, MVMSP16