How do you get the exclusionListDlg() dialog populated with an array? See attached to where I'm referring. No where in MXS help does it show if this is possible.
My blind attempt:
exclusionListDlg().items = #(1,2,3)
Forum topic · General Scripting
By 3dwannab · 2015-12-01
How do you get the exclusionListDlg() dialog populated with an array? See attached to where I'm referring. No where in MXS help does it show if this is possible.
My blind attempt:
exclusionListDlg().items = #(1,2,3)
Thanks.
3dwannab · 2015-12-02
When I open the exclude/include dialog through the UI of the light settings it's fine but if I evaluate:
exclusionListDlg()in the listener it opens an arbitrary dialog not connected with anything. I know how to do that but I was hoping to first of create an array and sent it to the exclusionListDlg() dialog separately.
The Corona Renderer has something like this but I asked the devs there and they said they used the C++ API to do it.
I've no knowledge of this what so ever.
Ondra the main dev sent me this code for C++
Interface::DoExclusionListDialog(ExclList *nl, BOOL d'oShadows=TRUE)=0Do you have any knowledge of this? I'm lost.com. I tried to make it work but no luck and don't know where to start.
.
miauu · 2015-12-02
I can't help you with C++. You can go at cgtalk and ask someone to complie a plugin for you.
Thanks :]
3dwannab · 2015-12-02
Okay. I thought some of your programs used it.
.
miauu · 2015-12-01
With this:
-- select the object that you want to exclude and execute the line below
toExclude = selection as array
-- select the light which have to have the objects above excluded and execute the line below
$.excludeList = toExclude
Then open the Exclude/Include dialog.
From maxscript help file:
.excludeList Array default: #()