Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: studio_vir on 2016-12-21, 22:06:58

Title: Simple Script
Post by: studio_vir on 2016-12-21, 22:06:58
Hi everybody!!

I'm trying to create a simple script that press the "+" button at Mtl Override area and include or exclude objets.

Anyone no what's the code of this button? If i create this script i will not need anymore to open the Render Setup dialog box to made this operation.

Thanks a lot!!

Alessandro Giraldi
www.studiovir.com.br
Title: Re: Simple Script
Post by: Christa Noel on 2016-12-22, 03:16:08
hi agiraldi,
no direct code for that but you can just simply use appendifunique to renderers.current.overrideMtl_exclude
example:
Code: [Select]
arr=selection as array
for i in arr do (appendifunique renderers.current.overrideMtl_exclude i)
Title: Re: Simple Script
Post by: studio_vir on 2016-12-22, 23:10:43
Thanks Christa,

I will try this code!!