Here you will find documentation on all the descriptions that Cinema 4D currently has. You can list them Alphabetically, by Type or Plugin . The sample Python and C++ code is automatically generated and in some cases may not be 100% correct. If something doesn't work then please refer to the official Cinema 4D SDK documentation for more information.

IDs and information for Tcageomcache

Tcageomcache

Attributes

  • ENGLISH NAME : PointCache
  • NAME : Tcageomcache
  • INCLUDE : Texpression
  • PATH : ca/description/tcageomcache.res
  • PLUGIN : ca
  • MAXON online help (may not exist): TCAGEOMCACHE

Elements

ID UI Name Type Parameters Cycle
ID_CA_GEOMCACHE_TAG_ENABLE Enable BOOL  
ID_CA_GEOMCACHE_TAG_DEFORMER UseDeformer BOOL  
ID_CA_GEOMCACHE_TAG_PSR Transform BOOL  
ID_CA_GEOMCACHE_TAG_CACHE_STRENGTH Strength REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
CUSTOMGUI REALSLIDER
ID_CA_GEOMCACHE_TAG_COMPRESSED Compress BOOL
SCALE_H
ANIM OFF
ID_CA_GEOMCACHE_TAG_STORE StoreState BUTTON SCALE_H
ID_CA_GEOMCACHE_TAG_RESTORE Restore BUTTON SCALE_H
ID_CA_GEOMCACHE_TAG_CALCULATE Calculate BUTTON SCALE_H
ID_CA_GEOMCACHE_TAG_UPDATE Update BUTTON SCALE_H
ID_CA_GEOMCACHE_TAG_DELETE EmptyCache BUTTON SCALE_H
ID_CA_GEOMCACHE_TAG_CACHE_LOAD Load... BUTTON SCALE_H
ID_CA_GEOMCACHE_TAG_CACHE_SAVE Save... BUTTON SCALE_H
ID_CA_GEOMCACHE_TAG_CACHE_AUTOTIME AutoTime BOOL
SCALE_H
ANIM OFF
ID_CA_GEOMCACHE_TAG_CACHE_START Start BASETIME
SCALE_H
ANIM OFF
ID_CA_GEOMCACHE_TAG_CACHE_STOP Stop BASETIME
SCALE_H
ANIM OFF
ID_CA_GEOMCACHE_TAG_CACHE_OFFSET Offset BASETIME
SCALE_H
ANIM OFF
ID_CA_GEOMCACHE_TAG_CACHE_TIMESCALE Scale REAL UNIT
ID_CA_GEOMCACHE_TAG_CACHE_LOOP Loop LONG MIN
ID_CA_GEOMCACHE_TAG_CACHE_LOOP_BLEND Blend REAL
UNIT PERCENT
MIN 0.0
MAX 100.0
ID_CA_GEOMCACHE_TAG_CACHE_LIMIT Cache LONG
MIN 1
MAX 1000
ANIM OFF

Example Code

The following code does not use the correct values when setting the data. You should check directly in C4D for the correct values that you should use in place of the ones that are shown. This code is just to show you how to access the values for getting and setting the parameters.

Python

import c4d
from c4d import gui
def main():
    obj = c4d.BaseObject(c4d.Osphere)
    tag = obj.MakeTag(c4d.Tcageomcache)
    doc.InsertObject(obj)
    c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
    
    #You can set parameters two different ways. 
    #First way              
    tag[c4d.ID_CA_GEOMCACHE_TAG_ENABLE] = True
    tag[c4d.ID_CA_GEOMCACHE_TAG_DEFORMER] = True
    tag[c4d.ID_CA_GEOMCACHE_TAG_PSR] = True
    tag[c4d.ID_CA_GEOMCACHE_TAG_CACHE_STRENGTH] = 0.1
    tag[c4d.ID_CA_GEOMCACHE_TAG_COMPRESSED] = True
    tag[c4d.ID_CA_GEOMCACHE_TAG_CACHE_AUTOTIME] = True
    tag[c4d.ID_CA_GEOMCACHE_TAG_CACHE_TIMESCALE] = 0.1
    tag[c4d.ID_CA_GEOMCACHE_TAG_CACHE_LOOP] = 1
    tag[c4d.ID_CA_GEOMCACHE_TAG_CACHE_LOOP_BLEND] = 0.1
    tag[c4d.ID_CA_GEOMCACHE_TAG_CACHE_LIMIT] = 1
    
    #Second way, using the base container.
    bc = tag.GetDataInstance()
    bc.SetBool(c4d.ID_CA_GEOMCACHE_TAG_ENABLE,True)
    bc.SetBool(c4d.ID_CA_GEOMCACHE_TAG_DEFORMER,True)
    bc.SetBool(c4d.ID_CA_GEOMCACHE_TAG_PSR,True)
    bc.SetFloat(c4d.ID_CA_GEOMCACHE_TAG_CACHE_STRENGTH,0.1)
    bc.SetBool(c4d.ID_CA_GEOMCACHE_TAG_COMPRESSED,True)
    bc.SetBool(c4d.ID_CA_GEOMCACHE_TAG_CACHE_AUTOTIME,True)
    bc.SetFloat(c4d.ID_CA_GEOMCACHE_TAG_CACHE_TIMESCALE,0.1)
    bc.SetInt32(c4d.ID_CA_GEOMCACHE_TAG_CACHE_LOOP,1)
    bc.SetFloat(c4d.ID_CA_GEOMCACHE_TAG_CACHE_LOOP_BLEND,0.1)
    bc.SetInt32(c4d.ID_CA_GEOMCACHE_TAG_CACHE_LIMIT,1)

if __name__=='__main__':
    main()
             

C++

#include "c4d.h"
#include "../ca/description/tcageomcache.h"
void SampleFunction()
{
    BaseDocument *pDoc = GetActiveDocument();
    BaseObject *pObject = BaseObject::Alloc(Osphere);
    pDoc->InsertObject(pObject);
    pDoc->StartUndo();
    pDoc->AddUndo(UNDOTYPE_NEW,pObject);
    pDoc->EndUndo();
    pDoc->StartUndo();
    BaseTag *pTag = pObject->MakeTag(Tcageomcache);
    pDoc->AddUndo(UNDOTYPE_NEW,pTag);
    pDoc->EndUndo();
    pObject->Message(MSG_UPDATE);
    
    //You can set parameters two different ways. 

    //First way              
    //Some objects do not store all their data in the container. You need to use GetParameter()/SetParameter() instead. 

    DESCFLAGS_SET flags = DESCFLAGS_SET_PARAM_SET;
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_ENABLE),GeData(true),flags);
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_DEFORMER),GeData(true),flags);
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_PSR),GeData(true),flags);
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_CACHE_STRENGTH),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_COMPRESSED),GeData(true),flags);
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_CACHE_AUTOTIME),GeData(true),flags);
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_CACHE_TIMESCALE),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_CACHE_LOOP),GeData(1),flags);
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_CACHE_LOOP_BLEND),GeData(0.1),flags);
    pTag->SetParameter(DescID(ID_CA_GEOMCACHE_TAG_CACHE_LIMIT),GeData(1),flags);
    pTag->Message(MSG_UPDATE);            

    //Second way, using the base container.
    BaseContainer *bc =     pTag->GetDataInstance();
    bc->SetBool(ID_CA_GEOMCACHE_TAG_ENABLE,true);
    bc->SetBool(ID_CA_GEOMCACHE_TAG_DEFORMER,true);
    bc->SetBool(ID_CA_GEOMCACHE_TAG_PSR,true);
    bc->SetFloat(ID_CA_GEOMCACHE_TAG_CACHE_STRENGTH,0.1);
    bc->SetBool(ID_CA_GEOMCACHE_TAG_COMPRESSED,true);
    bc->SetBool(ID_CA_GEOMCACHE_TAG_CACHE_AUTOTIME,true);
    bc->SetFloat(ID_CA_GEOMCACHE_TAG_CACHE_TIMESCALE,0.1);
    bc->SetInt32(ID_CA_GEOMCACHE_TAG_CACHE_LOOP,1);
    bc->SetFloat(ID_CA_GEOMCACHE_TAG_CACHE_LOOP_BLEND,0.1);
    bc->SetInt32(ID_CA_GEOMCACHE_TAG_CACHE_LIMIT,1);
    pTag->Message(MSG_UPDATE);                                                      
}
             

Buttons

This node has buttons. Buttons can manually be executed by calling the following code

Python

c4d.CallButton(tag,c4d.ID_CA_GEOMCACHE_TAG_STORE)
c4d.CallButton(tag,c4d.ID_CA_GEOMCACHE_TAG_RESTORE)
c4d.CallButton(tag,c4d.ID_CA_GEOMCACHE_TAG_CALCULATE)
c4d.CallButton(tag,c4d.ID_CA_GEOMCACHE_TAG_UPDATE)
c4d.CallButton(tag,c4d.ID_CA_GEOMCACHE_TAG_DELETE)
c4d.CallButton(tag,c4d.ID_CA_GEOMCACHE_TAG_CACHE_LOAD)
c4d.CallButton(tag,c4d.ID_CA_GEOMCACHE_TAG_CACHE_SAVE)

C++

DescriptionCommand dc;
dc.id = DescID(ID_CA_GEOMCACHE_TAG_STORE);             
pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);

DescriptionCommand dc; dc.id = DescID(ID_CA_GEOMCACHE_TAG_RESTORE); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(ID_CA_GEOMCACHE_TAG_CALCULATE); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(ID_CA_GEOMCACHE_TAG_UPDATE); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(ID_CA_GEOMCACHE_TAG_DELETE); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(ID_CA_GEOMCACHE_TAG_CACHE_LOAD); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc; dc.id = DescID(ID_CA_GEOMCACHE_TAG_CACHE_SAVE); pTag->Message(MSG_DESCRIPTION_COMMAND, &dc);