Hello,
I have a scripting question which may or may not be challenging. Currently I’m maintaining a set of custom Blender import/export scripts for MDB formatted files that are used in a game engine. The imported MDB files carry information about some game-related texture properties that I’d like to retain in preparation for export. This information consists of a set of eight bit flags, some of which are pretty useful in controlling how a model will work in the game.
From web searches, it looks like I can store these custom properties on the material. However, I would also like to be able to modify these flags on a per material basis within Blender. I was thinking I could manage the bit flags using stateful controls located in the Custom Property section at the bottom of the Material Properties panel. If possible, the import would automatically create these controls, then the Export would query the control states. If possible, I’d like to maintain these controls and their states across saves to the .blend files.
Does this seem like a feasible approach? If so, please could you give me some pointers about the right way to get started?
I’m by no means an expert in Blender or python, and at present I know just enough to be useful for my modding needs. Thank you.