Raycast operator template working?
Aha figure it out! I had to call the operator via the search menu.
So the process is:
1. run the script,
2. move mouse to viewport,
3. press space and search for raycast.
4. chose "View3D: RayCast View Operator"
5. click on your object