Replacing the Rendering Window

MorelleNoir wrote on 11/25/2018, 7:56 AM

Good day to all of you,

I am trying to replace the rendering-dialogue of Vegas 14 pro (only when my script is used to render) as I want to display more information than the standard window displays.
I have completed a function to display my custom form in C# and hooked into the render-events to display the rendering progress, all of this works fine.

My problems are the following:
a) How do I cancel a render via script?
b) Everytime I start to render, my script is pushed into the background and Vegas' default dialogue is brought up. Is it possible to deactivate the Vegas dialogue and use my own or do I have to find a workaround for that?

Thanks in advance
MorelleNoir

P.S.: When looking for an answer I had to skim through many pages of "best render-settings" and so forth, so if this has already been answered, I apologize for asking again :)

Comments

MorelleNoir wrote on 11/25/2018, 2:43 PM

I have found a solution for at least one and a half of my problems.
a) A render can be canceled by invoking CancelAsynchronousTasks() from the Vegas-Class.
b) My Form will not be minimized if I simply let the MainWindow of Vegas own my Form, using Form.Show(Vegas.MainWindow) where Form is the required Form an Vegas is the instance of the Vegas-Class.
Though I have not yet figured out how to disable the default render-window, I remain vigilant and will test this (for all those that want an answer for that exact same question) :)