Add material into a material group

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

On 15/06/2004 at 01:15, xxxxxxxx wrote:

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

---------
Hi,
I can insert a material into the active document, that´s fine. But how
can I insert the new material into a material group. I found no function
for this. Or, what can I do with the BaseContainer from
MaterialGroup_GetID() function ?

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

On 18/06/2004 at 13:50, xxxxxxxx wrote:

    
    
    mat->GetDataInstance()->SetLong(ID_MATERIALGROUP,groupid);

(Seems to be missing from the docs though.)