Having a problem with the event.Copy function. Recently, I wrote a small script that does an event copy of an event then create a new event based upon that copy (using event.Copy). Unfortunately, for some reason, if the source event is split, the eventCopy function does not grab the correct source "frame".
The photosnapshot.js script is available here: http://www.sundancemediagroup.com/help/kb/kb_download.asp?id=380
To test the theory, simply open a new project, add an AVI file, the run the photosnapshot script. Next, split the source track the run the script again (with the Vegas cursor past the split). Place a marker at the beginning of the snapshot frame then another at the end of the photo event (just before the dissolve). Compare the two frames and you will notice the source frame is not the one copied to the photo track.
Could someone please help isolate why the eventCopy function is not working properly? I have been thru the code and don't see anything obvious. My only guess is an internal Vegas cursor is set each time the script gets run and I am not resetting it.
Thanks for any help,
-Ron
The photosnapshot.js script is available here: http://www.sundancemediagroup.com/help/kb/kb_download.asp?id=380
To test the theory, simply open a new project, add an AVI file, the run the photosnapshot script. Next, split the source track the run the script again (with the Vegas cursor past the split). Place a marker at the beginning of the snapshot frame then another at the end of the photo event (just before the dissolve). Compare the two frames and you will notice the source frame is not the one copied to the photo track.
Could someone please help isolate why the eventCopy function is not working properly? I have been thru the code and don't see anything obvious. My only guess is an internal Vegas cursor is set each time the script gets run and I am not resetting it.
Thanks for any help,
-Ron