Cancelling a Render

MorelleNoir wrote on 3/8/2020, 3:57 PM

Heyho,

I was wondering if it were possible to cancel a render in the Magix Vegas scripting api?

I have tried a few things: Using the CancelAsynchronousTasks() function will do the job but every consecutive render will get cancelled as well. So if I cancel one render, use my script again and start rendering, that render will also get cancelled.

So I thought that I could use RenderArgs, which has a property called CancelRender. That one does nothing. When a render is in progress it does nothing, when I set it before rendering to true it does nothing, it basically does nothing.

Is there a way to cancel a render or will I have to live with simply not being able to with a script?

 

P.S.: I simply wanted to replace the render window (which may also be impossible)

Comments

walter-i. wrote on 3/8/2020, 4:12 PM

Have you ever tried the SEMW extension?
It adds an additional window to the render dialog where you can pause rendering.

j-v wrote on 3/8/2020, 4:17 PM

Which Vegas script are we talking about?

met vriendelijke groet
Marten

Camera : Pan X900, GoPro Hero7 Hero Black, DJI Osmo Pocket, Samsung Galaxy A8
Desktop :MB Gigabyte Z390M, W11 home version 24H2, i7 9700 4.7Ghz,16 DDR4 GB RAM, Gef. GTX 1660 Ti with driver
566.14 Studiodriver and Intel HD graphics 630 with driver 31.0.101.2130
Laptop  :Asus ROG Str G712L, W11 home version 23H2, CPU i7-10875H, 16 GB RAM, NVIDIA GeForce RTX 2070 with Studiodriver 576.02 and Intel UHD Graphics 630 with driver 31.0.101.2130
Vegas software: VP 10 to 22 and VMS(pl) 10,12 to 17.
TV      :LG 4K 55EG960V

My slogan is: BE OR BECOME A STEM CELL DONOR!!! (because it saved my life in 2016)

 

MorelleNoir wrote on 3/8/2020, 5:39 PM

First of all, thank you for the replies :)

I am looking for a way to cancel a render in the code and not via a different extension. I have written my own script for that but sadly that particular function still eludes me.

I am not talking about a script that is already in Vegas :)