Author Topic: Simple Script  (Read 2070 times)

2016-12-21, 22:06:58

studio_vir

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 15
    • View Profile
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

2016-12-22, 03:16:08
Reply #1

Christa Noel

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

2016-12-22, 23:10:43
Reply #2

studio_vir

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 15
    • View Profile
Thanks Christa,

I will try this code!!