RetrievePrivateData Struct Reference

#include <c4d_baselist.h>

详细描述

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 BasePlugin * abc = FindPlugin (1028082, PLUGINTYPE::SCENESAVER ); // If found, send MSG_RETRIEVEPRIVATEDATA to get the Alembic exporter private data if (abc && abc-> 消息 ( MSG_RETRIEVEPRIVATEDATA , &exporter)) { if (!exporter) return false ;

// Get the container data instance BaseContainer * data = abc-> GetDataInstance (); if (! data ) return false ;

// Set Alembic export settings data ->SetBool( ABCEXPORT_HAIR , true ); data ->SetBool( ABCEXPORT_PARTICLE_GEOMETRY , true ); data ->SetBool( ABCEXPORT_XREFS , true );

SaveDocument (doc, "dir/to/save/to/filename.abc" , SAVEDOCUMENTFLAGS::DONTADDTORECENTLIST , 1028082); }

公共成员函数

  RetrievePrivateData ()

Public Attributes

Int32   flags
void *  data

构造函数 & 析构函数文档编制

◆  RetrievePrivateData()

RetrievePrivateData ( )

Default constructor.

Member Data Documentation

◆  flags

Int32 flags

The flags for the retrieval.

◆  data

void* data

The address returned.

BaseList2D
定义: c4d_baselist.h:2144
FindPlugin
BasePlugin * FindPlugin(Int32 id, PLUGINTYPE type)
BaseList2D::GetDataInstance
const BaseContainer * GetDataInstance() const
定义: c4d_baselist.h:2283
PLUGINTYPE::SCENESAVER
@ SCENESAVER
Scene saver. (SceneSaverData)
ABCEXPORT_PARTICLE_GEOMETRY
@ ABCEXPORT_PARTICLE_GEOMETRY
定义: falembicexport.h:31
SaveDocument
Bool SaveDocument(BaseDocument *doc, const Filename &name, SAVEDOCUMENTFLAGS saveflags, Int32 format)
MSG_RETRIEVEPRIVATEDATA
#define MSG_RETRIEVEPRIVATEDATA
A generic private message to retrieve data from an object. Specific for every type of object so no pu...
定义: c4d_baselist.h:385
ABCEXPORT_HAIR
@ ABCEXPORT_HAIR
定义: falembicexport.h:26
ABCEXPORT_XREFS
@ ABCEXPORT_XREFS
定义: falembicexport.h:30
C4DAtom::Message
Bool Message(Int32 type, void *data=nullptr)
定义: c4d_baselist.h:1394
SAVEDOCUMENTFLAGS::DONTADDTORECENTLIST
@ DONTADDTORECENTLIST
Do not add the saved document to the recent file list.
BasePlugin
The base class for Cinema 4D plugins.
定义: c4d_baseplugin.h:63
RetrievePrivateData::data
void * data
The address returned.
定义: c4d_baselist.h:830
BaseContainer
定义: c4d_basecontainer.h:46