Plugin: 2D curve(s) to SVG

Legacy tS 6.6
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

clintonman wrote:Maybe you can use the layer color for the stroke color.
Thanks for the suggestion.

Currently the options are these, no matter how many layers are on the scene:
svg_dlg.png
svg_dlg.png (4.6 KiB) Viewed 6825 times
- uncheched all = black outlines;
- fill color checked = fill the material color but the stroke, which remains black;
- stroke paint as material color = self-explanatory, both checked alone or along with the fill color check-box: outlined stroke color like the material or fill and stroke of the same color, respectively.
- stroke paint as layer color = your suggestion, just the outline, otherwise those wire color could be mixed up with the filled color. To check on this will deactivate the others.
- stroke width = self-explanatory.

TODO (if I'm able):
- to port the tS layers as layers within the SVG. It seem to work, but I'm not sure whether the SVG layer directive is the standard one or it is valid just for Inkscape. I may explore more on this, since I've just it as SVG client...
- to assest the obj/scene units.

EDIT LATER:
Tested up to 10 layers, each one with its color and its curve-to-poly, I got 10 outlined shapes each one with its proper layer's color strokes.
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Plugin: 2D curve(s) to SVG

Post by clintonman »

Looking good.

As far as layers I think that's an Inkscape thing. I don't believe svg format has layers, it only seems to have groups.
Clinton Reese

http://clintons3d.com
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

Finally, I can get both open/closed curves along with curve-to-polyh. :bananatyping:
svg_open_1.png
svg_open_2.png
clintonman wrote:Looking good.

As far as layers I think that's an Inkscape thing. I don't believe svg format has layers, it only seems to have groups.
A further option, then.
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

Here the new 1.1 version. Feedbacks are appreciated. Remove the previous version and extract with path under the tsx folder.
tSXSVGExport_1.1.zip
(13.29 KiB) Downloaded 326 times
User avatar
Emmanuel
Chief Warrant Officer
Posts: 650
Joined: 14 Jun 2009, 06:47

Re: Plugin: 2D curve(s) to SVG

Post by Emmanuel »

Hum, couldn't test yet : trueSpace is crashing when it start to write the file (I mean after I set a file name in the dialog box).
This occurs even if I restart tS after loading the tsx. I also tried in tS6.6. Same behavior.

I like the stroke and color options. This is a nice improvement :worship:
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

Try this:
tSXSVGExport_1.1_tS66.zip
(13.28 KiB) Downloaded 289 times
maybe your system is sensitive to pure 6.6 version. Otherwise you nust have missed some DLLs such as:
- msvcrt.dll
- msvcp60.dll
- mfc42.dll
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

tSx SVG Exporter 1.2

FIXES:
- fix a bug with the stroke-width setting;
- fix a fill color issue when the curve(s)-to-polygon and open curve(s) are both on the scene;
- minor fixes.

INSTALLATION:
1) Extract the zip folder within the "..\tsx\" directory.
2) Search for "tSxSVGExport.tsx" through the usual "Install new trueSpace eXtension" icon. tS 6.6 version included.
tSXSVGExport_1.2.zip
(27.34 KiB) Downloaded 294 times
User avatar
Cellulo
Lieutenant
Posts: 915
Joined: 27 Sep 2012, 07:48
Type the number ten into the box: 9
Location: France
Contact:

Re: Plugin: 2D curve(s) to SVG

Post by Cellulo »

Thanks Fenerit, cool plugin :bananathumb:
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

:bananacheers:
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

tSx SVG Export 1.3
svg_exp_1.3.png
svg_exp_1.3.png (9.11 KiB) Viewed 6690 times
FIXES:
- svg xml: added mm units to the width/height, this causes Inkscape to highlight
the exported page size within the "Document Properties" menu. Also non-metric units are accounted for;
- svg output: fit the draw as more as possible at the center of the page; its precise vertical/horizontal center alignment is left to the SVG client, being the tS bounding box dependent upon the rationale of the curves,
which enclosed manipulator elements coordinates that could not match those belongings to the SVG client. All this doesn't change the fidelity of the tS draw output.

CHANGES:
- interface;

ADDS:
- page size and orientation;
- draw units output;

KNOWN LIMITATIONS:
- radio buttons "Draw units" doesn't holds the settings on disc. default draw units = cm (A0 fit).

INSTALLATION:
1) Extract the zip folder within the "..\tsx\" directory.
2) Search for "tSxSVGExport.tsx" through the usual "Install new trueSpace eXtension" icon. tS 6.6 version included.
tSXSVGExport_1.3.zip
(37.2 KiB) Downloaded 290 times
Note: this version fixes also some upper/lower case in the names of the files. Please, remove the previous version if any before to install this. For the tS icon it is unimportant to be removed fro the interface, because it is case insensitive.
Last edited by Fenerit on 08 Apr 2016, 19:58, edited 1 time in total.
Post Reply