BoolProperties not saved when calling export operator
Hi, I'm writing my own addon in which I do several things and I use this one to export my objects to .mesh files. Instead of clicking on Files > Export > Ogre3D, I created a button that does it in one click for optimisation with the following operator: bpy.ops.ogre.export('INVOKE_DEFAULT').
The problem is that some of the different options that I selected are not saved or remembered the next time I call the operator for exporting.
For example I deselected these 3 options:
The next time I call the export operator in my script they are not disabled:
However when I export this way: Files > Export > Ogre3D, (so by using its own addon) it does save and remember the selected options
I'm new to Blender and Python, do you have any idea how to solve this problem? Thanks in advance.
The addon:
Check out this document: https://github.com/OGRECave/blender2ogre/blob/master/Options.md
On how to export using the command line.
Also in the main README file it explains how to run blender2ogre from the command line.
Ok thank you! So according to what I read (because there's no mention of it), I can't like open the file manager with the command line, select the options that I want then export? If I use the command line, I have to specify all the options in arguments?
Ok thank you! So according to what I read (because there's no mention of it), I can't like open the file manager with the command line, select the options that I want then export? If I use the command line, I have to specify all the options in arguments?
Technically the options you specified should be remembered.
So you should indicate in the command line the options that would be different from your saved ones.
In most cases that would be the filename.