Skip to content

Instantly share code, notes, and snippets.

@msurguy
Last active April 4, 2021 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msurguy/ff5ed1c627bbef2ba8605070fe1f0664 to your computer and use it in GitHub Desktop.
Save msurguy/ff5ed1c627bbef2ba8605070fe1f0664 to your computer and use it in GitHub Desktop.
Sverchok SVG Document Export Preset

Sverchok preset for exporting SVG

Has the following nodes:

  • SVG Document
  • SVG Mesh
  • SVG Fill / Stroke
  • Offset (to move SVG on paper)

Usage:

Use Sverchok preset import menu to import from gist.

{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"File Path": {
"bl_idname": "SvFilePathNode",
"custom_socket_props": {},
"height": 100.0,
"hide": false,
"label": "",
"location": [
119.74506378173828,
46.685699462890625
],
"params": {
"directory": "C:\\"
},
"width": 140.0
},
"Fill / Stroke SVG": {
"bl_idname": "SvSvgFillStrokeNodeMk2",
"custom_socket_props": {
"0": {
"expanded": true
}
},
"height": 100.0,
"hide": false,
"label": "",
"location": [
-149.9987030029297,
97.99276733398438
],
"params": {
"fill_mode": "NONE",
"stroke_mode": "FLAT",
"stroke_width": 0.009999999776482582
},
"width": 140.0
},
"Matrix In": {
"bl_idname": "SvMatrixInNodeMK4",
"custom_socket_props": {
"0": {
"expanded": true
}
},
"height": 100.0,
"hide": false,
"label": "",
"location": [
-153.94618225097656,
342.6882629394531
],
"params": {
"location_": [
8.0,
10.0,
0.0
]
},
"width": 140.0
},
"Mesh SVG": {
"bl_idname": "SvSvgMeshNode",
"color": [
1.0,
0.30000001192092896,
0.0
],
"custom_socket_props": {},
"height": 100.0,
"hide": false,
"label": "",
"location": [
42.106346130371094,
346.65185546875
],
"params": {},
"use_custom_color": true,
"width": 140.0
},
"SVG Document": {
"bl_idname": "SvSvgDocumentNode",
"custom_socket_props": {},
"height": 100.0,
"hide": false,
"label": "",
"location": [
323.6925354003906,
366.3854064941406
],
"params": {
"file_name": "generativeTowers"
},
"width": 200.0
}
},
"update_lists": [
[
"Matrix In",
0,
"Mesh SVG",
3
],
[
"Fill / Stroke SVG",
0,
"Mesh SVG",
4
],
[
"File Path",
0,
"SVG Document",
0
],
[
"Mesh SVG",
0,
"SVG Document",
2
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment