gotcha

Author Topic: Help with the bend tool  (Read 2282 times)

May 31, 2018, 08:56:17 AM
Read 2282 times

lefteris.lydios

  • Jr. Member

  • Offline
  • ***

  • 22
  • Gender
    Male

    Male
I'm using Inkscape as a tool to create VideoScribe animations. I'm doing fine with the basic stuff but now it's time for something more complicated.
I have a healthy plant in svg format (left) and I'm trying to morph it into a dead plant (right).
All Ι want to do is to bend the stem clockwise by the pivot points (shown in red) to look like the poor plant is dying of drought.
Any ideas?

BEND-HELP.png
*BEND-HELP.png
(100.37 kB . 1007x612)
(viewed 398 times)


IMPORTANT NOTE: I cannot create it from scratch because I suspect VideoScribe needs the original path IDs in order to morph it correcrtly.

I hope this makes sense ...
  • 0.92.3
  • Windows 10

May 31, 2018, 02:49:46 PM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,567
    • VektorRascheln
Maybe like this:

https://framadrive.org/s/E8tAgwLYEW5fAKm (video)

(there's a problem with the bend lpe that makes it be very sensitive to rotation... That's why I rotated first, before I applied the LPE, and then, only back again after flattening the LPE with Object to Path - else you can get all kind of weird behaviour, this is the safest way I found)

June 01, 2018, 12:01:10 PM
Reply #2

lefteris.lydios

  • Jr. Member

  • Offline
  • ***

  • 22
  • Gender
    Male

    Male
Good tip. But your bend path is a straight, well defined horizontal line. Why am I getting this L shaped path?
q.png
*q.png
(120.18 kB . 1664x689)
(viewed 390 times)
  • 0.92.3
  • Windows 10

June 01, 2018, 12:16:25 PM
Reply #3

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,567
    • VektorRascheln
Mmh, somehow it looks like you don't need to rotate the plant by 90 first. Or maybe you've checked the box that says something about it being vertical.

The top left line is for the width handle for the path effect. If you drag on the circle shape at its end, it's going to  squeeze or stretch the plant.

June 01, 2018, 12:41:41 PM
Reply #4

lefteris.lydios

  • Jr. Member

  • Offline
  • ***

  • 22
  • Gender
    Male

    Male
No way I can figure this out.  :-(
I have a link to my file here https://www.dropbox.com/s/g0qv2ebyclle43k/bend%20problem.svg?dl=0
Soil is in a hidden layer. If you could take a look I'd appreciate
  • 0.92.3
  • Windows 10

June 01, 2018, 01:59:15 PM
Reply #5

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,152
  • Gender
    Male

    Male
Groups have their own transformations.

By default the bend lpe's trajectory path is horizontal.
Once you added the bending to the path and rotated the group, the effect inherited the transformation.

What to do?

Start over:
remove lpe, ungroup object
rotate path by 90
add bend lpe
group object
rotate group in the opposite direction by 90
enter the group (Ctrl+Enter)
use the node tool to adjust the trajectory path

in a nutshell.
But there is also an option to tick in pattern is vertical somewhere?
Hang on, making some screen captures.

June 01, 2018, 03:04:38 PM
Reply #6

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,152
  • Gender
    Male

    Male
Ok, you had some multiple grouping going on and/or additional transformations (resized paper at some point etc.)
So ended up drawing on a new -fresh- layer (which doesn't inherit the transformations by default).

Anyway, here goes nothing:

June 01, 2018, 03:18:10 PM
Reply #7

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,567
    • VektorRascheln
Lazur, does it always take so long for you until the LPE dialog opens? It all seems really very laggy.

It works fine for me with the file, after ungrouping and reapplying the effect.... :-/ I can't tell what's different... Jabier has made /some/ LPE fixes in the code branch that my Inkscape is based on, but they were related to a different LPE.

https://framadrive.org/s/BWzTjNgQtAS2CYP

June 01, 2018, 03:25:10 PM
Reply #8

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,152
  • Gender
    Male

    Male
Yes, it always take that long. Was just about to restart the recording at this point. Still it is a good sign opening the panel didn't resize the window.

June 01, 2018, 06:27:47 PM
Reply #9

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,567
    • VektorRascheln
Ugh... Doesn't sound too good :/ Do you think that's worth a bug report?

June 01, 2018, 06:28:41 PM
Reply #10

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,567
    • VektorRascheln
lefteris, where do you get stuck?

June 01, 2018, 10:03:45 PM
Reply #11

lefteris.lydios

  • Jr. Member

  • Offline
  • ***

  • 22
  • Gender
    Male

    Male
Hey guys, THANK YOU
I have made some progress thanks to you. It seems I had to ungroup and rotate.
Now I want to tweak the leaves and stem a little more in this new position but nodes maintain their pre-bend position . How do I fix that?
BTW my LPE dialog opens in a split second.

q.png
*q.png
(143 kB . 1514x729)
(viewed 384 times)



  • 0.92.3
  • Windows 10

June 02, 2018, 08:39:10 AM
Reply #12

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,567
    • VektorRascheln
If you want to tweak the /bent/ path, you need to convert it into a path first (this will remove the bend options). Path > Object to Path. This is for any final editing.

You could use the tweak tool for that, or the node tool, in sculpting mode.

https://inkscape.org/en/doc/keys092.html#idm1874 , http://write.flossmanuals.net/inkscape/tweak-tool/

June 02, 2018, 10:50:30 AM
Reply #13

lefteris.lydios

  • Jr. Member

  • Offline
  • ***

  • 22
  • Gender
    Male

    Male
Understood....
Inkscape is powerful. Can't argue with that. The problem is with VideoScribe. Morph is a mess :(
chech this out (low res) https://www.dropbox.com/s/x08uvokaitrolrm/MORPH.avi?dl=0

Anyway. I guess it's OK for a simple irrigation explainer video.
  • 0.92.3
  • Windows 10

June 02, 2018, 06:18:30 PM
Reply #14

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,567
    • VektorRascheln
We have a similar issue in Inkscape's interpolation tool, where the node numbers and positions need to be matched exactly between the two paths that are interpolated.

I think it's not the morphing that is broken, but suspect that the path effect changes the image's structure so much that the morph algorithm doesn't know what part of the plant corresponds to what other part in the other image.

In that case, it makes more sense to move those nodes manually to get a good result. For your plant, this should still be doable within a couple of minutes with the node tool.

June 02, 2018, 10:43:35 PM
Reply #15

lefteris.lydios

  • Jr. Member

  • Offline
  • ***

  • 22
  • Gender
    Male

    Male
Do Bezier curves have a direction? And if they do, how do I flip?
  • 0.92.3
  • Windows 10

June 03, 2018, 01:42:24 AM
Reply #16

brynn

  • Administrator

  • Offline
  • ******

  • 3,939
  • Gender
    Female

    Female
    • Inkscape Community
Yes, Path menu > Reverse.  That reverses the path direction.

I was wondering what about using Lattice Deformation LPE for this.  To be honest, I've never used it, but what it sounds like it must do, sound like might be helpful.  Although if the LPE is giving trouble for VideoScribe, then.... 

Well, after you use the LPE, you can use Path menu > Object to Path, and make the LPE back into a regular path.  Then maybe VS would not have the same kind of trouble?
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

June 03, 2018, 04:28:23 AM
Reply #17

lefteris.lydios

  • Jr. Member

  • Offline
  • ***

  • 22
  • Gender
    Male

    Male
Thanks brynn. I'll keep that in mind.
  • 0.92.3
  • Windows 10