On 19/01/2016 at 07:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R16+
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
My latest plugin does import/export. Export works flawlessly. Import is a bit more troublesome since it must be 'merged' with the active document.
For registration, this is the setup:
return RegisterSceneLoaderPlugin(ID_IMEXANIM_SCENELOADER, "ImExAnim (*.iea)", PLUGINFLAG_SCENELOADER_MERGEORIGINAL, ImportAnim::Alloc, "Fimportanim", "iea");
And the filter:
if (!(filterflags & SCENEFILTER_MERGESCENE))
return FILEERROR_NONE;
No matter what filters I check on Load(), if I use "Open...", it creates a new document (or fails as an Unknown File Format). Must one use "Merge..." to get the active document for importing information into the active document? The documentation and examples do not explain.