Show messages: All
1-3
4-11
From: Metin Seven (METINSEVEN)
Hi Michael,
I've noticed one drawback to this way of turning off or on all snaps: if one of the snaps is already turned off it will be toggled on again.
Is there a way to turn off or on all snaps at once (while keeping the snap subtypes intact) ?
Thanks in advance.
Regards,
Metin
———————
visualization • pixel art • illustration • animation • 3D design —
https://metinseven.nl
From: Michael Gibson
Hi Metin, try using this:
script: /* Toggle snaps on or off */ moi.drawingAids.gridSnap = !moi.drawingAids.gridSnap; moi.drawingAids.objectSnap = moi.drawingAids.gridSnap; moi.drawingAids.straightSnap = moi.drawingAids.gridSnap;
That one will toggle grid snap, then make object snap and straight snap match the new grid snap state.
- Michael
From: Metin Seven (METINSEVEN)
Nice! Thank you Michael!
Message 9045.7 was deleted
Message 9045.8 was deleted
From: Chris (CEEN)
Hi,
bumping this thread: is there a way to toggle only the active snapping?
The last version of the script alway activates all three snapping when used for toggle. Thx!
From: Michael Gibson
Hi Chris,
re:
> bumping this thread: is there a way to toggle only the active snapping?
Sorry I don't understand what you mean by "active snapping", can you maybe describe a little bit more about what you are asking?
- Michael
From: pior (PIOR_O)
I believe that by "active snapping "the OP means "the currently activated snap mode(s), whichever they may be." In other words the OP is likely looking for a functionality similar to that of Inkscape, where "Enable Snapping" on/off turns off all current snapping options altogether (but without losing the granular snap settings).
Image Attachments:
2022-12-05 16_45_44-New document 1 (no filters) - Inkscape.png
Show messages: All
1-3
4-11