Author Topic: Material Override add/remove Excluded Objects script wanted  (Read 2596 times)

2017-11-10, 10:44:06

Alina Hramyka

  • Active Users
  • **
  • Posts: 37
    • View Profile
Is it possible to add and remove selected objects by the macroscript so no need to open render setting each time?



2017-11-10, 13:40:31
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
no, but you could manually attach nodes direclty to the renderer property. Here are all maxscript corona properties names: https://corona-renderer.com/doc/
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2017-11-10, 14:14:29
Reply #2

Frood

  • Active Users
  • **
  • Posts: 1922
    • View Profile
    • Rakete GmbH
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


Never underestimate the power of a well placed level one spell.

2017-11-11, 06:06:49
Reply #3

Christa Noel

  • Active Users
  • **
  • Posts: 911
  • God bless us everyone
    • View Profile
    • dionch.studio
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.

2017-11-11, 16:37:00
Reply #4

Alina Hramyka

  • Active Users
  • **
  • Posts: 37
    • View Profile
Wow! Thank you very much!!
There is one more nice feature in your script - it selects already excluded objects

So great! thanks