Hi,
I’m currently working on a script depending on the list of selected objects. But I do not want to put in some kind of “update” button or ask blender periodically for the selected object list.
Hence my question, is it possible to register a callback function oder something similiar so that blender will inform my script if the user changed the selection of objects?
Thanks for help
There is no way to register a callback, however this a prime candidate for a scriptlink. You can either have 2 scripts, one to detect if the selection has changed, and the script to call if it has, or just put them both in one script and have them linked to a redraw event.
But if I understood this correct, scriptlinks works the way that if the specific event occured, a given script is called.
But what I’m looking for is a gui application that might change if the object selection is changed.
Can someone give me a clue how to implement this via scriptlinks?