"Lukas started working on canvas rotation for Krita in 2009"
Sorry, so Krita has had canvas rotation for a long time. I didn't think it had it because in the latest version, I couldn't use touch to rotate the canvas, only scale and scroll. I also tried some mouse combos (e.g. middle button + drag like in Blender) and checked the menus but didn't see any canvas rotation (only a lossy image rotate).
Boudewijn, excuse my jealousy of Krita. I'm just saying it takes a lot of tolerance for pain and allegiance to the FSF to stick with GTK :)
"The guideline also are aligned to the viewbox." I noticed that too and it doesn't make sense.
On Sun, Apr 23, 2017 at 9:46 AM, Miguel Lopez <reptillia39@...3425...> wrote:
Actually, I think I just had another idea, and yes it means scrapping the rotating canvas function. What about implementing rotate/flip entire vector objects (including the info within the objects and layers) within arbitrary numbers and orthographic numbers and being able to record the number? It'd be almost like rotating/flipping entire canvas. Also, when I was testing squares when the canvas is rotated, the square is still aligned to the viewbox lines. The guideline also are aligned to the viewbox. Neither of those is suppose to happen. Rotate/flipping entire vector objects including information doesn't really affect the the creation of squares or guidelines relative to your own viewpoint.
On 4/22/2017 11:30 PM, Miguel Lopez wrote:
Uh, they do have canvas rotation at 15 degrees last time I checked. Just pointing that out.
"There's a couple of possibilities here: either 4 and 6, or ctrl+[ and ctrl+] for basic 15 degrees rotation left and right. But you can also have more sophisticated rotation with Shift+Space+drag or shift+[image: middle mouse button]+drag. To reset the rotation, press 5." - Introduction to Krita Coming from Sai at docs.krita.org
Plus, Krita can be horrifying to work with at times. More instable than Inkscape Development Builds at times.
Oh, and a question. If I were to rotate and flip, can I save using that coordinate and then freeze transformation akin to maya? Let me explain a little further.
In Maya, you can edit the rotation, scale, and position of a object. If you freeze the transformation, the scale, rotation, and position becomes 0 without affecting the actual coordinate of the vertex of a object.
So, in Inkscape, this is like flipping/rotating the entire scene, but resetting it back to 0 with the flipped/rotated result. I don't think this is neccessary unless one wants to do something like mirror scene. Maybe it can come in handy for some people. On 4/22/2017 11:00 PM, Yale Zhang wrote:
Well, I built on what Jabier and Tav did, so hats off to them too.
I just realized even Krita doesn't have canvas rotation (Autodesk Sketchpad is the only other program I know). Good to be ahead of Krita for once (and all the fancy Qt, VC SIMD libraries they use)!
On Sat, Apr 22, 2017 at 12:16 PM, Victor Westmann<victor.westmann@...972.....> <victor.westmann@...400...> wrote:
That's amazing Yale! Can't wait to use Inkcape in a tablet in the near future to test this new gestures.
Cheers.
--Victor Westmann
2017-04-22 5:04 GMT-07:00 Tavmjong Bah <tavmjong@...8...> <tavmjong@...2205.....>:
Looks nice.
I'll try to set some time aside next week to have a good look at the code and hopefully merge it.
Tav
On Sat, 2017-04-22 at 04:27 -0700, Yale Zhang wrote:
Rotate should be useful. I think most people find it easier to draw vertical lines than horizontal since there's less wrist motion.
I've updated my touchscreen code to support canvas rotation. Anyone want to use it? https://youtu.be/-8v1EVKqcaM
transform math:https://1drv.ms/u/s!AngRQgSreBCehTiw0R_rGV7gxQIP
A couple of notes: *awkward coordinate system - Why is the canvas completely off the screen when rotation=0, offset=0? It seems the window's Y axis points down while the document's Y axis points up?
- why is a positive rotation counter clockwise? In a left handed
coordinate system, it should be clockwise.
*I couldn't figure out how to set the rotation, zoom, and offset using the functions in the desktop class (scroll_to_point(), zoom_absolute_keep_point() and had to access the private affine matrix directly. Calling those functions in sequence seems to add unwanted offsets on top of each other instead of letting me set the offset directly.
*had to roll back r15548 or else touch screen events get lost somehow.
- I couldn't figure out how to use the GTK gesture classes (which are
probably more robust), so wrote my own code for detecting zoom, rotate, and scroll gestures. When I tried, the gesture classes weren't receiving any events. 2nd, it seems only 2 finger rotation and zoom gestures are recognized, but not 2 finger scrolling. There is a 1 finger scroll gesture.
-Yale
On Tue, Apr 4, 2017 at 8:35 PM, Raghavendra Kamath<raghu@...3496...> <raghu@...3496...> wrote:
Hi Tav,
On 2017 Mar 30 13:29:23, Tavmjong Bah wrote:
Hi,
I've just checked in code to quickly preview canvas rotation. Like Jabier's code, it is triggered by Ctrl-Middle-Mouse-Button. It lacks all the fancy graphics of Jabier's version. Some of this can be added back if there is user demand. There is certainly some tweaking to do.
I also implemented canvas flip (Horizontal and Vertical). This is not in the GUI yet. Flipping can be bound to keys (not done by default since there are few keys free).
So here is a summary of what you can do:
- Rotate canvas
- Via GUI spin-entry box:
- Directly enter a number.
- Mouse up/down to change by ±1°.
- Click on + or − to change by ±1°.
- Left click to open pop-up.
- Via Key shortcut
- Inkscape Preferences->Interface->Keyboard Shortcuts, View
- Rotate Clockwise (Recommended: 'Shift-(')
- Rotate Counter-Clockwise (Recommended: 'Shift-)')
- Rotate 0 (Recommended: '0')
- Uses /options/rotateincrement/value for step size if set.
- Via Ctrl-Middle-Mouse-Button. Drag cursor keeping Middle-Mouse-Button down to rotate. Release mouse button to end.
- No auxilary key: ±1°.
- Shift: ±15°.
- Alt: arbitrary rotation.
- Shift + Ctrl: reset to zero.
- Flip canvas
- Via Key shortcut
- Inkscape Preferences->Interface->Keyboard Shortcuts, View
- Flip Horizontal (Recommended: 'Shift-H')
- Flip Vertical (Recommended: 'Shift-V')
- Flip None
Thank you very much for the work. The shortcut keys are great now :)
-- Raghavendra Kamath Illustratorraghukamath.com
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing listInkscape-devel@...1901...://lists.sourceforge.net/lists/listinfo/inkscape-devel
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing listInkscape-devel@...1901...://lists.sourceforge.net/lists/listinfo/inkscape-devel
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing listInkscape-devel@...1901...://lists.sourceforge.net/lists/listinfo/inkscape-devel
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing listInkscape-devel@...1901...://lists.sourceforge.net/lists/listinfo/inkscape-devel
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Inkscape-devel mailing listInkscape-devel@...1901...://lists.sourceforge.net/lists/listinfo/inkscape-devel
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel