RetrievePrivateData Struct Reference

#include <c4d_baselist.h>

Detailed Description

Message struct for the MSG_RETRIEVEPRIVATEDATA message.
For example, this message can be used to get/set exporters/importers settings:

BaseList2D* exporter;
// Find Alembic scene saver (exporter) plugin with its ID 1028082
// If found, send MSG_RETRIEVEPRIVATEDATA to get the Alembic exporter private data
if (abc && abc->Message(MSG_RETRIEVEPRIVATEDATA, &exporter))
{
if (!exporter)
return false;
// Get the container data instance
// Set Alembic export settings
data.SetBool(ABCEXPORT_HAIR, true);
data.SetBool(ABCEXPORT_XREFS, true);
SaveDocument(doc, "dir/to/save/to/filename.abc", SAVEDOCUMENTFLAGS::DONTADDTORECENTLIST, 1028082);
}
Bool SaveDocument(BaseDocument *doc, const Filename &name, SAVEDOCUMENTFLAGS saveflags, Int32 format)
BasePlugin * FindPlugin(Int32 id, PLUGINTYPE type)
Definition: c4d_basecontainer.h:48
Definition: c4d_baselist.h:2376
const BaseContainer & GetDataInstanceRef() const
Definition: c4d_baselist.h:2517
The base class for Cinema&#160;4D plugins.
Definition: c4d_baseplugin.h:70
Bool Message(Int32 type, void *data=nullptr)
Definition: c4d_baselist.h:1582
@ ABCEXPORT_PARTICLE_GEOMETRY
Definition: falembicexport.h:31
@ ABCEXPORT_XREFS
Definition: falembicexport.h:30
@ ABCEXPORT_HAIR
Definition: falembicexport.h:26
#define MSG_RETRIEVEPRIVATEDATA
A generic private message to retrieve data from an object. Specific for every type of object so no pu...
Definition: c4d_baselist.h:405
@ SCENESAVER
Scene saver. (SceneSaverData)
@ DONTADDTORECENTLIST
Do not add the saved document to the recent file list.
const char * doc
Definition: pyerrors.h:226
void * data
The address returned.
Definition: c4d_baselist.h:887

Public Member Functions

 RetrievePrivateData ()
 

Public Attributes

Int32 flags
 
void * data
 

Constructor & Destructor Documentation

◆ RetrievePrivateData()

Default constructor.

Member Data Documentation

◆ flags

Int32 flags

The flags for the retrieval.

◆ data

void* data

The address returned.