Allow snapping of gradient masks when holding a modifier key (such as control)
Is your feature request related to a problem? Please describe.
It is difficult to align a perfectly vertical / horizontal gradient mask
Describe the solution you'd like
When changing the angle of a gradient while holding a modifier key (such as control), snap that gradient to fixed degrees, such as every 30° or every 15° (so at 0°, 15°, 30°, 45°, 60°, 75°, 90°, 105°, etc).
Alternatives
Didn't think of alternatives
Additional context
Explaining with screen recording: https://youtu.be/usjcMI38S5o
Use the mask manager and select the gradient to get a set of sliders, one of which is the rotation. 0/180/360 is norizontal, 90/270 is vertical.
I don't know if you're aware of this, but you can have the gradient midpoint line go through two specific points in the image by dragging your mouse from the first to the second when placing the gradient. So you can also use that for vertical/horizontal gradients if you have an appropriate line in the image that you can follow.
When using this approach, if you were to orient the image such that the drag used goes straight up, the module's effect will be on the left-hand side.
Right, I did not know I could find the properties in the mask manager, thanks for pointing that out.
I noticed that the gradients are also affected by rotation applied to the image. I think it makes more sense to have gradients be relative to the canvas, not to the original pixels of the image. That is, a 0° rotation means a visible 0° rotation, not a 0° relative to the original image (also with regards to the distortion of the lens correction I mentioned here which I thought was a bug).
That being said, I still think being able to snap the rotation with a modifier key would make the process more user friendly.
If this is as intended, case closed.
All masks are drawn in coordinates relative to the input image, so that changes in earlier modules (such as perspective or lens correction) don't change which pixels a drawn mask applies to. This become especially important when re-using a shape in another module.
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.