Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    PLA key, SetData()

    SDK Help
    0
    2
    134
    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/02/2004 at 16:03, xxxxxxxx wrote:

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

      ---------
      I can get point array data from the PLA key, but can not set it to the PLA key with the "SetData()" function. What is wrong?

      My code is shown below, and file is uploaded to the link.

      http://www.c4djug.com/cache/PLA2.zip

        
      main(doc,op)  
      {  
      //get sequence and key  
           var plaseq= op->GetFirstTrack()->GetFirstSequence();  
           var plaky0= plaseq->GetFirstKey();  
      //get array data  
           var pladata0= plaky0->GetPointTag()->GetData();  
        
      //check  
           println(pladata0[0]);          //Good  
        
      //create new key and tag  
           var plaky1= new(PLAKey);  
           var pitag1= new(PointTag);  
      //set the array to new tag  
           pitag1->SetData(pladata0);  
        
      //check  
           var pladata1= pitag1->GetData();  
      println(pladata1[0]);          //Bad  
      }  
      
      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/02/2004 at 20:27, xxxxxxxx wrote:

        OK, I understood that I need "Variable Changed", and to expand the array for the polygon.

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