Allow painting straight lines by holding the shift key#21393
Allow painting straight lines by holding the shift key#21393wawanbreton wants to merge 1 commit intomainfrom
Conversation
| I tested this out on my 5.11.0 build with the updated controller.py but finding that when I hold the shift key and select the second point to apply the straight line the view is reverting to solid view & exiting paint mode |
Then you must have updated only the code in the Cura part, you also need to apply this change: Ultimaker/Uranium#1024. I just found out that it causes some behavior changes in the object selection though, so will provide a fix later. |
Yes I applied that, unless the previous version is cached somewhere and it's not being updated |
Indeed, if I remember correctly, on a Windows installation part of the application runs from a frozen version (even if the Python source is also provided). The |
Ahh That'll be the culprit then... If it's not updatable I'll just have to be patient & wait for 5.12 |
| I think it might be possible, but not without a whole lot of hassle, and at the risk of breaking the current install. It's better to wait for 5.12 I think, as these changes have been made on top of the in-development 5.12 as well. |
I think that's a very good idea. Looking forward to trying some of the new features I've seen popping up :-) |
I don't will it will make it into 5.12 though. We already have passed feature freeze and this is definitely a new feature 😬 so I am afraid you will have to wait until 5.13... |
|
| I have a separate installation of Cura that I use for development, the changes that are in UM require the I just replaced the key 😝 instead of shift as the modifier, I used Q 🤷 and the shift pressed was replaced with q_pressed So if you are not hellbent on using shift for testing, you can use the file below, and hold Q |
Awesome. Thank You. 😊 From the brief testing I've done so far I do have a couple of observations, which I don't know how relevant they are to the pukka version
Once the Q button has been pressed the paint tool activates & works as normal in the active session, even when loading new models as long as it's in the same session Maybe these are the 'behaviour changes' @wawanbreton was referring to earlier |
| @PartySausage That one is on me. Alternative version with Ctrl instead of Q |
| That's great work thanks for the quick turn around on the fix. This is going to save a load of trial & error painting seams. If I was to ever suggest additional improvements to this feature it would be to have a single point click option which then automatically paints a full vertical seam for the height of the model |
Makes sense, I overlooked that
Drawing π/4-aligned lines could be interesting indeed, that comes together with the idea of drawing a full vertical line
That would be nice indeed, but painting a consistent line over a curved 3D mesh is much more complex than our currrent approach 😛 |
Nope, but the Q key is not handled as the Shift key, so with Shift you should not have this behavior. |


Kooha-2026-02-11-09-05-30.webm
You can now draw straight lines by holding the shift key, and mix free drawing with straight lines.
Requires Ultimaker/Uranium#1024
Suggested in #21377