I recall I did something similar long time ago, and so I created a new asset filter, and edited the associated settings:
DzAssetIOFilter *myFilter=myAssetMgr->getFilter(10); //10 indicates it’s a pose preset
DzFileIOSettings *mySettings = new DzFileIOSettings();
myFilter->getDefaultOptions(mySettings); // get option settings for this filter
mySettings->setStringValue(“RootLabel”, “Genesis”); // set the object name
mySettings->setIntValue( “RunSilent”, 1 ); // set to 1 to skip import dialog
myFilter->doSave(mySettings,”/myPosePreset.duf”);
Now, if I use it with “RunSilent”=0, the save dialog will prompt asking where to save the file, options etc., and obviously it will create the file.
With “RunSilent=1” the routine will run but no file will be created, and the doSave function returns a “DZ_OPERATION_FAILED_ERROR 0x00000062”.
Any DAZ folks around here could tell me what’s missing? Thanks