raganmd / touchdesigner-sop-to-svg

A pipeline for handling the SOP to SVG pipeline. This is especially handy for using procedurally generated geometry for paths to be cut or plotted.
MIT License
154 stars 17 forks source link

now, exports only empty svg #13

Open lalli92 opened 2 years ago

lalli92 commented 2 years ago

It' s only a problem of mine or it is because of the tox isn't updated from 2/3 years ? please update !

raganmd commented 2 years ago

I'd guess that what you're seeing here is actually due the size and position of your input.

TouchDesigner unit space doesn't have a direct correlation to a resolution - further, because svgs are vectors, making a decision for the user about scale didn't seem appropriate.

3D positioning also makes a difference in relationship to your output canvas. A typical touchdesigner SOP is positioned at world origin, which doesn't map well to an output.

Here's a quick reference. A circle SOP with a radius of 20 positioned at origin will import to illustrate like this: image

This works correctly for me with the current TOX. I'd first check the scale of your SVG, and then consider importing to a tool like illustrator to check positioning and scale.

SnacksDaily commented 2 years ago

I have this same problem even when following the setup example provided on the github page..

raganmd commented 2 years ago

@SnacksDaily - just have you tried scaling up your SOP prior to export, or importing your svg into a tool like illustrator or inkscape and then enlarging your svg?

escline commented 2 years ago

I had the same experience. Changing circle SOP radius to 500/500 scaled it up great.