Author Topic: Conversion SVG <-> Sketch XML  (Read 5262 times)

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: Conversion SVG <-> Sketch XML
« Reply #30 on: April 04, 2016, 04:50:19 pm »
Woah, I didn't know people still use this :o

I had trouble with the script on some SVG files, apparently there are things I'm not supporting. If you or anyone else needs further support or updates, you can always drop me a PM and I'll read it... eventually...

Cheers!

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: Conversion SVG <-> Sketch XML
« Reply #31 on: November 21, 2016, 03:01:23 pm »
Update!

I fixed a bug that caused transformation matrices to be applied incorrectly if the SVG file used relative paths. Basically, that means that the converted file looked like a mess.

A few notes / reminders:
  • If you want to put text in the SVG file to be used in the game, use font Cup and Talon and font size 19.5px / 15.6pt.
  • The script only supports paths and some simple shapes, such as rectangles. Other shapes need to be converted to paths.
  • In some cases - e.g., when converting a circle to a path - the SVG file might end up with "arc" type paths. The script ignores these. So if any parts of paths are missing, make sure that they're not precisely circle-y. (It may be enough to "convert" those paths by changing the type of their nodes without changing the path at all. This worked for me in Inkscape.)
Anyway, find the download links at the very bottom of the script's homepage.

MishkaL1138

  • Veteran
  • *
  • Posts: 1175
  • Meh.
    • View Profile
Re: Conversion SVG <-> Sketch XML
« Reply #32 on: November 22, 2016, 03:11:56 am »
I helped find this bug! Also, I can confirm this update works like a charm. GO USE THIS SCRIPT RIGHT MEOW.

"It's all fun and games until someone stabs someone else in the eye."

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: Conversion SVG <-> Sketch XML
« Reply #33 on: February 10, 2017, 08:00:27 pm »
I helped find this bug!

Yes you did :) thanks dude!

Also, I can confirm this update works like a charm.

I'm glad. That has been bugging me for a while...

GO USE THIS SCRIPT RIGHT MEOW.

Heh. Feel free to send me screenshots of any art my script helps you bring into the game :)

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: Conversion SVG <-> Sketch XML
« Reply #34 on: January 13, 2018, 05:51:21 pm »
New update!

Feature: Altered the warning shown when using more than 200 elements to reflect new drawing skill
Bugfix: Fixed SVG straight vertical / horizontal lines with the v/h syntax

Additionally, when using the API, you can now get the needed skill level to import that sketch.

Download from here: https://stuff.incertitu.de/planeshift/svg%20sketches

Thanks Mishka for the heads up!