I'd have thought I'd have heard about this before but I can't explain the problem I'm having any other way except that using the script below is causing (maybe) more instability in VP 17?
A few days ago I found and started using the script below as I had a lot of events and got tired of setting the fade in and out manually as I made changes to my project.
Since then I've had half a dozen occurrences where the preview window hangs. The UI is responsive, I can save my project but the preview window never updates and the frame number display stops updating except for the "skipping frames" indicator which keeps cycling through it's "..." cycle as though it's skipping frames.
I have to kill VP and it's dependent processes and restart.
I very literally have not changed anything else in my system or project except for the addition, removal and moving around of some stills. I'm not using any fx more complicated than pip and vignette and all fx are VP stock. According to Win10 the last update that was installed was on 4/15
I'm triggering the script using a customized Happy Otter icon.
I've never had this happen before where previewing hangs but the rest of the UI is responsive. Usually this kind of thing results is a white-screen hang if output stops.
I can't for the life of me think of a good reason why the script would cause a preview hang but that's the only change I've made since the hangs started.
Thoughts?
/**
* This script will add a 1/2 second Fade In and out to all selected events.
*
* Written By: Edward Troxel
* Copyright 2016 - JETDV Scripts
* Modified: 08-26-2016
* Converted to .CS and new Vegas namespace
* FadeInOut1Second.cs
**/
using System;
using ScriptPortal.Vegas;
public class EntryPoint
{
Vegas myVegas;
public void FromVegas(Vegas vegas)
{
myVegas = vegas;
foreach (Track track in myVegas.Project.Tracks)
{
foreach (TrackEvent trackEvent in track.Events)
{
if (trackEvent.Selected)
{
trackEvent.FadeIn.Length = new Timecode(500);
trackEvent.FadeOut.Length = new Timecode(500);
}
}
}
}
}