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)

AttachmentSize
populate_include-exclude_dialog.jpg75.07 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
3dwannab's picture

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.

miauu's picture

.

I can't help you with C++. You can go at cgtalk and ask someone to complie a plugin for you.

3dwannab's picture

Thanks :]

Okay. I thought some of your programs used it.

miauu's picture

.

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: #()
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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.