View Full Version : Accessing sub-material in active slot - problem

03 March 2009, 12:57 PM
Hi everyone.

I created a script that processed the material in active slot
and it has been ok untill I tried to process a sub-material that is opened in a slot.
It returned a multi/sub-object but I needed a sub-material which was opened in an active slot.

Is there any chance to access the index of active sub-material in medit slot?

I could process all sub-materials from array, but it I'd like firstly to try to realize it as control of every single material.


03 March 2009, 07:56 AM
Solution appeared to be trivial.

medit.GetCurMtl() was the method I needed.

CGTalk Moderation
03 March 2009, 07:56 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.