AlanW Posted September 8, 2016 Share Posted September 8, 2016 Hi, is there a script or node to capture the mouse click and output its co-ordinates?? Thanks Quote Link to comment
DomC Posted September 8, 2016 Share Posted September 8, 2016 Hi Alan I can give you that: Quote #Python Script def PickPointCallback(pt): vs.AlrtDialog('You clicked on the point with coord: \n'+str(pt)) vs.GetPt(PickPointCallback) But That's just for one click. Somehow the mouse interaction, happens always at the end of the script. So the vs.GetPt Function, hat do be connected to a callback function. I never tried this in python. There are several Vectorscript Functions to call preview drawing etc. during script execution. But they seems to work different in a python script (Tried that once -> I tried once, but resigned fast) Quote Link to comment
AlanW Posted September 8, 2016 Author Share Posted September 8, 2016 Thanks, this is what i thought but it kept crashing VW and this did also. Must be using it all wrong as usual, Thanks Quote Link to comment
Kevin McAllister Posted September 8, 2016 Share Posted September 8, 2016 I get the crosshairs to choose a point. When I click VW disappears and crashes. It feels like maybe this code won't work from within Marionette..... Kevin Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.