2.5 python callback when custom property changed by user?

Does anyone know if there is a way to automatically cause some python code to run whenever the user makes a change to a property in Blender 2.56? Specifically I need my python code to execute when the user changes a custom property of an object, and also when the user changes a custom property of a scene. Any ramblings, help, etc. will be appreciated.

Hi,

the method outlined in this post should do what you require. http://blenderartists.org/forum/showthread.php?t=203982 Have the custom properties that you want to check on as variables of the driver… and you can pass them to the python script.

OK, thanks. I’ll take a look.