Simple Script

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

hi agiraldi,
no direct code for that but you can just simply use appendifunique to renderers.current.overrideMtl_exclude
example:


arr=selection as array
for i in arr do (appendifunique renderers.current.overrideMtl_exclude i)

Thanks Christa,

I will try this code!!