Author Topic: read array of renderers.current.renderSelected_list with exclusionListDlg()  (Read 1609 times)

2016-01-20, 03:54:05

Christa Noel

  • Active Users
  • **
  • Posts: 911
  • God bless us everyone
    • View Profile
    • dionch.studio
Hi all,
as the title said, when i call exclusionListDlg() it always opened in empty array / object list as the default. is there anyway to include some array when call exclusionListDlg().
this code i tried doesn't help at all.
Code: [Select]
for i in (for o in renderers.current.renderSelected_list do appendifunique (exclusionListDlg()) o ) do appendifunique renderers.current.renderSelected_list i
Code: [Select]
( incexc = exclusionListDlg()
for o in renderers.current.renderSelected_list do appendifunique incexc o
for i in incexc do appendifunique renderers.current.renderSelected_list i
)
although there not enough info about exclusionListDlg() in mxshelp file remembering that i need its properties too.. (just like exclude or include mode).
googling it just gives me zero, except this http://www.scriptspot.com/3ds-max/scripts/quick-includeexclude-lights looks like something useful but i cant fully understand the codes inside to fulfill my need.
(but i think I'm not alone here, i see 3dwannab somewhere out there trying to find this :) )

thanx

-update: i know i can append the result of exclusionlistdlg() to renderSelected_list but what i need is to call exclusionlistdlg() with including the item of renderers.current.renderSelected_list first, and then i add or remove the items or change the radiobutton include/exclude then append the result to renderers.current.renderSelected_list. or in short way, i try to duplicate the exclusionlistdlg() in renderselected and mat.override.
« Last Edit: 2016-01-20, 04:03:15 by noel20 »

2016-01-25, 11:50:36
Reply #1

Christa Noel

  • Active Users
  • **
  • Posts: 911
  • God bless us everyone
    • View Profile
    • dionch.studio
sorry for post an already exist thread. I solved this by replicating include/exclude, i'll upload soon when finished.