ScriptSpot

Forum topic · General Scripting

Accessing active submaterial in a slot - problem.

By j.a.m · 2009-03-15

Description

Hi,

I created a script that proessed the material in active material slot which I took from ActiveMeditSlot system variable. It worked well untill I tried to process a material from a multi/submaterial.
The problem is that ActiveMeditSlot returns the array of all materials instead of one active material from multymaterial currenlty opened in the slot.
Are there any ways to access current material if it is a pert of multimaterial?

Thanks.

Comments (1)

j.a.m · 2009-03-16

I've found the method needed: medit.GetCurMtl().