Oxpcache
Attributes
-
ENGLISH NAME : X-ParticlesCacheObject
-
NAME : Oxpcache
-
INCLUDE : Obase
-
PATH : res/description/oxpcache.res
-
PLUGIN : X-Particles
-
MAXON online help (may not exist): OXPCACHE
Elements
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.Oxpcache)
doc.InsertObject(obj)
c4d.EventAdd(c4d.EVENT_FORCEREDRAW)
#You can set parameters two different ways.
#First way
obj[c4d.XOCA_CACHE_USE] = True
obj[c4d.XOCA_CACHE_TYPE] = c4d.XOCA_CACHE_TYPE_EXT
obj[c4d.XOCA_CACHE_RECORD_DISPLAY] = c4d.XOCA_CACHE_RECORD_DISPLAY_FULL
obj[c4d.XOCA_CACHE_RECORD_DISPLAY_LOD] = 0.1
obj[c4d.XOCA_CACHE_FORMAT] = c4d.XOCA_CACHE_FORMAT_XP
obj[c4d.XOCA_CACHE_FILE_SCALE] = 0.1
obj[c4d.XOCA_CACHE_FOLDER] = "c:\\SomeFile.txt"
obj[c4d.XOCA_CACHE_FOLDER_ALT] = "c:\\SomeFile.txt"
obj[c4d.XOCA_CACHE_EXTENSION] = "Hello World"
obj[c4d.XOCA_CACHE_LOG] = True
obj[c4d.XOCA_CACHE_ERRORS] = True
obj[c4d.XOCA_CACHE_FILE_FOLDERS] = True
obj[c4d.XOCA_CACHE_FILE_ASSETS] = True
obj[c4d.XOCA_CACHE_SKIP_PREROLL] = True
obj[c4d.XOCA_CACHE_TEXTUREPATHS] = True
obj[c4d.XOCA_CACHE_COMPRESS] = True
obj[c4d.XOCA_CACHE_BUFFER] = 1
obj[c4d.XOCA_CACHE_RECORD_MODE] = c4d.XOCA_CACHE_RECORD_MODE_SYNC
obj[c4d.XOCA_CACHE_RECORD_REUSE] = True
obj[c4d.XOCA_CACHE_RECORD_TIME_AUTO] = True
obj[c4d.XOCA_CACHE_RECORD_DATA] = c4d.XOCA_CACHE_RECORD_DATA_BASIC
obj[c4d.XOCA_CACHE_RECORD_DATA_POSITION] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_VELOCITY] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_TIME] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_LIFE] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_COLOR] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_DISPLAY] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_ID] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_MODIFIERS] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_CUSTOM] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_GROUPID] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_RADIUS] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_MASS] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_TEMPERATURE] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_BURN] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_FUEL] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_SMOKE] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_DISTANCE] = True
obj[c4d.XOCA_CACHE_RECORD_DATA_ROTATION] = True
obj[c4d.XOCA_CACHE_HOLD] = True
obj[c4d.XOCA_CACHE_WRAP] = True
obj[c4d.XOCA_CACHE_LOCALCOORDS] = True
obj[c4d.XOCA_CACHE_PERFRAME] = True
obj[c4d.XOCA_CACHE_SCALE] = 0.1
obj[c4d.XOCA_CACHE_TIME_AUTO] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_AS] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_POSITION] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_VELOCITY] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_TIME] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_LIFE] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_COLOR] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_DISPLAY] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_ID] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_MODIFIERS] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_CUSTOM] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_GROUPID] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_RADIUS] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_MASS] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_TEMPERATURE] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_BURN] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_FUEL] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_SMOKE] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_DISTANCE] = True
obj[c4d.XOCA_CACHE_PLAY_DATA_ROTATION] = True
obj[c4d.XOCA_CACHE_PARTICLES] = True
obj[c4d.XOCA_CACHE_GENERATORS] = True
obj[c4d.XOCA_CACHE_SPRITES] = True
obj[c4d.XOCA_CACHE_TRAILS] = True
obj[c4d.XOCA_CACHE_SKINNER] = True
obj[c4d.XOCA_CACHE_FRAGMENTER] = True
obj[c4d.XOCA_CACHE_WETMAPS] = True
obj[c4d.XOCA_CACHE_DOMAIN] = True
obj[c4d.XOCA_CACHE_INCLUDE_MODE] = c4d.XOCA_CACHE_INCLUDE_MODE_INCLUDE
#Second way, using the base container.
bc = obj.GetDataInstance()
bc.SetBool(c4d.XOCA_CACHE_USE,True)
bc.SetInt32(c4d.XOCA_CACHE_TYPE,c4d.XOCA_CACHE_TYPE_EXT)
bc.SetInt32(c4d.XOCA_CACHE_RECORD_DISPLAY,c4d.XOCA_CACHE_RECORD_DISPLAY_FULL)
bc.SetFloat(c4d.XOCA_CACHE_RECORD_DISPLAY_LOD,0.1)
bc.SetInt32(c4d.XOCA_CACHE_FORMAT,c4d.XOCA_CACHE_FORMAT_XP)
bc.SetFloat(c4d.XOCA_CACHE_FILE_SCALE,0.1)
bc.SetFileName(c4d.XOCA_CACHE_FOLDER,"c:\\SomeFile.txt")
bc.SetFileName(c4d.XOCA_CACHE_FOLDER_ALT,"c:\\SomeFile.txt")
bc.SetString(c4d.XOCA_CACHE_EXTENSION,"Hello World")
bc.SetBool(c4d.XOCA_CACHE_LOG,True)
bc.SetBool(c4d.XOCA_CACHE_ERRORS,True)
bc.SetBool(c4d.XOCA_CACHE_FILE_FOLDERS,True)
bc.SetBool(c4d.XOCA_CACHE_FILE_ASSETS,True)
bc.SetBool(c4d.XOCA_CACHE_SKIP_PREROLL,True)
bc.SetBool(c4d.XOCA_CACHE_TEXTUREPATHS,True)
bc.SetBool(c4d.XOCA_CACHE_COMPRESS,True)
bc.SetInt32(c4d.XOCA_CACHE_BUFFER,1)
bc.SetInt32(c4d.XOCA_CACHE_RECORD_MODE,c4d.XOCA_CACHE_RECORD_MODE_SYNC)
bc.SetBool(c4d.XOCA_CACHE_RECORD_REUSE,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_TIME_AUTO,True)
bc.SetInt32(c4d.XOCA_CACHE_RECORD_DATA,c4d.XOCA_CACHE_RECORD_DATA_BASIC)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_POSITION,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_VELOCITY,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_TIME,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_LIFE,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_COLOR,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_DISPLAY,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_ID,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_MODIFIERS,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_CUSTOM,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_GROUPID,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_RADIUS,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_MASS,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_TEMPERATURE,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_BURN,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_FUEL,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_SMOKE,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_DISTANCE,True)
bc.SetBool(c4d.XOCA_CACHE_RECORD_DATA_ROTATION,True)
bc.SetBool(c4d.XOCA_CACHE_HOLD,True)
bc.SetBool(c4d.XOCA_CACHE_WRAP,True)
bc.SetBool(c4d.XOCA_CACHE_LOCALCOORDS,True)
bc.SetBool(c4d.XOCA_CACHE_PERFRAME,True)
bc.SetFloat(c4d.XOCA_CACHE_SCALE,0.1)
bc.SetBool(c4d.XOCA_CACHE_TIME_AUTO,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_AS,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_POSITION,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_VELOCITY,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_TIME,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_LIFE,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_COLOR,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_DISPLAY,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_ID,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_MODIFIERS,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_CUSTOM,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_GROUPID,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_RADIUS,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_MASS,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_TEMPERATURE,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_BURN,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_FUEL,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_SMOKE,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_DISTANCE,True)
bc.SetBool(c4d.XOCA_CACHE_PLAY_DATA_ROTATION,True)
bc.SetBool(c4d.XOCA_CACHE_PARTICLES,True)
bc.SetBool(c4d.XOCA_CACHE_GENERATORS,True)
bc.SetBool(c4d.XOCA_CACHE_SPRITES,True)
bc.SetBool(c4d.XOCA_CACHE_TRAILS,True)
bc.SetBool(c4d.XOCA_CACHE_SKINNER,True)
bc.SetBool(c4d.XOCA_CACHE_FRAGMENTER,True)
bc.SetBool(c4d.XOCA_CACHE_WETMAPS,True)
bc.SetBool(c4d.XOCA_CACHE_DOMAIN,True)
bc.SetInt32(c4d.XOCA_CACHE_INCLUDE_MODE,c4d.XOCA_CACHE_INCLUDE_MODE_INCLUDE)
if __name__=='__main__':
main()
C++
#include "c4d.h"
#include "../res/description/oxpcache.h"
void SampleFunction()
{
BaseDocument *pDoc = GetActiveDocument();
BaseObject *pObject = BaseObject::Alloc(Oxpcache);
pDoc->InsertObject(pObject);
pDoc->StartUndo();
pDoc->AddUndo(UNDO_NEW,pObject);
pDoc->EndUndo();
EventAdd(EVENT_FORCEREDRAW);
//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;
pObject->SetParameter(DescID(XOCA_CACHE_USE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_TYPE),GeData(XOCA_CACHE_TYPE_EXT),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DISPLAY),GeData(XOCA_CACHE_RECORD_DISPLAY_FULL),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DISPLAY_LOD),GeData(0.1),flags);
pObject->SetParameter(DescID(XOCA_CACHE_FORMAT),GeData(XOCA_CACHE_FORMAT_XP),flags);
pObject->SetParameter(DescID(XOCA_CACHE_FILE_SCALE),GeData(0.1),flags);
pObject->SetParameter(DescID(XOCA_CACHE_FOLDER),GeData(Filename("c:\\SomeFile.txt"),flags);
pObject->SetParameter(DescID(XOCA_CACHE_FOLDER_ALT),GeData(Filename("c:\\SomeFile.txt"),flags);
pObject->SetParameter(DescID(XOCA_CACHE_EXTENSION),GeData("Hello World"),flags);
pObject->SetParameter(DescID(XOCA_CACHE_LOG),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_ERRORS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_FILE_FOLDERS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_FILE_ASSETS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_SKIP_PREROLL),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_TEXTUREPATHS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_COMPRESS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_BUFFER),GeData(1),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_MODE),GeData(XOCA_CACHE_RECORD_MODE_SYNC),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_REUSE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_TIME_AUTO),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA),GeData(XOCA_CACHE_RECORD_DATA_BASIC),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_POSITION),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_VELOCITY),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_TIME),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_LIFE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_COLOR),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_DISPLAY),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_ID),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_MODIFIERS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_CUSTOM),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_GROUPID),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_RADIUS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_MASS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_TEMPERATURE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_BURN),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_FUEL),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_SMOKE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_DISTANCE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_RECORD_DATA_ROTATION),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_HOLD),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_WRAP),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_LOCALCOORDS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PERFRAME),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_SCALE),GeData(0.1),flags);
pObject->SetParameter(DescID(XOCA_CACHE_TIME_AUTO),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_AS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_POSITION),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_VELOCITY),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_TIME),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_LIFE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_COLOR),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_DISPLAY),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_ID),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_MODIFIERS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_CUSTOM),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_GROUPID),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_RADIUS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_MASS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_TEMPERATURE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_BURN),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_FUEL),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_SMOKE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_DISTANCE),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PLAY_DATA_ROTATION),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_PARTICLES),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_GENERATORS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_SPRITES),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_TRAILS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_SKINNER),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_FRAGMENTER),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_WETMAPS),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_DOMAIN),GeData(true),flags);
pObject->SetParameter(DescID(XOCA_CACHE_INCLUDE_MODE),GeData(XOCA_CACHE_INCLUDE_MODE_INCLUDE),flags);
pObject->Message(MSG_UPDATE);
//Second way, using the base container.
BaseContainer *bc = pObject->GetDataInstance();
bc->SetBool(XOCA_CACHE_USE,true);
bc->SetInt32(XOCA_CACHE_TYPE,XOCA_CACHE_TYPE_EXT);
bc->SetInt32(XOCA_CACHE_RECORD_DISPLAY,XOCA_CACHE_RECORD_DISPLAY_FULL);
bc->SetFloat(XOCA_CACHE_RECORD_DISPLAY_LOD,0.1);
bc->SetInt32(XOCA_CACHE_FORMAT,XOCA_CACHE_FORMAT_XP);
bc->SetFloat(XOCA_CACHE_FILE_SCALE,0.1);
bc->SetFileName(XOCA_CACHE_FOLDER,"c:\\SomeFile.txt");
bc->SetFileName(XOCA_CACHE_FOLDER_ALT,"c:\\SomeFile.txt");
bc->SetString(XOCA_CACHE_EXTENSION,"Hello World");
bc->SetBool(XOCA_CACHE_LOG,true);
bc->SetBool(XOCA_CACHE_ERRORS,true);
bc->SetBool(XOCA_CACHE_FILE_FOLDERS,true);
bc->SetBool(XOCA_CACHE_FILE_ASSETS,true);
bc->SetBool(XOCA_CACHE_SKIP_PREROLL,true);
bc->SetBool(XOCA_CACHE_TEXTUREPATHS,true);
bc->SetBool(XOCA_CACHE_COMPRESS,true);
bc->SetInt32(XOCA_CACHE_BUFFER,1);
bc->SetInt32(XOCA_CACHE_RECORD_MODE,XOCA_CACHE_RECORD_MODE_SYNC);
bc->SetBool(XOCA_CACHE_RECORD_REUSE,true);
bc->SetBool(XOCA_CACHE_RECORD_TIME_AUTO,true);
bc->SetInt32(XOCA_CACHE_RECORD_DATA,XOCA_CACHE_RECORD_DATA_BASIC);
bc->SetBool(XOCA_CACHE_RECORD_DATA_POSITION,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_VELOCITY,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_TIME,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_LIFE,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_COLOR,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_DISPLAY,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_ID,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_MODIFIERS,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_CUSTOM,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_GROUPID,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_RADIUS,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_MASS,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_TEMPERATURE,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_BURN,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_FUEL,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_SMOKE,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_DISTANCE,true);
bc->SetBool(XOCA_CACHE_RECORD_DATA_ROTATION,true);
bc->SetBool(XOCA_CACHE_HOLD,true);
bc->SetBool(XOCA_CACHE_WRAP,true);
bc->SetBool(XOCA_CACHE_LOCALCOORDS,true);
bc->SetBool(XOCA_CACHE_PERFRAME,true);
bc->SetFloat(XOCA_CACHE_SCALE,0.1);
bc->SetBool(XOCA_CACHE_TIME_AUTO,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_AS,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_POSITION,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_VELOCITY,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_TIME,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_LIFE,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_COLOR,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_DISPLAY,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_ID,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_MODIFIERS,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_CUSTOM,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_GROUPID,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_RADIUS,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_MASS,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_TEMPERATURE,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_BURN,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_FUEL,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_SMOKE,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_DISTANCE,true);
bc->SetBool(XOCA_CACHE_PLAY_DATA_ROTATION,true);
bc->SetBool(XOCA_CACHE_PARTICLES,true);
bc->SetBool(XOCA_CACHE_GENERATORS,true);
bc->SetBool(XOCA_CACHE_SPRITES,true);
bc->SetBool(XOCA_CACHE_TRAILS,true);
bc->SetBool(XOCA_CACHE_SKINNER,true);
bc->SetBool(XOCA_CACHE_FRAGMENTER,true);
bc->SetBool(XOCA_CACHE_WETMAPS,true);
bc->SetBool(XOCA_CACHE_DOMAIN,true);
bc->SetInt32(XOCA_CACHE_INCLUDE_MODE,XOCA_CACHE_INCLUDE_MODE_INCLUDE);
pObject->Message(MSG_UPDATE);
}
Buttons
This node has buttons. Buttons can manually be executed by calling the following code
Python
c4d.CallButton(obj,c4d.XOCA_CACHE_FILL)
c4d.CallButton(obj,c4d.XOCA_CACHE_EMPTY)
c4d.CallButton(obj,c4d.XOCA_CACHE_EMPTY_FRAME)
c4d.CallButton(obj,c4d.XOCA_HELP_BUTTON)
c4d.CallButton(obj,c4d.XOCA_VIDMAN_BUTTON)
C++
DescriptionCommand dc;
dc.id = DescID(XOCA_CACHE_FILL);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XOCA_CACHE_EMPTY);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XOCA_CACHE_EMPTY_FRAME);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XOCA_HELP_BUTTON);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);
DescriptionCommand dc;
dc.id = DescID(XOCA_VIDMAN_BUTTON);
pObject->Message(MSG_DESCRIPTION_COMMAND, &dc);