I am running Vegas 4.0d and seem to have found a scripting bug.
First, let me tell you what I am trying to do. I have a long clip on a single video and audio track that I am using regions to render to smaller clips. The script takes each region and renders the region to a new file using the region name as the file name. What I want to do is to maintain the original timecode from the source clip in the destination clip file. I can access the original timecode via the MediaPool just fine.
To render the new file with the same starting timecode as the original, I set the RulerProperties.StartTime to the original timecode starting point. Then I render the file. This method works when I do it manually, but does not work when I do it via the script. With the script, I always get 00:00:00:00 as the Timecode In for the resulting rendered file. I have even tried putting a UpdateUI method after setting the StartTime and it does appear to correctly set the timeline's starting timecode in the UI.
My ultimate goal with this script is to capture a complete DV tape, use the Vegas timeline to mark the regions that I want to keep, then render these regions as new DV files keeping the original timecode, tape name, and capture info. Currently, the tape name and other capture info does not appear to have any API to set it in a render.
The reason for doing this is to reduce wear and tear on tapes by not having to move them back and forth to set capture points in Vegas Capture, but still end up with just the parts of the tape that I need. After I cut the big clip up, I delete the big clip to save hard disk space. I want to keep the original time code and tape info so that, if necessary, I can quickly go back to the source tape to recapture without having to search the entire tape.
Currently, the only way that I see to keep this info in rendered clips is to put the info into the SummaryProperties.Comments field. Then the only way to view the info is via the explorer's properties menu command. This works, but is not ideal.
If there are any other methods available in Vegas please let me know. If not, it would be good to add APIs for this purpose in future versions.
Thanks,
Randall
First, let me tell you what I am trying to do. I have a long clip on a single video and audio track that I am using regions to render to smaller clips. The script takes each region and renders the region to a new file using the region name as the file name. What I want to do is to maintain the original timecode from the source clip in the destination clip file. I can access the original timecode via the MediaPool just fine.
To render the new file with the same starting timecode as the original, I set the RulerProperties.StartTime to the original timecode starting point. Then I render the file. This method works when I do it manually, but does not work when I do it via the script. With the script, I always get 00:00:00:00 as the Timecode In for the resulting rendered file. I have even tried putting a UpdateUI method after setting the StartTime and it does appear to correctly set the timeline's starting timecode in the UI.
My ultimate goal with this script is to capture a complete DV tape, use the Vegas timeline to mark the regions that I want to keep, then render these regions as new DV files keeping the original timecode, tape name, and capture info. Currently, the tape name and other capture info does not appear to have any API to set it in a render.
The reason for doing this is to reduce wear and tear on tapes by not having to move them back and forth to set capture points in Vegas Capture, but still end up with just the parts of the tape that I need. After I cut the big clip up, I delete the big clip to save hard disk space. I want to keep the original time code and tape info so that, if necessary, I can quickly go back to the source tape to recapture without having to search the entire tape.
Currently, the only way that I see to keep this info in rendered clips is to put the info into the SummaryProperties.Comments field. Then the only way to view the info is via the explorer's properties menu command. This works, but is not ideal.
If there are any other methods available in Vegas please let me know. If not, it would be good to add APIs for this purpose in future versions.
Thanks,
Randall