Jucika drawing test

This work in progress is 99% Inkscape and 1% Synfig, but I wanted to share a learning experience, and an interesting workflow, taking advantage of Inkscape.

  1. When you import an Inkscape SVG in Synfig, the “Move/Scale coordinate handle” of every object ends up very far, about 1 page below and to the right. I still don’t know how to prevent this.
  2. Groups in Inkscape, remain as groups when imported in Synfig. The groups also retain the names of your choosing. But the individual paths and fills do not retain the names. This can help in the bone linking phase.
  3. If you use “clipping” in Inkscape. The effect will not transfer to Synfig and the paths will end up un-clipped. You need to redo the clipping with blending modes, as shown in: https://www.youtube.com/watch?v=YgcLUHA-2JM. Then look at how I did the eyes irises.
  4. Fingers and limbs are not that hard in Inkscape, and the work will transfer to Synfig. In Inkscape, you can make filled paths with a black outline, leave the curve open and it will appear to have an “un-edged” side, which will make the colored areas appear to join together
  5. I just learnt that I can do the “invisible edge” technique in Synfig too. Next time I will try doing this work in Synfig… because relocating the origin of the scale/move axis might become unmanageable for many objects. On the other hand, I used Inkscape path effects to do the eyelashes and pearl necklace (and in general all the repetitive shapes).

jucika.sifz (55.1 KB)

4 Likes

Oh, I didn’t know Inkscape makes a custom way to label a path/fill.

I’ll add support to this labeling and it’ll probably be available in the next development release.

Masking and clipping is more annoying to add support; maybe I’ll try to do it, but I don’t promise it :face_with_tongue:

thank you :slight_smile:

When importing from avg, only the group names survive in Synfig, but the path names become “path”,

In my screenshot, there are two path objects with custom names, because I fixed manually after importing.

There’s already clipping im Synfig because of the “alpha over” and “straight onto” blending modes :slight_smile:

I just learnt that Inkscape can export to Synfig format… and the location offset problem is gone… but the grouping doesn’t survive the export.

I am trying something that might solve the offset issue in svg import

Offset “solution”:

In inkscape: move the drawing 284mm to the right, 417mm down. Make a circle to occupy a similar space in the page center.

Import it in Synfig, and the art will be in the center of the page. Erase the circle outside the page.

In my case, the extra objects were Clipping Masks used in Inkscape, which appear as loose objects in Synfig

1 Like

I know, but it is not that easy. First it would be “Alpha” blending mode. Then we need to read/study the SVG 1.1 and 2.0 specs about it, implement how to parse clipping paths, how to apply this effect for each case, check all (or the most important or used) XML attributes they case, check for corner cases or malformed SVGs (usually by manually created ones) to avoid crashing or freezing when loading SVG, check if Inkscape does something different/exotic/custom about it on saving a file with clip-path, etc. It is a whole new feature not implemented in the importer before, so it is a lot of work/care to do so.

Anyway, I’m currently implementing a draft for clipping support.

Thank you for your response :slight_smile:

Good luck with your clipping support script :+1:

I found there’s SVG importer python script here. I will try it too