1
$\begingroup$

How do I create a picking session in python?
Say I have a script that does some operations, but its want the user to pick first a source object and then a target? How do I invoke the picking?
My guess is bpy.ops.view3d.select(), but I get a context error all the time...
What is the secret?

$\endgroup$