I want to write a function for the bpy.app.driver_namespace because I
need them in a driver expression and these function needs several
properties of the driven object to work. Specifically I need the bound_box
of the object and if I pass these to the function by Single Property variables
I have to add and pass 24 variables. So, the way of using Single Property
variables is not a smart one in that case.
If I pass the bound_box directly (driverFunc(bpy.context.scene.objects["Cube.001"].bound_box)
I only need one parameter however the Id of the object ("Cube.001")
wouldn't be updated if the name of the object changed.
The perfect case would be the use of an "self" variable (driverFunc(self.bound_box))
which represents the driven object.
Would it be possible to extend the driver namespace by such a variable
like in blender 2.4x?