Skip to content

Instantly share code, notes, and snippets.

@nortikin
Created October 26, 2023 09:02
Show Gist options
  • Save nortikin/de5cb21e5c04727f19404b87a77e6754 to your computer and use it in GitHub Desktop.
Save nortikin/de5cb21e5c04727f19404b87a77e6754 to your computer and use it in GitHub Desktop.
Sverchok.v1.3.0-alpha (2eb05a8) | Blender.3.4.1 | reorder_vectors_for_polyline | 2023.10.26 | 12:02 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Get Objects Data": {
"attributes": {
"location": [
-440.0,
200.0
],
"width": 150.0,
"color": [
0.35577794909477234,
0.5,
0.3646477460861206
],
"use_custom_color": true
},
"properties": {
"object_names": [
{
"name": "Circle",
"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"
},
"Vector Sort": {
"attributes": {
"location": [
-240.0,
200.0
]
},
"properties": {
"mode": "CONNEX",
"limit_mode": true
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"PolyEdge": {
"bl_idname": "SvStringsSocket",
"name": "PolyEdge"
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"PolyEdge": {
"bl_idname": "SvStringsSocket",
"name": "PolyEdge"
},
"Item order": {
"bl_idname": "SvStringsSocket",
"name": "Item order"
}
},
"bl_idname": "SvVertSortNode"
},
"Polyline": {
"attributes": {
"location": [
-60.0,
200.0
]
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
}
},
"outputs": {
"Curve": {
"bl_idname": "SvCurveSocket",
"name": "Curve"
}
},
"bl_idname": "SvExPolylineNode"
},
"Viewer Draw Curve": {
"attributes": {
"location": [
140.0,
200.0
]
},
"inputs": {
"Curve": {
"bl_idname": "SvCurveSocket",
"name": "Curve"
},
"Resolution": {
"bl_idname": "SvStringsSocket",
"name": "Resolution",
"properties": {
"prop_name": "resolution"
}
}
},
"bl_idname": "SvCurveViewerDrawNode"
}
},
"links": [
{
"from_node": "Get Objects Data",
"from_socket": "Vertices",
"to_node": "Vector Sort",
"to_socket": "Vertices"
},
{
"from_node": "Get Objects Data",
"from_socket": "Edges",
"to_node": "Vector Sort",
"to_socket": "PolyEdge"
},
{
"from_node": "Vector Sort",
"from_socket": "Vertices",
"to_node": "Polyline",
"to_socket": "Vertices"
},
{
"from_node": "Polyline",
"from_socket": "Curve",
"to_node": "Viewer Draw Curve",
"to_socket": "Curve"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment