On 28/04/2016 at 11:16, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Windows ; Mac ;
Language(s) : C++ ;
---------
Hi,
I have SceneSaver plugin and I need to do some modifications of shown description based on selected filename. I tried to check DOCUMENT_SAVEDOC_DESTINATIONPATH, but it is not set before Save method is called (nor during MSG_DESCRIPTION_IMPEXPORT_INIT neither in Description callbacks). I found similar question (https://plugincafe.maxon.net/topic/8627/11286_retrieving-filename-before-import-dialog-solved) regarding SceneLoader plugin, but the answer there is not usable in case of saver.
I know I could register saver with PLUGINFLAG_SCENEFILTER_DIALOGCONTROL and run my own dialog from within Save method, but I would like to avoid added complexity if there is better solution...
So, is there a way to get name of selected file before Save method (preferably in MSG_DESCRIPTION_IMPEXPORT_INIT message)? Or if not, is it possible to open registered description manually from Save without handling my own GeDialog instance?