Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: acrobaticpoly on 2024-04-12, 11:30:35

Title: Switching VFB Script?
Post by: acrobaticpoly on 2024-04-12, 11:30:35
Hi guys,
Hopefully this is a quick one!
 
Does anyone know of a way to create a script that switches the VFB from the Native 3DS Max VFB to Coronas? We're using Connecter to produce preview images but when we do, it switches to the Native VFB for some reason. To switch back we need to go to Render Settings > Switch tab > System Settings > Native to Corona. I would like to create a button with this script to save us from having to do this.

Would be greatly appreciated!
Title: Re: Switching VFB Script?
Post by: Frood on 2024-04-12, 11:39:27
Hi, try

Code: [Select]
if classof renderers.current == Corona do renderers.current.vfb_type=2

0: none
1: 3ds Max VFB
2: Corona VFB


Good Luck



Title: Re: Switching VFB Script?
Post by: acrobaticpoly on 2024-04-12, 13:42:14
Thank you very much Frood!
This worked a treat - I owe you a coffee!