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.

CPU: Intel i9-9900KS 4GHz, (UHD Graphics 630, driver: 27.20.100.8581)
MB: ASUS TUF Z390-PLUS Gaming,
MEM.: 32 GB Ram, DDR4-3200
GPU: Nvidia GTX 1660 SUPER, (driver 451.77)
Storage: SSD 970 EVO Plus 500GB M.2, SSD 860 EVO Series 1TB, Toshiba 3TB SATA,
OS: WIN 10 Pro, 1909
Monitor: HP243i 1920x1200 / BenQ G2200W 1680x1050
NLE: Vegas Pro11-15+17,18 Heroglyph4, RespeedR
Camcorder: Pana HDC SD909, Sony FDR-AX53

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, W10 home version 2004 build 19041.264, i7 9700 4.7Ghz,16 DDR4 GB RAM, Gef. GTX 1660 Ti.
Laptop  :Asus ROG GL753VD, W10 home version 2004 build 19041.264, CPU i7 7700HQ, 8 GB RAM, GeF. GTX 1050 (2 GB) + Int. HD Graphics 630(2GB).VP 17,18 and VMS PL 16,17 are installed, all latest builds
Both Nvidia GPU's have driver version 456.38 Studio Driver.
TV      :LG 4K 55EG960V

My slogan is: BE OR BECOME A STEMCELL DONOR !!!

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 :)