View.pick_helper dosen't work?
-
When I try to use
view.pick_helperin anonLButtonUpevent it doesn't return any elements. It does return a PickHelper though which I can use to do a.do_pick(x,y)- but that doesn't allow me to set the radius.def onLButtonUp(flags, x, y, view) ph = view.pick_helper(x, y, 20) puts ph.count # > 0 endWhy doesn't it pick anything?
-
I noticed that once too, but found a work-around. I don't know if it is bad documentation or a missing feature.
the test_point method allows an aperture (never tried it.) Also, maybe try passing an aperture to do_pick - I have never tried that either, but sometimes you find undocumented features.
Otherwise, I find pick_helper methods confusing and get them working through trial-and-error.
-
I'll poke about some.
I guess this is one for the Typos and Questions thread - as well as the bug section. (Or has it been reported already?)
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