I have the most unusual and frustrating issue at the moment. I've got a script, but I just can't get it to run. I've tried live edit, not live edit, using the run script button with and without the register check box. I've even tried starting a new blend file and importing everything as a proper add-on. None of them work.
BUT, if for what ever reason, blender crashes, (which it is doing quite a lot at the moment... (I'm running the macOS Sierra beta which I probably shouldn't have done), then the script updates, and runs perfectly. It's just so impossible to use right now.
draw(self, context):
use that (obj = context.object
) rather thanobj = bpy.context.object
. Without aforementioned file, my guess is that it's a lost reference. $\endgroup$