Version 2.0 of the .net Framework (which Vegas 7 now uses) has a few changes which will break code that worked in .net 1.1. I've had to make minor changes to a couple of the sample scripts. Are they not working for you?
Can you point us to some examples of scripts that have this problem? If not, can you provide the details of the errors which are available if you click the "Details >>" button in the error message dialog.
I must have been hallucinating---I could have sworn that during installation of 7.0 that I saw something about installing Net 2.0----Anyhow, I installed it from MS website and most of my scripts are now running---Sorry for the false alarm.
I have a script that works in Vegas 6 but does not work in 7. I do have Net Framework 2.0 installed. The script is meant to render regions and use the region name in the subsequent rendered file names. Here's the details on the error message:
C:\Program Files\Sony\Vegas 7.0\Script Menu\Batch Render Using Region Names.cs(175) : Warning as Error: 'System.IO.Path.InvalidPathChars' is obsolete: 'Please use GetInvalidPathChars or GetInvalidFileNameChars instead.'
C:\Program Files\Sony\Vegas 7.0\Script Menu\Batch Render Using Region Names.cs(194) : Warning as Error: 'System.IO.Path.InvalidPathChars' is obsolete: 'Please use GetInvalidPathChars or GetInvalidFileNameChars instead.'
Now this, as with MOST IT stuff, I don't understand.
I have both 1.1 and 2 of .Netframe on my computer. Why shouldn't, if a script wants it, pick the one it wants - duoah? Why isn't it that simple? Why all the issue?
Hey guys I am NOT saying you DON'T have a problem, but why should/would does V7 compound it? Please could someone explain that to me?
> C:\Program Files\Sony\Vegas 7.0\Script Menu\Batch Render Using Region Names.cs(175) : Warning as Error: 'System.IO.Path.InvalidPathChars' is obsolete: 'Please use GetInvalidPathChars or GetInvalidFileNameChars instead.'
That error means that in 2 place in the code (because you received the error twice) there is a call to System.IO.Path.InvalidPathChars() and you need to change it to GetInvalidPathChars(). This is a .net 2.0 change that the original script writer should make to be sure the code is compatible with .net 2.0.
> Why shouldn't, if a script wants it, pick the one it wants - duoah? Why isn't it that simple? Why all the issue?
Because the .net framework is a run-time that the script executes on top of. The script doesn't get to choose the run-time because the script doesn't exist before the run-time is established. Something else gets the run-time going and places the script in it. In this case, Vegas 6 gets a .net framework 1.1 run-time and then starts the script. Vegas 7 gets a .net framework 2.0 run-time and then starts the script. It is Vegas that chooses the run-time and not the script.
Think of it this way: The script is an application and the .net framework is an operating system. Does the application get to choose what operating system it runs on? No, the operating system must be installed and running first and then application just runs on it. This is the same relationship as between scripts and the .net framework. the framework "hosts" the script and the host must exist before the script can run so it's too late to determine the hosting environment by the time the script is run. Make sense?
So what is happening is that Vegas cannot discern what it wants. It ONLY takes what is offered-up? Offered-up from Booting-Up the PC? . . well if a script requires 2 over 1.1 . . .eh . .. eh . .. eh . .. ok. White flag here . .
Me having 1.1 and 2.0 "installed" is of little consequence, value or convenience then?
Is there a "fixed" copy of the Batch Render GUI script? I'm trying to change the two lines, but my details don't give what I should be replacing - only what I should be replacing with:
E:\Program Files\Sony\Vegas 7.0\Script Menu\BatchRenderGUI.js(189) : Deprecated: Please use GetInvalidPathChars or GetInvalidFileNameChars instead.
> Is there a "fixed" copy of the Batch Render GUI script?
BatchRenderGUI.js is NOT a Sony script. The Sony batch render script is BatchRender.cs and works fine. You might want to edit the script to see if the author put their name in the comments and then contact the author and ask them for a fix.