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

    PLA data access

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 218 Views
    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 Offline
      Helper
      last edited by

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

      On 28/03/2007 at 07:23, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
         The new 10.102 update for Cinema 4D includes now direct access to PLA data. Here a little example:

      #include customgui_pla.h

      BaseObject *op=doc->GetActiveObject();
      if (!op) return FALSE;
           
      CTrack *track = op->GetFirstCTrack();
      if (!track) return FALSE;
           
      CKey *key = track->GetCurve()->GetKey(0);
      if (!key) return FALSE;

      GeData dat;
      if (!key->GetParameter(DescLevel(CK_PLA_DATA,CUSTOMDATATYPE_PLA,0),dat,0)) return FALSE;

      PLAData *pla = (PLAData* )dat.GetCustomDataType(CUSTOMDATATYPE_PLA);
      if (!pla) return FALSE;
           
      VariableTag *ptag=NULL,*htag=NULL;
      pla->GetVariableTags(ptag,htag);

      ptag + htag contain the tags...

      There will be an updated SDK docu too.

      cheers,
      Matthias

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

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

        On 28/03/2007 at 10:17, xxxxxxxx wrote:

        Thank you very much for the update, Matthias!

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