Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: khazuma on 2024-05-31, 09:56:04

Title: How to Optimize Falloff Nodes in Bulk...
Post by: khazuma on 2024-05-31, 09:56:04
Has this been happening since Corona 11? When I use the falloff that I previously used, I get the following error message during rendering:

"Falloff map in Fresnel mode is not supported in Base IOR slot.
Material with the problem: (Material_Name)"

Since I use it a lot, it's difficult to change them one by one, so I'm looking for a way to change them all at once.
Does anyone know how to do this?
Title: Re: How to Optimize Falloff Nodes in Bulk...
Post by: alexyork on 2024-05-31, 10:48:02
Nik's BatchMaterialEditor would probably help here.

https://www.scriptspot.com/3ds-max/scripts/batch-material-editor
Title: Re: How to Optimize Falloff Nodes in Bulk...
Post by: khazuma on 2024-06-03, 04:50:34
Nice script! But it's a bit hard to understand how to use it...
Could you show me how to set it up to solve this problem?
Title: Re: How to Optimize Falloff Nodes in Bulk...
Post by: Tom on 2024-06-03, 06:48:28
The instructions on Maxscript website are pretty self explanatory: first select the type of material you want to work on (CoronaLegacyMtl, CoronaPhysicalMtl ...), then select whta materials you want to work on (materials of selected objects, Medit selection ... beware the script doesn't seem to work with SME), and finally, in your case, you want to select "Map - texmapFresnelIor" (if I'm not wrong, please double check) and select "Clear map slot" at the bottom of the script UI so that you will delete all maps plugged into the FresnelIor map slot for the given materials.

Please double check what I say, and save your work before proceeding as this operation is undoable and I could possibly have misunderstood your query.
Title: Re: How to Optimize Falloff Nodes in Bulk...
Post by: khazuma on 2024-06-03, 10:34:25
Hello Tom, thanks for explaining. I think I finally understand the structure of this script.

Thanks to you too, Alex!