[Closed] Exlcude / Include List
Im trying to access the properties of this function…
exclusionListDlg()
I tried all the class and object instpector funcitons… nothing seems to extract what im looking for…
when i assign this to a variable like so…
myList = exclusionListDlg()
it would pop-up a dialog (as expected), do some including and excluding… then after pressing OK, it would return my array…
now my problem is, how will i know if the array is for my Exlcusion list? or is it for my Inclusion List? … and how will I know of the array was set to Illumination, Shadow Casting or Both? it doesnt print any of those infos, it just gives me an array…
i hope somebody could shed some light on me regarding this… many thanks in advance!
Standard max lights have includeList and excludeList arrays all you need to do is make whichever list you need equal you list.
ie If it were for a selection your code would go:
$MyLight.includeList = selection
-- or
$MyLight.excludeList = selection
I think, however, that as you assign objects to one list the other list is made undefined.
Hope this helps.
yep, thats close to what i did. What i wanted to do was hav a separate dialog to control all the lights’ Exclude/Include List… although i may be able to replicate a similar dialog, the existence of exclusionListDlg()’s properties could hav made things a lot easier…
So, in the mean time, i let my script pick a light (with some include/exclude items), copy the arrays/settings, thus a separate button will just paste em all to other lights…
and yeah, it wud depend on the contents if u assign an array on excludelist or includelist…