Part of my project involves integrating functionality similar to a graphing calculator into the image editor of Blender. Once complete this will just be a nifty little time saver that helps avoid leaving Blender to bring up other tools.
bpy.props.FloatProperty for a few metrics, such as domain minimum and maximum, so that they can quickly be set in Blender for an algebraic function to be drawn.
I don't want to work with these directly from the
bpy.props objects because to do so would sacrifice usability. For example, we're used to a straightforward scale metric in Blender where if we want an object scaled to 50% on the x-axis, we simply set the x-axis scale to 0.5. But in an algebraic function where the vertical depends upon the horizontal, this fifty percent scaling is actually accomplished by multiplying the independent variable by two.
So, it helps the user to have something sit between the interface and all the math going on under the hood. That is exactly the kind of thing the update, set, and get fields are meant for in
The problem is that I can't find an example about how to format that string.
set = "self.set_thing ( )" ?
set = "self.set_thing" ?
self = "set_thing" ?
set = "self.set_thing ( self, thing )" ?
set = "set_thing ( self, thing )" ?
There are probably possibilities there that I'm not thinking of yet. But how exactly do we format that and what are the restrictions? Do the set methods have to be in the object class that the
bpy.props object is a data member of? Can it be any object, i.e.
set = "thing_container.set_thing(thing)"?
Finally, with a getter and a setter field, what functionality does the update field have? Does this just allow for another method call in addition to the setter, whenever the setter is called?