Skip to content

Conversation

@singhutsav5502
Copy link
Contributor

@singhutsav5502 singhutsav5502 commented Apr 11, 2025

Adds Proportional Editing Mode

Functionality similar to Blenders Proportional Edit tool ported to Graphites 2D implementation.

Alt + P to toggle Proportional Editing mode.
Mouse Scroll Up/Down to increase/decrease Influence Radius.
Integrate with GRS tool.

Introduces 8 falloff types:

  1. Constant
  2. Linear
  3. Sharp
  4. Root
  5. Sphere
  6. Smooth
  7. Random
  8. Inverse Square

Closes #2317

@Keavon
Copy link
Member

Keavon commented Apr 11, 2025

!build

@github-actions
Copy link

📦 Build Complete for 3303996
https://ffda505b.graphite.pages.dev

@Keavon
Copy link
Member

Keavon commented Apr 11, 2025

A few notes:

  • It should work with G/R/S
  • It should apply to the original drag starting location's range of points, not a continuously updating range of points (see comparison videos below)
  • It should only show the influence circle when dragging, not always when the feature is enabled

https://files.keavon.com/-/MiniatureDisguisedScarletibis/capture_34_.mp4 vs. https://files.keavon.com/-/SlipperyStridentCaiman/capture_35_.mp4

@Keavon
Copy link
Member

Keavon commented Apr 12, 2025

!build

@github-actions
Copy link

📦 Build Complete for 4c15fea
https://8e2c8c2e.graphite.pages.dev

@singhutsav5502
Copy link
Contributor Author

Hi, Still working on the integration with transformation.rs for the GRS functionality.

@Keavon
Copy link
Member

Keavon commented Apr 13, 2025

!build

@github-actions
Copy link

📦 Build Complete for d60f6ea
https://550fd3ac.graphite.pages.dev

…late falloff factor even after original select has been moved ( useful when radius changes ), selection center remains centered based on the average original selection even when radius is changed
@Keavon Keavon marked this pull request as draft April 20, 2025 07:41
@Keavon
Copy link
Member

Keavon commented Apr 24, 2025

!build

@github-actions
Copy link

📦 Build Complete for 075768b
https://73457d87.graphite.pages.dev

@Keavon
Copy link
Member

Keavon commented Apr 24, 2025

Outstanding issues as communicated in Discord:

  • With rotation, points seem to converge inwards:

    capture_48_.mp4
    capture_49_.mp4
  • Dragging a point with the Path tool, as opposed to using G/R/S, is pretty broken:

    capture_87_.mp4
  • Performance really doesn't scale well, it gets super sluggish with a grid like in the video above

  • Your PR adds a lot of lines of code. I'll need you to break out most of the functionality into its own file dedicated to proportional editing, since this is too much specialized behavior in the path tool.

@singhutsav5502
Copy link
Contributor Author

Hi, will start by restructuring the code into independent files first.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proportional editing in the Path tool

2 participants