PLA data access



  • 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



  • 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!


Log in to reply