Comments

jetdv wrote on 1/15/2009, 5:52 PM
Sounds like a good candidate for adding into Project Inspector!
Rosebud wrote on 1/15/2009, 11:18 PM
Thx to Edward for adding this feature to PI.
Pending, you can try this one.
Caution this CS script should give unpredictable result with stretched Event and Event with velocity envelope.


using System;
using Sony.Vegas;

public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
foreach (Track track in vegas.Project.Tracks)
foreach (TrackEvent evnt in track.Events)
{
if ((evnt.Takes.Count == 0)
||((evnt.ActiveTake.Media.AverageDataRate == 0) & (!evnt.ActiveTake.Media.IsGenerated()))
|| (evnt.ActiveTake.Length > evnt.Length))
continue;
evnt.Length = evnt.ActiveTake.Length;
}
}
}
CDM wrote on 1/16/2009, 6:50 AM
thank you. I will try that!
CDM wrote on 1/16/2009, 6:55 AM
beautiful! Thank you!