Getting selected index of a multimaterial
I'm trying to find a way to get the selected material in a multimaterial. More precisely, when you click a multi/sub material in the material editor, we are able then to click on the little preview of the material (within the multi / sub) and push "delete" to remove the selected material. This is the index I'm talking, the index of the selected material or the selected preview...
I can't find any properties on the multimaterial that could give me this value. So now I'm thinking to script a plug-in which could modify the multimaterial. The problem is I'm completely new to script a plug-in. Does someone have an idea how to get this index? Any advice will be more than apreciated.