Skip to content

node tangents snapping#650

Open
pgilfernandez wants to merge 3 commits into
friction2d:mainfrom
pgilfernandez:stepped-rotation-v1
Open

node tangents snapping#650
pgilfernandez wants to merge 3 commits into
friction2d:mainfrom
pgilfernandez:stepped-rotation-v1

Conversation

@pgilfernandez

Copy link
Copy Markdown

Related with #250 and #628 (comment)

While rotating you can use shift modifier for 15º snapping or ctrl/cmd for 1º snapping.
It's indeed compatible with numerical input (it doesn't block it), rotating with R and gizmo.

Note that it is a stepped rotation by 15 or 1 degrees starting with the original rotation value the object had, it is not a snapping rotation where the rotation snaps to "previously fixed canvas rotations" (0º, 15º, 30º, ...). BTW, it's the way Inkscape and other software does it.

Further implementation would be using variables instead, so the rotation steps are configurable via Preferences and make the modifier also configurable (this is more related with shortcuts configuration...), but I don't know if that part should wait for v1.1 as it needs to change that panel... let me know what do you think and we find the right place.

I'm going to investigate if this feature can be as easily be implemented for node tangents too...

@pgilfernandez pgilfernandez mentioned this pull request Nov 15, 2025
@pgilfernandez

Copy link
Copy Markdown
Author

Well, I was able to add snapping to node tangents as well for both normal path nodes and keyframe bezier tangent nodes at the timeline Graph view mode... pretty cool and handy 😄

In the way I found a regression that I also fixed with #651

@pgilfernandez pgilfernandez changed the title Stepped rotation Stepped rotation + node tangents snapping Nov 15, 2025
@pgilfernandez

Copy link
Copy Markdown
Author

Hi @rodlie,

I've rebased this PR, it works fine in RC3 and adds this nice and requested feature, please, have a look at it and consider it to be included in final v1.0 😉

@rodlie

rodlie commented Jan 1, 2026

Copy link
Copy Markdown
Member

consider it to be included in final v1.0 😉

Sure, will take a look this weekend.

@rodlie

rodlie commented Jun 14, 2026

Copy link
Copy Markdown
Member

Step rotation is ok to add for v1.0. Still unsure about the rest. How does the keyview work?


Step rotate commit with modifications: cfe2d62

  • can configure the steps in grid settings

@rodlie

rodlie commented Jun 14, 2026

Copy link
Copy Markdown
Member

@rodlie rodlie changed the title Stepped rotation + node tangents snapping node tangents snapping Jun 14, 2026
@rodlie rodlie added this to the 1.1.0 milestone Jun 14, 2026
@pgilfernandez

Copy link
Copy Markdown
Author

How does the keyview work?

I guess you mean the Timeline Graph view and how bezier tangents are handled, right?

There, holding Shift while dragging a keyframe bezier handle constrains its angle to 15° increments relative to the keyframe. Unlike object rotation, these are fixed visual angles (0°, 15°, 30°, etc.), not steps relative to the handle’s original angle and, indeed, it only affects tangent handles, not the keyframe value or object rotation. It's so handy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants