Pick object without the pickbutton
I would like to select objects, run my script and pick an object in the scene, so my selected objects are in the same Layer than picked one.
But I don't want to have to click a "pickbutton" after running my script.
Is it possible ?
Happy new year !!!!