Check if an object gets selected?

Hey,

is it possible to check if an object gets selected? I wanna perform an action once/if the user selects an object in the scene.

/GB

The Blender/Python API can’t (yet)…

  • Define callbacks or listeners to be notified when data is changed.

Source: http://www.blender.org/api/blender_python_api_2_72_1/info_quickstart.html

It’s only possible with a hack, basically check on every scene refresh (~30x per second) if .select is True for a certain object.

Oh, thank you for notifying me! :slight_smile: