Re: Baseboards, Picture Rails, and Cornices, with profiles, possibly SVG editor

by okh » Thu Jul 06, 2017 12:01 pm

In fact, an SVG GUI editor anyway because cut-outs do my head in
Guess a GUI SVG editor could be nice, but maybe not that straight-forward to implement in SH3D/FurnitureLibraryEditor? And there is a workaround to GUI edit paths.

Inkscape has been equipped with some more settings over the last couple of years and it is now (slightly) easier to edit a cutout path for SH3D, provided you work with a suitable template, for instance like this for a window 120×100:

Code: Select all

<svg width="120" height="100" viewBox="0 0 1 1" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" version="1.1">
<rect width="100%" height="100%" fill="none" stroke-width=".01" stroke="pink"/>
<g stroke-width=".01">
<path fill="none" stroke="red"
 d="
 m 0.1,.5 a 0.4,0.4 0,0,1 0.8,0 v 0.3 h-0.8 z
 "/>
</g>
</svg>
A couple of notes:

It is still necessary to have a basic understanding of SVG paths, seeing that you can, of course, start with any guesstimated path by substituting [font=courier new]m 0.1,.5 a 0.4,0.4 0,0,1 0.8,0 v 0.3 h-0.8 z[/font] with something else:
[font=courier new]m 0,0.1 h1 v0.8 h-1 z[/font] cuts 100% width and 80% height with a relative path.
[font=courier new]M 0,0.5 L 0.5,0 L 1,0.5 L 0.5,1 Z[/font] cuts a "diamond" with an absolute path.In practice I would not use Inkscape for this, but open the svg file in a text editor, keeping the file open in a browser at the same time, change the path, save and refresh browser. That is almost a GUI SVG interface [:)]

The above is a topic deviation (I have no opinion about the other items on the wishlist), but I have long wished for access to advanced model properties from within SH3D, such as the SVG cutout. This is no longer very urgent for me as it is possible to edit some advanced properties in Home.xml within the SH3D file. That saves the detour of going via the FurnitureLibraryEditor. Possible, yes, but if you try, make backups and proceed with caution (some values in Home.xml have been converted to relative values and radians).

I think the question is how useful a GUI SVG editor would be. Yes, typing SVG directly can be a hurdle, but maybe not too difficult if you make your own models? After all, the auto-generated cutout will work for most imported models.

ok