Inkscape Community

Help Using Inkscape => Using Inkscape with Other Apps => Topic started by: lefteris.lydios on May 31, 2018, 08:56:17 AM

Title: Help with the bend tool
Post by: lefteris.lydios on May 31, 2018, 08:56:17 AM
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?

 [ You are not allowed to view attachments ]

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 ...
Title: Re: Help with the bend tool
Post by: Moini on May 31, 2018, 02:49:46 PM
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)
Title: Re: Help with the bend tool
Post by: lefteris.lydios on June 01, 2018, 12:01:10 PM
Good tip. But your bend path is a straight, well defined horizontal line. Why am I getting this L shaped path?
 [ You are not allowed to view attachments ]
Title: Re: Help with the bend tool
Post by: Moini on June 01, 2018, 12:16:25 PM
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.
Title: Re: Help with the bend tool
Post by: lefteris.lydios on June 01, 2018, 12:41:41 PM
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
Title: Re: Help with the bend tool
Post by: Lazur on June 01, 2018, 01:59:15 PM
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.
Title: Re: Help with the bend tool
Post by: Lazur on June 01, 2018, 03:04:38 PM
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:
https://youtu.be/CZ8XX1j8hE0
Title: Re: Help with the bend tool
Post by: Moini on June 01, 2018, 03:18:10 PM
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
Title: Re: Help with the bend tool
Post by: Lazur on June 01, 2018, 03:25:10 PM
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.
Title: Re: Help with the bend tool
Post by: Moini on June 01, 2018, 06:27:47 PM
Ugh... Doesn't sound too good :/ Do you think that's worth a bug report?
Title: Re: Help with the bend tool
Post by: Moini on June 01, 2018, 06:28:41 PM
lefteris, where do you get stuck?
Title: Re: Help with the bend tool
Post by: lefteris.lydios on June 01, 2018, 10:03:45 PM
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.

 [ You are not allowed to view attachments ]


Title: Re: Help with the bend tool
Post by: Moini on June 02, 2018, 08:39:10 AM
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/
Title: Re: Help with the bend tool
Post by: lefteris.lydios on June 02, 2018, 10:50:30 AM
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.
Title: Re: Help with the bend tool
Post by: Moini on June 02, 2018, 06:18:30 PM
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.
Title: Re: Help with the bend tool
Post by: lefteris.lydios on June 02, 2018, 10:43:35 PM
Do Bezier curves have a direction? And if they do, how do I flip?
Title: Re: Help with the bend tool
Post by: brynn on June 03, 2018, 01:42:24 AM
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?
Title: Re: Help with the bend tool
Post by: lefteris.lydios on June 03, 2018, 04:28:23 AM
Thanks brynn. I'll keep that in mind.