Push/pull (or drag) with increment ?
-
In scripts when we drag with mouse, code looks like:
view.draw_line startPossition, endPossition
'start Position' is defined by click, 'end Position' is moving with mouse.
Is it possible while dragging mouse to snap on every next 0,5cm or 1cm (for example) instead of smooth dragging.
What code can I use to obtain such a behavior? -
@tboy said:
In scripts when we drag with mouse, code looks like:
view.draw_line startPossition, endPossition
'start Position' is defined by click, 'end Position' is moving with mouse.
Is it possible while dragging mouse to snap on every next 0,5cm or 1cm (for example) instead of smooth dragging.
What code can I use to obtain such a behavior?Here is a simple example of how I would do it.
-
Thank you !
Exactly as I wanted to be.
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