Is There A Way To Permanently "Disable Resample"

Comments

WayneM wrote on 3/23/2015, 2:11 PM
I just double-checked (no pun intended) and Options/Preferences/Editing does have "enable looping on event by default" Unchecked. Go figure.

So I caught that at sometime! I thought it was long before this current project got started. So either I'm wrong OR I started this project from an earlier file from before the Pref was changed. . .but that doesn't make sense either.

Thanks for reminding me that's where that setting is located.

Wayne
johnmeyer wrote on 3/23/2015, 7:07 PM
I just searched the API (VegasScriptAPI.html) and wasn't able to find any of that info, but they may be useful. Maybe I'm looking in the wrong place.You did try it, right? I tried it before I posted, and adding that one line does exactly what you want.
WayneM wrote on 3/23/2015, 7:30 PM
Sorry, at that time I hadn't yet put it in the script. First I wanted to see if I could track it down in the API so I didn't have to annoy you unnecessarily! :-)

Next, I put the line in, saved as a new script labeled to do both Resample Disable and Loop Disable. Works like a charm. . .of course.

The thing I've told myself to remember is that it make the change to ALL events with that property. I'm thinking there might be some Events where I have unintentionally had Loop enabled and that made a Title or something last as long as I wanted just by dragging and edge.

I'm going to search the Vegas Scripts area to find out how to create a button for my scripts on the Toolbar. I think I did that some years ago. That's easier than navigating the menu. And it seems that by the time I migrate to the next release I've forgotten how to do it. Creaky Brain Syndrome.

Thanks much again.

Wayne
johnmeyer wrote on 3/24/2015, 5:49 PM
Are you saying that you want to modify the script so that it only works on selected events, rather than ALL events? That is pretty easy to do. You must add an outer IF statement that tests for "if event is selected" and then only apply the two changes when that condition is true. You can also do a similar thing to only change events on selected tracks.

Rather than add a dialog, which takes more time, you can just have two scripts, one that changes everything, and the other one which changes selected events. Then, run whichever one you need at that moment. In essence, you are moving the choices in the dialog up to the toolbar (or wherever you keep your list of scripts).
TRJohnsen wrote on 4/8/2015, 1:02 PM
I have Sony Vegas pro version 13 and Movie Studio Platinum 13.
I do not know if this is possible in previous versions.
I mark all event on timeline, not the sound.
Or, hold ctrl.key and click to chose witch one you want to disable resample on.
Right-click, popup menu appears, here is a selection of switches.
Chose disable resample.
This disable resample at all event on timeline.


Newbee from Norway:)
johnmeyer wrote on 4/8/2015, 1:48 PM
Right-click, popup menu appears, here is a selection of switches.That sure is a lot easier than using my silly script. Thanks for sharing!
john_dennis wrote on 4/8/2015, 2:50 PM

@ TRJohnsen

"I do not know if this is possible in previous versions."

I verified that all versions of Vegas Pro 9 through Vegas Pro 13 allow one to disable resample as you described with a context sensitive right-click menu at the track level.

MikeyDH wrote on 5/20/2015, 2:22 PM
I copied and entered the disable resample scripts offered but keep getting an error message when trying to apply them to the timeline. Used both the .cs and .js extensions. Puzzled. Never had this problem before.
ritsmer wrote on 5/21/2015, 7:08 AM
... and after having got 2 new cameras with different Fps etc. this script is needed all the time here - and it works great (Vegas Pro 12) ...

If Vegas 14 comes with a setting to permanently kill that %¤#/ "smart" resample - then please consider this to be my preorder of V 14...

Edit: Jerry did you Smart Resample your post ?? :- ))
amendegw wrote on 5/21/2015, 8:05 AM
[I]"Jerry did you Smart Resample your post ??"[/I]Ha! I don't hang around this forum as much as I used to and realized my post from this morning was a duplicate of a post I made in March.

...Jerry
MikeyDH wrote on 5/21/2015, 12:04 PM
OK lets try this.....Error message details

C:\Program Files\Sony\Vegas Pro 13.0\Script Menu\Disable Resample.JS(1) : Syntax error. Write 'var identifier : Type' rather than 'Type identifier' to declare a typed variable


What is this telling me? Thanks
amendegw wrote on 5/21/2015, 2:12 PM
Bet you copied "Code Block:" from the post. Start on the next line.

...Jerry
NormanPCN wrote on 5/21/2015, 3:52 PM
"If Vegas 14 comes with a setting to permanently kill that %¤#/ "smart" resample - then please consider this to be my preorder of V 14..."

+1
MikeyDH wrote on 5/22/2015, 12:38 PM
You won the bet, Jerry...Thx much :^)
Joebb3 wrote on 4/6/2016, 8:42 PM
I'm guessing that scripts are a Vegas thing only? I can't find any way to access the script in MS Plat 13.
wwaag wrote on 4/6/2016, 10:20 PM
I'm guessing that scripts are a Vegas thing only?

Scripting is available only in the Pro versions of Vegas, not Movie Studio.
Gene Aum wrote on 4/8/2016, 10:33 PM
Strange thing happened: I put the script in the approprate folder, and successfully used it a few times.

After rebooting the computer the script file was no longer in the folder.

So, todayI re-copied the file and set the read-only bit. See if this happens again.

Does VP delete files from Vegas folders?

Very odd.

Steve
Chienworks wrote on 4/11/2016, 4:47 PM
"Correct me if I'm wrong, but isn't the re-sampling essential if one is mixing different source media formats, or have media that is different to the overall project specs ?"

Geoff, i don't think anyone ever directly answered your question, so here goes:

If the project frame rate doesn't match what's on the timeline, either through the source frame rate being different or the event being changed in speed, Vegas will resample. It's the physics of the thing and just has to be done. What that switch affects is how the resampling happens. I guess the name of the switch is misleading. The three choices really ought to be "force smart resample, auto smart resample, and disable smart resample".

Smart resampling (also a bad name because it's not very smart at all) blends adjacent frames together when the rates don't match. So if you put 30fps on a 24fps timelline, your output frames would be something like this:

output frame 1 = 80% source frame 1 + 20% source frame 2
output frame 2 = 60% source frame 2 + 40% source frame 3
output frame 3 = 40% source frame 3 + 60% source frame 4
output frame 4 = 20% source frame 4 + 80% source frame 5
output frame 5 = 80% source frame 6 + 20% source frame 7

at which time 5 original frames have been "squeezed" into 4 output frames and then the pattern repeats. 24fps in a 30fps project would be similar, but inside out, with 4 original frames being blended out into 5 output frames.

Resampilng "disabled" (actually smart resample disabled, with "dumb" resampling still happening) would be done this way:

output frame 1 = input frame 1
output frame 2 = input frame 2
output frame 3 = input frame 3
output frame 4 = input frame 4, input frame 5 dropped
output frame 5 = input frame 6

No blending happens. So, with what Vegas calls "resampling", you can end up with doubled images warbling in and out of the finished output. The attempt is to make the motion smoother, but the result looks ghostly. With resmapling disabled you always end up with single frames rather than blended frames, but at the expense of doubling or dropping a source frame which can result in ever so slightly jerky motion.

Some folks object more to the bending/doubling, while others object more to the jerkiness. It just seems that in reading the comments here far more fall into the first group than the second.
placeboing wrote on 7/10/2016, 9:48 PM
Thank you for the Disable script! This is great!