Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: cecofuli on 2013-08-30, 17:54:09

Title: Show VFB: need help for Macroscript
Post by: cecofuli on 2013-08-30, 17:54:09
As we know, Ondra published it as function.  We can now display VFB window in maxscript with: CoronaRenderer.showVfb()
Unfortunately, my knowledge as MAXScript is = 0
So, is there someone who can help us? =)

Thanks!
Title: Re: Show VFB: need help for Macroscript
Post by: rafpug on 2013-09-06, 21:41:44
Hello Francesco,

What it means to display the VFB in MAXScript ?

Ie you can save the image in script format ?
Title: Re: Show VFB: need help for Macroscript
Post by: rafpug on 2013-09-06, 21:44:42
or to save the scene in script format ?
Title: Re: Show VFB: need help for Macroscript
Post by: Ondra on 2013-09-06, 21:46:29
Code: [Select]
CoronaRenderer.CoronaFp.showVfb()
Title: Re: Show VFB: need help for Macroscript
Post by: Tiago4D on 2014-12-09, 02:19:09
how i can create a script to put a buitton on workflow max? with VFB opneing button
Title: Re: Show VFB: need help for Macroscript
Post by: cecofuli on 2014-12-09, 10:53:21
Unfortunately, I don't know. Sorry
Title: Re: Show VFB: need help for Macroscript
Post by: racoonart on 2014-12-09, 11:12:16
Code: [Select]
macroScript ShowVfb
category: "Corona Renderer"
(
CoronaRenderer.CoronaFp.showVfb()
)

Save this as a .mcr and put it into the C:\Users\YOURUSERNAME\AppData\Local\Autodesk\3dsMax\2014 - 64bit\ENU\usermacros . Restart max and you will find it in the "Corona Renderer" category :)
Title: Re: Show VFB: need help for Macroscript
Post by: cecofuli on 2014-12-09, 11:15:17
Off.. thanks so much!!!
Title: Re: Show VFB: need help for Macroscript
Post by: crowinhand on 2015-01-26, 11:33:31
Hi, everyone!
It seems that in daily builds "CoronaRenderer.CoronaFp.showVfb()" is not working any more... Could anyone help me with that?
Title: Re: Show VFB: need help for Macroscript
Post by: ecximer on 2015-01-26, 12:03:50
Code: [Select]
macroScript ShowVfb
category: "Corona Renderer"
(
CoronaRenderer.CoronaFp.showVfb true -- true=show/false=hide
)
But function don't usability, because not perhaps get current state of VFB. I see it's so:
function shall return bool-value
and then script will be such
Code: [Select]
CoronaRenderer.CoronaFp.showVfb() = !CoronaRenderer.CoronaFp.showVfb()This code is simply and maximal usable, press one - show, press again - hide.
Title: Re: Show VFB: need help for Macroscript
Post by: crowinhand on 2015-01-26, 13:11:15
Thanx a lot! It helped
Title: Re: Show VFB: need help for Macroscript
Post by: crowinhand on 2015-01-26, 14:11:23
Sorry for my stupidity, but I just can't find out why max is throwing an error after these lines :
renderers.current.progressive_passLimit = 20
Render outputfile:"C:\\tmpRender.png" vfb: off
Title: Re: Show VFB: need help for Macroscript
Post by: daniel.reutersward on 2015-04-29, 11:17:42
I can“t get this to work, I only get an error (see attached image).

Any help is appreciated :)
Title: Re: Show VFB: need help for Macroscript
Post by: racoonart on 2015-04-29, 11:34:08
Code: [Select]
macroScript ShowVfb
category: "Corona Renderer"
(
CoronaRenderer.CoronaFp.showVfb true -- true=show/false=hide
)
This one will do ;)
Title: Re: Show VFB: need help for Macroscript
Post by: maru on 2015-04-29, 12:19:38
CoronaRenderer.CoronaFp.showVfb(true)

this seems to work
Title: Re: Show VFB: need help for Macroscript
Post by: daniel.reutersward on 2015-04-29, 12:42:04
Thank you DeadClown and Maru! It works now :)