Send arrays to exclusionListDlg() as a parameter
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)
Attachment | Size |
---|---|
populate_include-exclude_dialog.jpg | 75.07 KB |
Comments
Thanks.
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)=0
Do 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.
.
I can't help you with C++. You can go at cgtalk and ask someone to complie a plugin for you.
Tools and Scripts for Autodesk 3dsMax
Thanks :]
Okay. I thought some of your programs used it.
.
With this:
Then open the Exclude/Include dialog.
From maxscript help file:
.excludeList Array default: #()
Objects in this array are excluded from the effects of the light.
.includeList Array default: undefined
Objects in this array receive the effects of the light.
Tools and Scripts for Autodesk 3dsMax