Assigned to the second material

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 03/03/2007 at 06:34, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   9.5 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------
Hi
Var mat = doc -> GetFirstMaterial ();
Mat -> SetChannelState (CHANNEL_COLOR, TRUE);
How can I achieve that it is assigned to the second material of the agent of materials ?
It would be like to replace First with Second ?
Thx

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 03/03/2007 at 12:11, xxxxxxxx wrote:

mat->GetNext()? 😉