Chaos Corona Forum
Chaos Corona for 3ds Max => [Max] I need help! => Topic started 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:
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:
exclusionListDlg().items = #(1,2,3)
-
we use C++ API, where you have to specify the included items as a parameter of the function
-
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. :]
-
Interface::DoExclusionListDialog(ExclList *nl, BOOL doShadows=TRUE)=0
But I am not sure if you can invoke it from maxscript...
-
Thanks, will investigate tomorrow :)