Coordinate Pick

The coordinate_pick() function requests for the user to select a coordinate in the running application. This can either be a coordinate on an object or a coordinate in the action plane.

For example, the script below requests for the user to select a point in the view and writes the selected point to the report window.

from mapteksdk.pointstudio.operations import coordinate_pick, write_report
from mapteksdk.project import Project
 
project = Project()
 
point = coordinate_pick()
 
write_report("Coordinate pick", ", ".join([str(x) for x in point]))