Skip to content

Instantly share code, notes, and snippets.

@satabol
Created January 7, 2023 22:38
Show Gist options
  • Save satabol/78990471b697ac4c91b4244d1254d25e to your computer and use it in GitHub Desktop.
Save satabol/78990471b697ac4c91b4244d1254d25e to your computer and use it in GitHub Desktop.
Sverchok.v1.2.0-alpha | Blender.3.4.1 | NodeTree | 2023.01.08 | 01:38 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"List Length": {
"attributes": {
"location": [
-129.80323791503906,
417.5250244140625
]
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
}
},
"outputs": {
"Length": {
"bl_idname": "SvStringsSocket",
"name": "Length"
}
},
"bl_idname": "ListLengthNode"
},
"List Join": {
"attributes": {
"location": [
384.3205261230469,
491.25640869140625
]
},
"inputs": {
"data": {
"bl_idname": "SvStringsSocket",
"name": "data"
},
"data 1": {
"bl_idname": "SvStringsSocket",
"name": "data 1"
},
"data 2": {
"bl_idname": "SvStringsSocket",
"name": "data 2"
}
},
"outputs": {
"data": {
"bl_idname": "SvStringsSocket",
"name": "data"
}
},
"bl_idname": "ListJoinNode"
},
"Stethoscope MK2": {
"attributes": {
"location": [
388.7880859375,
533.0758666992188
],
"hide": true,
"color": [
0.5,
0.5,
1.0
],
"use_custom_color": true
},
"properties": {
"text_color": [
0.949999988079071,
0.949999988079071,
0.949999988079071
],
"location_theta": 1.0080000162124634,
"num_elements": 2
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
}
},
"bl_idname": "SvStethoscopeNodeMK2"
},
"Viewer Draw.005": {
"attributes": {
"location": [
991.0079956054688,
839.8172607421875
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"display_edges": false,
"display_faces": false
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
},
"Vector Color": {
"bl_idname": "SvColorSocket",
"name": "Vector Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "vector_color"
}
},
"Edge Color": {
"bl_idname": "SvColorSocket",
"name": "Edge Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "edge_color"
}
},
"Polygon Color": {
"bl_idname": "SvColorSocket",
"name": "Polygon Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "polygon_color"
}
},
"attrs": {
"bl_idname": "SvStringsSocket",
"name": "attrs",
"attributes": {
"hide": true
},
"properties": {
"quick_link_to_node": "SvVDAttrsNodeMk2"
}
}
},
"bl_idname": "SvViewerDrawMk4"
},
"Lloyd on Mesh": {
"attributes": {
"location": [
777.4269409179688,
818.1377563476562
]
},
"properties": {
"iterations": 10
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"Sites": {
"bl_idname": "SvVerticesSocket",
"name": "Sites",
"properties": {
"enable_input_link_menu": false
}
},
"Iterations": {
"bl_idname": "SvStringsSocket",
"name": "Iterations",
"properties": {
"prop_name": "iterations"
}
},
"Thickness": {
"bl_idname": "SvStringsSocket",
"name": "Thickness",
"properties": {
"prop_name": "thickness"
}
},
"Weights": {
"bl_idname": "SvScalarFieldSocket",
"name": "Weights",
"properties": {
"enable_input_link_menu": false
}
}
},
"outputs": {
"Sites": {
"bl_idname": "SvVerticesSocket",
"name": "Sites"
}
},
"bl_idname": "SvLloydOnMeshNode"
},
"Viewer Draw": {
"attributes": {
"location": [
31.271270751953125,
-11.675506591796875
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"edge_color": [
0.14000000059604645,
0.5400000214576721,
0.8100000023841858,
1.0
],
"selected_draw_mode": "smooth",
"display_verts": false,
"activate": false
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
},
"Vector Color": {
"bl_idname": "SvColorSocket",
"name": "Vector Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "vector_color"
}
},
"Edge Color": {
"bl_idname": "SvColorSocket",
"name": "Edge Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "edge_color"
}
},
"Polygon Color": {
"bl_idname": "SvColorSocket",
"name": "Polygon Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "polygon_color"
}
},
"attrs": {
"bl_idname": "SvStringsSocket",
"name": "attrs",
"attributes": {
"hide": true
},
"properties": {
"quick_link_to_node": "SvVDAttrsNodeMk2"
}
}
},
"bl_idname": "SvViewerDrawMk4"
},
"Populate Mesh": {
"attributes": {
"location": [
465.3003234863281,
199.03103637695312
]
},
"properties": {
"points_number": 1404
},
"inputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"Face weight": {
"bl_idname": "SvStringsSocket",
"name": "Face weight"
},
"Number": {
"bl_idname": "SvStringsSocket",
"name": "Number",
"properties": {
"prop_name": "points_number"
}
},
"Seed": {
"bl_idname": "SvStringsSocket",
"name": "Seed",
"properties": {
"prop_name": "seed"
}
}
},
"outputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts"
},
"Face index": {
"bl_idname": "SvStringsSocket",
"name": "Face index"
}
},
"bl_idname": "SvRandomPointsOnMesh"
},
"Viewer Draw.001": {
"attributes": {
"location": [
683.2351684570312,
199.1153564453125
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"vector_color": [
0.9500002264976501,
0.002222747541964054,
0.0,
1.0
],
"point_size": 2,
"activate": false
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
},
"Vector Color": {
"bl_idname": "SvColorSocket",
"name": "Vector Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "vector_color"
}
},
"Edge Color": {
"bl_idname": "SvColorSocket",
"name": "Edge Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "edge_color"
}
},
"Polygon Color": {
"bl_idname": "SvColorSocket",
"name": "Polygon Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "polygon_color"
}
},
"attrs": {
"bl_idname": "SvStringsSocket",
"name": "attrs",
"attributes": {
"hide": true
},
"properties": {
"quick_link_to_node": "SvVDAttrsNodeMk2"
}
}
},
"bl_idname": "SvViewerDrawMk4"
},
"Component Analyzer": {
"attributes": {
"location": [
1251.1820068359375,
859.582275390625
],
"width": 208.576904296875
},
"properties": {
"mode": "Edges",
"edge_mode": "Is_Interior"
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"is_mandatory": true
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"properties": {
"nesting_level": 3,
"is_mandatory": true
}
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces",
"properties": {
"nesting_level": 3,
"is_mandatory": true
}
}
},
"outputs": {
"Mask": {
"bl_idname": "SvStringsSocket",
"name": "Mask"
},
"True Edges_001": {
"bl_idname": "SvStringsSocket",
"name": "True Edges"
},
"False Edges_001": {
"bl_idname": "SvStringsSocket",
"name": "False Edges"
}
},
"bl_idname": "SvComponentAnalyzerNode"
},
"Get Objects Data": {
"attributes": {
"location": [
-418.091796875,
153.16098022460938
],
"width": 150.0,
"color": [
0.0,
0.5,
0.20000000298023224
],
"use_custom_color": true
},
"properties": {
"object_names": [
{
"name": "Cube",
"icon": "OUTLINER_OB_MESH"
}
]
},
"inputs": {
"Objects": {
"bl_idname": "SvObjectSocket",
"name": "Objects"
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"Vertex Normals": {
"bl_idname": "SvVerticesSocket",
"name": "Vertex Normals"
},
"Material Idx": {
"bl_idname": "SvStringsSocket",
"name": "Material Idx"
},
"Polygon Areas": {
"bl_idname": "SvStringsSocket",
"name": "Polygon Areas"
},
"Polygon Centers": {
"bl_idname": "SvVerticesSocket",
"name": "Polygon Centers"
},
"Polygon Normals": {
"bl_idname": "SvVerticesSocket",
"name": "Polygon Normals"
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
},
"Object": {
"bl_idname": "SvObjectSocket",
"name": "Object"
}
},
"bl_idname": "SvGetObjectsData"
},
"Scalar Math": {
"attributes": {
"location": [
24.746444702148438,
338.1958923339844
]
},
"inputs": {
"x": {
"bl_idname": "SvStringsSocket",
"name": "x",
"properties": {
"prop_name": "x_"
}
},
"y": {
"bl_idname": "SvStringsSocket",
"name": "y",
"properties": {
"prop_name": "y_"
}
}
},
"outputs": {
"Out": {
"bl_idname": "SvStringsSocket",
"name": "Out"
}
},
"bl_idname": "SvScalarMathNodeMK4"
},
"Float to Integer": {
"attributes": {
"location": [
211.95263671875,
235.2638702392578
]
},
"inputs": {
"float": {
"bl_idname": "SvStringsSocket",
"name": "float"
}
},
"outputs": {
"int": {
"bl_idname": "SvStringsSocket",
"name": "int"
}
},
"bl_idname": "Float2IntNode"
},
"Voronoi on Mesh": {
"attributes": {
"location": [
1000.445556640625,
558.562255859375
]
},
"properties": {
"mode": "SURFACE",
"spacing": 0.009999999776482582
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"Sites": {
"bl_idname": "SvVerticesSocket",
"name": "Sites"
},
"Spacing": {
"bl_idname": "SvStringsSocket",
"name": "Spacing",
"properties": {
"prop_name": "spacing"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
}
},
"bl_idname": "SvVoronoiOnMeshNode"
},
"Dissolve Mesh Elements": {
"attributes": {
"location": [
1524.3331298828125,
796.8438110351562
],
"width": 212.617919921875
},
"properties": {
"mask_mode": "Edges"
},
"inputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"Mask": {
"bl_idname": "SvStringsSocket",
"name": "Mask",
"properties": {
"custom_draw": "draw_mask_socket_modes"
}
}
},
"outputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"Verts ind": {
"bl_idname": "SvStringsSocket",
"name": "Verts ind"
},
"Edges ind": {
"bl_idname": "SvStringsSocket",
"name": "Edges ind"
},
"Face ind": {
"bl_idname": "SvStringsSocket",
"name": "Face ind"
},
"Loop ind": {
"bl_idname": "SvStringsSocket",
"name": "Loop ind"
}
},
"bl_idname": "SvDissolveMeshElements"
},
"Viewer Draw.004": {
"attributes": {
"location": [
2086.0009765625,
1076.879638671875
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"display_verts": false,
"selected_draw_mode": "smooth",
"edge_color": [
0.14000000059604645,
0.5400000214576721,
0.8100000023841858,
1.0
]
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"properties": {
"custom_draw": "draw_property_socket"
}
},
"Polygons": {
"bl_idname": "SvStringsSocket",
"name": "Polygons"
},
"Matrix": {
"bl_idname": "SvMatrixSocket",
"name": "Matrix"
},
"Vector Color": {
"bl_idname": "SvColorSocket",
"name": "Vector Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "vector_color"
}
},
"Edge Color": {
"bl_idname": "SvColorSocket",
"name": "Edge Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "edge_color"
}
},
"Polygon Color": {
"bl_idname": "SvColorSocket",
"name": "Polygon Color",
"properties": {
"custom_draw": "draw_color_socket",
"prop_name": "polygon_color"
}
},
"attrs": {
"bl_idname": "SvStringsSocket",
"name": "attrs",
"attributes": {
"hide": true
},
"properties": {
"quick_link_to_node": "SvVDAttrsNodeMk2"
}
}
},
"bl_idname": "SvViewerDrawMk4"
},
"Make Faces Planar": {
"attributes": {
"location": [
1838.8330078125,
1050.1729736328125
]
},
"properties": {
"iterations": 6
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
},
"FaceMask": {
"bl_idname": "SvStringsSocket",
"name": "FaceMask"
},
"Iterations": {
"bl_idname": "SvStringsSocket",
"name": "Iterations",
"properties": {
"prop_name": "iterations"
}
},
"Factor": {
"bl_idname": "SvStringsSocket",
"name": "Factor",
"properties": {
"prop_name": "factor"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
}
},
"bl_idname": "SvPlanarFacesNode"
}
},
"links": [
{
"from_node": "Get Objects Data",
"from_socket": "Polygons",
"to_node": "List Length",
"to_socket": "Data"
},
{
"from_node": "List Length",
"from_socket": "Length",
"to_node": "List Join",
"to_socket": "data"
},
{
"from_node": "Float to Integer",
"from_socket": "int",
"to_node": "List Join",
"to_socket": "data 1"
},
{
"from_node": "List Join",
"from_socket": "data",
"to_node": "Stethoscope MK2",
"to_socket": "Data"
},
{
"from_node": "Lloyd on Mesh",
"from_socket": "Sites",
"to_node": "Viewer Draw.005",
"to_socket": "Vertices"
},
{
"from_node": "Get Objects Data",
"from_socket": "Vertices",
"to_node": "Lloyd on Mesh",
"to_socket": "Vertices"
},
{
"from_node": "Get Objects Data",
"from_socket": "Polygons",
"to_node": "Lloyd on Mesh",
"to_socket": "Faces"
},
{
"from_node": "Populate Mesh",
"from_socket": "Verts",
"to_node": "Lloyd on Mesh",
"to_socket": "Sites"
},
{
"from_node": "Get Objects Data",
"from_socket": "Vertices",
"to_node": "Viewer Draw",
"to_socket": "Vertices"
},
{
"from_node": "Get Objects Data",
"from_socket": "Edges",
"to_node": "Viewer Draw",
"to_socket": "Edges"
},
{
"from_node": "Get Objects Data",
"from_socket": "Polygons",
"to_node": "Viewer Draw",
"to_socket": "Polygons"
},
{
"from_node": "Get Objects Data",
"from_socket": "Vertices",
"to_node": "Populate Mesh",
"to_socket": "Verts"
},
{
"from_node": "Get Objects Data",
"from_socket": "Polygons",
"to_node": "Populate Mesh",
"to_socket": "Faces"
},
{
"from_node": "Float to Integer",
"from_socket": "int",
"to_node": "Populate Mesh",
"to_socket": "Number"
},
{
"from_node": "Populate Mesh",
"from_socket": "Verts",
"to_node": "Viewer Draw.001",
"to_socket": "Vertices"
},
{
"from_node": "Voronoi on Mesh",
"from_socket": "Vertices",
"to_node": "Component Analyzer",
"to_socket": "Vertices"
},
{
"from_node": "Voronoi on Mesh",
"from_socket": "Edges",
"to_node": "Component Analyzer",
"to_socket": "Edges"
},
{
"from_node": "Voronoi on Mesh",
"from_socket": "Faces",
"to_node": "Component Analyzer",
"to_socket": "Faces"
},
{
"from_node": "List Length",
"from_socket": "Length",
"to_node": "Scalar Math",
"to_socket": "x"
},
{
"from_node": "Scalar Math",
"from_socket": "Out",
"to_node": "Float to Integer",
"to_socket": "float"
},
{
"from_node": "Get Objects Data",
"from_socket": "Vertices",
"to_node": "Voronoi on Mesh",
"to_socket": "Vertices"
},
{
"from_node": "Get Objects Data",
"from_socket": "Polygons",
"to_node": "Voronoi on Mesh",
"to_socket": "Faces"
},
{
"from_node": "Lloyd on Mesh",
"from_socket": "Sites",
"to_node": "Voronoi on Mesh",
"to_socket": "Sites"
},
{
"from_node": "Voronoi on Mesh",
"from_socket": "Vertices",
"to_node": "Dissolve Mesh Elements",
"to_socket": "Verts"
},
{
"from_node": "Voronoi on Mesh",
"from_socket": "Edges",
"to_node": "Dissolve Mesh Elements",
"to_socket": "Edges"
},
{
"from_node": "Voronoi on Mesh",
"from_socket": "Faces",
"to_node": "Dissolve Mesh Elements",
"to_socket": "Faces"
},
{
"from_node": "Component Analyzer",
"from_socket": "Mask",
"to_node": "Dissolve Mesh Elements",
"to_socket": "Mask"
},
{
"from_node": "Make Faces Planar",
"from_socket": "Vertices",
"to_node": "Viewer Draw.004",
"to_socket": "Vertices"
},
{
"from_node": "Make Faces Planar",
"from_socket": "Edges",
"to_node": "Viewer Draw.004",
"to_socket": "Edges"
},
{
"from_node": "Make Faces Planar",
"from_socket": "Faces",
"to_node": "Viewer Draw.004",
"to_socket": "Polygons"
},
{
"from_node": "Dissolve Mesh Elements",
"from_socket": "Verts",
"to_node": "Make Faces Planar",
"to_socket": "Vertices"
},
{
"from_node": "Dissolve Mesh Elements",
"from_socket": "Edges",
"to_node": "Make Faces Planar",
"to_socket": "Edges"
},
{
"from_node": "Dissolve Mesh Elements",
"from_socket": "Faces",
"to_node": "Make Faces Planar",
"to_socket": "Faces"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment