"pick session"

On 10/11/2014 at 07:33, xxxxxxxx wrote:

Hello everyone!

Is there a way to prompt the user to pick positions in the viewport out of a python script?

For Softimage I once wrote a tool that aligns object(s) to one another, and it required the user to interactively pick 6 points (= positions). There's an SDK function in XSI called "PickPosition()" for such cases. When invoked, the user can place some green crosshair cursor in the scene, with point snapping automatically active. The function then returns 3D coordinates.

Look like this:

Do we have anything similar here?

Thanks a lot!
Best regards

On 11/11/2014 at 02:51, xxxxxxxx wrote:

Hello and welcome,

I don't think something with the exact same functionality exists. You will be able to implement such a tool by creating a ToolData plugin. Another way could be to use a while loop inside a script in the Script Manager and to handle mouse events there.

best wishes,