Tn_Pink Posted October 22, 2014 Share Posted October 22, 2014 Good day, What is the best function I can use to get Mouse or User Selected object in Vectorscript? Thanks so much in advance. Quote Link to comment
Hippocode Posted October 22, 2014 Share Posted October 22, 2014 Good day, What is the best function I can use to get Mouse or User Selected object in Vectorscript? Thanks so much in advance. You can get the point a user clicks in the document (might only work for tools) http://developer.vectorworks.net/index.php/VS:vstGetPt2D You can also get an object when clicking somewhere: http://developer.vectorworks.net/index.php/VS:PickObject Again this might not work if not a tool. If you just want a handle to the selected object(s) use a foreachloop with criteria it being selected. Quote Link to comment
Vectorworks, Inc Employee klinzey Posted October 22, 2014 Vectorworks, Inc Employee Share Posted October 22, 2014 If you are using a tool the best thing to use is TrackObject() It will highlight the object as the user moves over it to indicate a valid selection. Quote Link to comment
Tn_Pink Posted October 23, 2014 Author Share Posted October 23, 2014 To Hippothamus and klinzey, If you just want a handle to the selected object(s) I used the function FSActLayer. Then, I solved my problem already. Thanks so much for your answers. 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.