PDA

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


Juri
03-15-2009, 01:57 PM
Hi everyone.

I created a script that processed the material in active slot
"mtl=meditMaterials[activeMeditSlot]"
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.

Thanks.

Juri
03-16-2009, 08:56 AM
Oops.
Solution appeared to be trivial.

medit.GetCurMtl() was the method I needed.

CGTalk Moderation
03-16-2009, 08: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.