SetPhong doesn´t work

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

On 28/11/2002 at 10:06, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.012 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
The SetPhong Function does not work. Also manually it does not work:

    
    
    op->GetUp()->KillTag(Tphong);  
     BaseTag *tag=op->GetUp()->MakeTag(Tphong);  
     if (!tag) return FALSE;  
     BaseContainer bc;  
     bc.SetBool(1001,1);   
     bc.SetReal(1002,1.0);  
     tag->SetData(bc,FALSE);

definetly buggy

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

On 28/11/2002 at 10:20, xxxxxxxx wrote:

Instead something like this should be used:

    
    
    BaseContainer *bc = tag->GetDataInstance();  
     bc->SetBool(1001,1);  
     bc->SetReal(1002,0.0);

Cause this works ;)