Comments

JohnnyRoy wrote on 8/17/2008, 4:58 AM
Hi Paul, I'm here. On line 16 you will see the following:

var fadeAmount : Timecode = new Timecode(1000);

That's the time specified in milliseconds. Just change the 1000 to 2000 for 2 seconds.

Alternately you can use the following syntax which is easier to read and understand:

var fadeAmount : Timecode = Timecode.FromSeconds(2.0);

Both will give you a 2 second fade.

~jr
Editguy43 wrote on 8/18/2008, 4:34 PM
Hello Mr, Rofrano

I thought that was the line but I did need clarification Thanks. when I tried to run the script i recieved an error below are the details of it. I do not understand perhaps I saved it wrong or something. I am running 8 Pro update B. let me know what you think.
Paul B

C:\Program Files\Sony\Vegas Pro 8.0\Script Menu\FadeEventInOut.js(1) : Invalid character
C:\Program Files\Sony\Vegas Pro 8.0\Script Menu\FadeEventInOut.js(2) : The list of attributes does not apply to the current context
C:\Program Files\Sony\Vegas Pro 8.0\Script Menu\FadeEventInOut.js(4) : The list of attributes does not apply to the current context
C:\Program Files\Sony\Vegas Pro 8.0\Script Menu\FadeEventInOut.js(5) : The list of attributes does not apply to the current context
JohnnyRoy wrote on 8/19/2008, 7:50 AM
You definitely saved it wrong. The (1) in the error means it doesn't like line 1 of the file which is usually a comment if I wrote it. The file should start with /** and end with } anything before or after those characters will mess it up.

I have seen anti-virus programs that add a header to any .JS file so that it won't execute. Check the file contents and see if this happened to you.

~jr
Editguy43 wrote on 8/19/2008, 3:54 PM
I reopened it and then resaved it from wordpad. when i ran it it worked just fine. Thanks for the help.

Paul B