Continue playback when running a script

richardbushell wrote on 11/22/2016, 6:47 PM

HI all, I have created a simple script in Vegas 14 to switch to Best or Preview modes, and this works fine EXCEPT it stops playback. Whereas if you just change preview mode using the built-in preview window dropdown playback continues without interruption.

Anyone know how to achieve this in a script too as I wish to switch modes via a keypress?

Comments

NickHope wrote on 11/22/2016, 10:18 PM

I don't think there's a way for playback to continue when you run a script, but I would love to be wrong. I have the same issue with a script that removes unused media and does a save. Regular saving allows playback to continue but the script stops it.

richardbushell wrote on 11/22/2016, 10:41 PM

HI Nick, I am now having success with:

public void FromVegas(Vegas vegas) {
        vegas.ResumePlaybackOnScriptExit = true;

First tests looks promising, but am testing some more tomorrow...

NickHope wrote on 11/22/2016, 10:50 PM

Oh cool. Please keep us informed!

VEGASDerek wrote on 11/23/2016, 9:33 AM

The other option is to write a compiled application extention.  Executing that should not stop playback.  But, using the ResumePlaybackOnScriptExit will also acheive this result.  

NickHope wrote on 3/7/2017, 12:57 AM

This post has an example script with this in Javascript.