• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Size of input point?

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 2 Posters 337 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    Pixero
    last edited by 7 Nov 2016, 10:11

    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

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dan Rathbun
      last edited by 7 Nov 2016, 19:05

      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.

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement