Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    SetPhong doesn´t work

    Bugs
    0
    2
    932
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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 😉

        1 Reply Last reply Reply Quote 0
        • First post
          Last post