THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/10/2010 at 20:41, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ;
Language(s) : C++ ;
---------
How do I reset my plugin preferences? I'm creating a filter export plugin, and my export dialog has some
checkboxes which are unchecked. I want them checked when the program starts up, but this isn't working:
Bool
MySaverData::Init(GeListNode *node) {
//BaseContainer *bc = ((BaseList2D* )node)->GetDataInstance(); // ??
//BaseContainer* bc = GetWorldPluginData(MY_PLUGIN_ID); // returns NULL!
BaseSceneSaver *saver = (BaseSceneSaver* )node;
BaseContainer *bc = saver->GetDataInstance();
if(bc) {
bc->SetBool( MY_EXPORT_OPTION, TRUE ); // Doesn't work, option still unchecked
bc->SetLong( MY_EXPORT_OPTION, (LONG)1 ); // Doesn't work, option still unchecked
bc->SetData( MY_EXPORT_OPTION, GeData((LONG)1) ); // Doesn't work, option still unchecked
}
return TRUE;
}
My resource .res file looks like:
CONTAINER Fmy_export
{
NAME Fmy_export;
INCLUDE Fbase;
GROUP MY_EXPORT_GROUP
{
BOOL MY_EXPORT_OPTION { }
}
}
Also, I don't know where my preferences are saved on file. There's a "Open Preferences Folder..." button,
but the plugins directory in that folder is empty. So, don't know how to delete them from file either.