Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Feature Requests => [Max] Resolved Feature Requests => Topic started by: Alina Hramyka on 2017-11-10, 10:44:06

Title: Material Override add/remove Excluded Objects script wanted
Post by: Alina Hramyka on 2017-11-10, 10:44:06
Is it possible to add and remove selected objects by the macroscript so no need to open render setting each time?


(http://clip2net.com/clip/m476781/c4656-clip-23kb.png)
Title: Re: Material Override add/remove Excluded Objects script wanted
Post by: Ondra on 2017-11-10, 13:40:31
no, but you could manually attach nodes direclty to the renderer property. Here are all maxscript corona properties names: https://corona-renderer.com/doc/
Title: Re: Material Override add/remove Excluded Objects script wanted
Post by: Frood on 2017-11-10, 14:14:29
Here are all maxscript corona properties names


Either my browser fools me or ironically exactly "overrideMtl_exclude (main_mtlOverrideExclude)" (node array) is missing there :)


Good Luck


Title: Re: Material Override add/remove Excluded Objects script wanted
Post by: Christa Noel on 2017-11-11, 06:06:49
hi Alina Hramyka, yes it is manually possible, just like ondra said.
Use pickObject and insert the picked node to overrideMtl_exclude. check the attached script.
Title: Re: Material Override add/remove Excluded Objects script wanted
Post by: Alina Hramyka on 2017-11-11, 16:37:00
Wow! Thank you very much!!
There is one more nice feature in your script - it selects already excluded objects

So great! thanks