Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: 3dwannab on 2015-12-01, 19:17:45

Title: MSX: How to get the same dialog as the exclusionListDlg() of the render dialog
Post by: 3dwannab on 2015-12-01, 19:17:45
I've asked here because it's nowhere to be found anywhere else and I was hoping to get some insight from some of the devs how you achieved this.

How did you get the exclusionListDlg() dialog populated with the renderers.current.overrideMtl_exclude array? See attached to where I'm referring.

My code for adding to the renderers.current.overrideMtl_exclude array:
Code: [Select]
matOverrideExcludeList = exclusionListDlg()
for i in matOverrideExcludeList do appendifunique renderers.current.overrideMtl_exclude i

I was looking to see how you managed to populate it (No where in MXS help does it state this)

My blind attempt:
Code: [Select]
exclusionListDlg().items = #(1,2,3)
Title: Re: MSX: How to get the same dialog as the exclusionListDlg() of the render dialog
Post by: Ondra on 2015-12-01, 19:36:55
we use C++ API, where you have to specify the included items as a parameter of the function
Title: Re: MSX: How to get the same dialog as the exclusionListDlg() of the render dialog
Post by: 3dwannab on 2015-12-01, 20:24:42
Thanks Ondra for the prompt reply. I'm completely new to the C++ API so a link to what I'm suppose to be looking for would be great. :]
Title: Re: MSX: How to get the same dialog as the exclusionListDlg() of the render dialog
Post by: Ondra on 2015-12-01, 22:53:59
Interface::DoExclusionListDialog(ExclList *nl, BOOL doShadows=TRUE)=0

But I am not sure if you can invoke it from maxscript...
Title: Re: MSX: How to get the same dialog as the exclusionListDlg() of the render dialog
Post by: 3dwannab on 2015-12-01, 23:58:21
Thanks, will investigate tomorrow :)