Size of input point?
-
I have made a script that hides edges when clicked on and it works fine but I would like to be able to set the size of the input point to make it easier to hit the edge.
How can that be done?
Here is the central part of the code that hides the edge.def onLButtonDown(flags, x, y, view) @ip.pick(view,x,y) # Get the current pick object if (@ip.edge) then @ip.edge.hidden = true end # if on a edge, hide it end -
You might try using a Sketchup::PickHelper class interface instead, and the new (SU2016+) window_pick() method.
Otherwise there is no way to change the pick aperture size, and Sketchup::InputPoint would use a "OnEdge" inference anyway.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement