Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: CropCirc1e on 2020-01-24, 10:37:41

Title: Showvfb maxscript
Post by: CropCirc1e on 2020-01-24, 10:37:41
Hi all,

It would be great if there was a parameter for whether the VFB is on or not because at the moment the CoronaRenderer.CoronaFp.showVfb can only be used to open the VFB.  I would like to be able to toggle this - at the moment I have a keyboard shortcut to open the VFB and I would like to be able to use the same keyboard shortcut to close it too.  Is this possible?

Thanks,
Park
Title: Re: Showvfb maxscript
Post by: mike288 on 2020-01-24, 10:42:00
The showVfb() function accepts bool parameter selecting whether VFB should be actually showed or closed (see https://corona-renderer.com/wiki/maxscript for details). It does not work?
Title: Re: Showvfb maxscript
Post by: CropCirc1e on 2020-01-24, 10:46:26
Hi,

I am not experienced with maxscript at all but in the listener it returns 0 whether the VFB is open or closed.  The boolean parameter works to open or close it but how would I implement this in a script that would allow me to use the same keyboard shortcut to toggle the VFB?

Thanks,
Park
Title: Re: Showvfb maxscript
Post by: Frood on 2020-01-24, 11:18:00
It does not work?

The issue here is, that you cannot query the state. Also see

https://forum.corona-renderer.com/index.php?topic=25658.0

Give us tools to create tools please.

Good Luck
Title: Re: Showvfb maxscript
Post by: rowmanns on 2020-01-27, 10:53:08
Hi,

I've logged this in our tracker and will discuss it with the devs.

Cheers,

Rowan

(Internal ID=450890423)