THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/06/2007 at 04:56, xxxxxxxx wrote:
Cinema 4D Version: 10.102
Platform: Windows ;
Language(s) : C++ ;
Sry for the somewhat unclear subject and for spawning another thread again already, but my problem is:
I'm writing a somewhat weird exporter kind of plugin (derived from CommandData), which exports to multiple files at once and uses some third company programs to compile those afterwards. For that I need some additional information by the user of course:
a) Where the third party programs are
b) Where he would like to have the result files and folder structure put
Now, I can save the info about the third party programs, I just save them in a BaseContainer obtained by GetWorldPluginData(...) (and eventually created with SetWorldPluginData(...)), no problem with that, works like a charm.
The problem is that the requested destination folder should be stored per-document, not in the C4D settings. I found GetToolPluginData(BaseDocument* doc, LONG id) to retrieve a BaseContainer related to a plugin from a document, but I can't seem to find the corresponding Set... function, so I suppose that's something to do with ToolData plugins and is not what I'm looking for?
Furthermore I have tried just writing the infos I need into a subcontainer of the BaseContainer obtained by doc->GetSettingsInstance(SETTINGS_GENERAL), but sadly that call always returns NULL, although I assumed every document has to have those general settings.
So, my question is: Where should I store plugin data related to a single document so that it gets saved with the document and is accessible when the document is reopened?