Wanting to create a script, that after selecting/highlighting a crossfade, i then select the script that opens up the transition properties..... Tried creating this one myself but it's throwing errors, Would appreciate any assistance in getting it working properly:
using ScriptPortal.Vegas;
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
// Loop through all video events on the timeline
foreach (Track track in vegas.Project.Tracks)
{
if (track.IsVideo())
{
foreach (TrackEvent trackEvent in track.Events)
{
VideoEvent videoEvent = (VideoEvent)trackEvent;
// Check if the event is a transition
if (videoEvent.IsTransition)
{
Transition transition = videoEvent.Transition;
// Modify transition properties example:
transition.FadeOutLength = Timecode.FromMilliseconds(500); // Set fade out length
transition.FadeInLength = Timecode.FromMilliseconds(500); // Set fade in length
transition.Alignment = 0.5; // Set alignment
// You can set other properties like easing, opacity, etc.
}
}
}
}
}
}