Can I use an instance of an object created with a custom operator to run other custom methods in the same class?
I am trying to write a Python code to save a 3-d model created in Blender so that a simulation program can read it.  In order to save the data from the different types of objects, I have a list of if statements.  I was thinking I can avoid that if I could take advantage of the fact that Python is an object-oriented language and each object could have its own method to save data.
After reading the following question and answer,
Is it possible to create an own object data type through Python?
I think that the answer to my question is no, that will not work.  I may try to use a custom property to store the information I need for each object when I create it.  Then I could just get the value of the custom property instead of having a bunch of if statements.
I think custom properties have an update function, so that if the object is modified, I could catch that in my Python code and adjust the custom property.  Since I am only creating 3d models and not using other aspects of Blender, hopefully a custom property would not cause problems with memory use and execution time in Blender.