www.jetdv.com Forum Index Edward Troxel
Vegas Scripting and Newsletters
Home of Excalibur and Montage Magic
 
 FAQ   Search   Memberlist   Usergroups   Register   Profile 
 Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Update Scripts from V5 to V6??

 
Post new topic   Reply to topic    www.jetdv.com Forum Index -> Scripting FAQ
View previous topic :: View next topic  
Author Message
Richiedude



Joined: 11 Aug 2005
Posts: 6

PostPosted: Thu Aug 11, 2005 3:01 pm    Post subject: How to Update Scripts from V5 to V6?? Reply with quote

I have a couple scripts I use for V5 that I want to work in V6.

Is there documentation somewhere or does anyone know how to edit scripts that work in V5 so they will work in V6???
Back to top
View user's profile Send private message
Edward Troxel
Site Admin


Joined: 14 Jul 2004
Posts: 5475

PostPosted: Thu Aug 11, 2005 3:38 pm    Post subject: Reply with quote

Your Vegas 5 script should simply work in Vegas 6. However, you may need to copy them so Vegas 6 can see them. Simply copy them from the Vegas 5.0\Script Menu folder over to the Vegas 6.0\Script Menu folder and all should be fine.
Back to top
View user's profile Send private message Send e-mail
Richiedude



Joined: 11 Aug 2005
Posts: 6

PostPosted: Thu Aug 11, 2005 6:04 pm    Post subject: Reply with quote

I did that - the script is in the correct V6 folder.

The script runs, but does not work correctly.

Check it out for yourself, it is the Barronizer Script I downloaded from VASST.

Works fine in V5, but in V6 does not function correctly in chopping up the video.

Try it!
Back to top
View user's profile Send private message
Edward Troxel
Site Admin


Joined: 14 Jul 2004
Posts: 5475

PostPosted: Thu Aug 11, 2005 6:45 pm    Post subject: Reply with quote

It's because of this line:
Code:
node.AdjustStartLength(tcCounter, nodeTC, true);

It behaves differently in Vegas 6 than in Vegas 5 (I've had to work around that problem in Excalibur).

I'm not exactly sure what that script does or how it works (without detailed tracing of the code) but can say that the above section is causing the problem. Try this and see if it makes a difference - Replace the above with:
Code:
Timecode NewOffset = node.ActiveTake.Offset + nodeTC;
node.AdjustStartLength(tcCounter, nodeTC, true);
node.ActiveTake.Offset = NewOffset;

Now, this is just a guess but I'm trying to properly adjust the offset that is not being properly set by the AdjustStartLength command. If the above does not work as expected, change the first line to SUBTRACT nodeTC. If it still doesn't behave as expected, totally remove the addition or subtraction of nodeTC.

Let me know if any of the above works. If not, further tracing will be required.
Back to top
View user's profile Send private message Send e-mail
Richiedude



Joined: 11 Aug 2005
Posts: 6

PostPosted: Thu Aug 11, 2005 10:03 pm    Post subject: Reply with quote

After doing that I got an exception trying to run it. Details:


Compilation error on line 219:

The list of attributes does not apply to the current context


Compilation error on line 56:

Variable 'BarronizerDialog' has not been declared


System.ApplicationException: Failed to compile script: 'C:\Program Files\Sony\Vegas 6.0\Script Menu\Barronizer_10.js'
at Sony.Vegas.VSAManager.Compile()
at Sony.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)
Back to top
View user's profile Send private message
Edward Troxel
Site Admin


Joined: 14 Jul 2004
Posts: 5475

PostPosted: Fri Aug 12, 2005 2:13 am    Post subject: Reply with quote

Oops, this line is wrong:

Timecode NewOffset = node.ActiveTake.Offset + nodeTC;

Instead of "Timecode" it should be "var" as follows:

var NewOffset = node.ActiveTake.Offset + nodeTC;
Back to top
View user's profile Send private message Send e-mail
Richiedude



Joined: 11 Aug 2005
Posts: 6

PostPosted: Fri Aug 12, 2005 4:47 pm    Post subject: Reply with quote

That did the Trick!

thanks.

Maybe you should upload that to VASST as an update for anyone else who likes & uses that script.
Back to top
View user's profile Send private message
Edward Troxel
Site Admin


Joined: 14 Jul 2004
Posts: 5475

PostPosted: Fri Aug 12, 2005 4:59 pm    Post subject: Reply with quote

If anybody needs the revised version, it can be found here:

http://www.jetdv.com/scripts/Barronizer_10(v6).js
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    www.jetdv.com Forum Index -> Scripting FAQ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group