This is probably a no-brainer, but somehow I can't find the solution with google. How do I execute a function once, if an object is clicked?
import bpy def something(obj) print(obj.name) return ... if anyObjClicked: something(context.scene.active_object)
Result should be:
Cube Cube Cube Cube ...