Skip to content

Instantly share code, notes, and snippets.

@nortikin
Created November 26, 2022 23:07
Show Gist options
  • Save nortikin/a57bdfb0fbe12656f65fe2bd743304c1 to your computer and use it in GitHub Desktop.
Save nortikin/a57bdfb0fbe12656f65fe2bd743304c1 to your computer and use it in GitHub Desktop.
Sverchok.v1.2.0-alpha | Blender.3.3.1 | Default_tree_Sverchok | 2022.11.27 | 02:07 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Frame.001": {
"attributes": {
"location": [
-58.550750732421875,
26.005033493041992
],
"height": 417.0,
"width": 408.0,
"label": "INPUT"
},
"bl_idname": "NodeFrame"
},
"Frame": {
"attributes": {
"location": [
10.55868911743164,
6.876859664916992
],
"height": 627.0,
"width": 611.0,
"label": "MAIN"
},
"bl_idname": "NodeFrame"
},
"Frame.003": {
"attributes": {
"location": [
-247.8861846923828,
18.666725158691406
],
"height": 512.0,
"width": 388.0,
"label": "OUTPUT"
},
"bl_idname": "NodeFrame"
},
"Frame.002": {
"attributes": {
"location": [
-21.34227180480957,
112.55623626708984
],
"height": 416.0,
"width": 200.0,
"label": "SORT"
},
"bl_idname": "NodeFrame"
},
"Bisect": {
"attributes": {
"location": [
25.443130493164062,
27.655275344848633
],
"parent": {
"type": "NODE",
"value": "Frame.001"
}
},
"properties": {
"inner": true
},
"inputs": {
"vertices": {
"bl_idname": "SvVerticesSocket",
"name": "vertices",
"properties": {
"is_mandatory": true
}
},
"edg_pol": {
"bl_idname": "SvStringsSocket",
"name": "edg_pol",
"properties": {
"is_mandatory": true
}
},
"cut_matrix": {
"bl_idname": "SvMatrixSocket",
"name": "cut_matrix",
"properties": {
"nesting_level": 2,
"default_mode": "MATRIX"
}
}
},
"outputs": {
"vertices": {
"bl_idname": "SvVerticesSocket",
"name": "vertices"
},
"edges": {
"bl_idname": "SvStringsSocket",
"name": "edges"
},
"polygons": {
"bl_idname": "SvStringsSocket",
"name": "polygons"
}
},
"bl_idname": "SvBisectNode"
},
"Matrix In": {
"attributes": {
"location": [
-163.13656616210938,
-109.46780586242676
],
"parent": {
"type": "NODE",
"value": "Frame.001"
}
},
"inputs": {
"Location": {
"bl_idname": "SvVerticesSocket",
"name": "Location",
"properties": {
"prop_name": "location_"
}
},
"Scale": {
"bl_idname": "SvVerticesSocket",
"name": "Scale",
"properties": {
"prop_name": "scale"
}
},
"Quaternion": {
"bl_idname": "SvQuaternionSocket",
"name": "Quaternion",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "quaternion"
}
},
"Angle X": {
"bl_idname": "SvStringsSocket",
"name": "Angle X",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "angle_x"
}
},
"Angle Y": {
"bl_idname": "SvStringsSocket",
"name": "Angle Y",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "angle_y"
}
},
"Angle Z": {
"bl_idname": "SvStringsSocket",
"name": "Angle Z",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "angle_z"
}
},
"Axis": {
"bl_idname": "SvVerticesSocket",
"name": "Axis",
"properties": {
"prop_name": "axis"
}
},
"Angle": {
"bl_idname": "SvStringsSocket",
"name": "Angle",
"properties": {
"prop_name": "angle"
}
}
},
"outputs": {
"Matrices": {
"bl_idname": "SvMatrixSocket",
"name": "Matrices"
}
},
"bl_idname": "SvMatrixInNodeMK4"
},
"IcoSphere": {
"attributes": {
"location": [
-183.29476928710938,
76.85490608215332
],
"color": [
0.8966601490974426,
0.8966601490974426,
0.8966601490974426
],
"use_custom_color": true,
"parent": {
"type": "NODE",
"value": "Frame.001"
}
},
"properties": {
"subdivisions": 3
},
"inputs": {
"Subdivisions": {
"bl_idname": "SvStringsSocket",
"name": "Subdivisions",
"properties": {
"prop_name": "subdivisions",
"nesting_level": 1,
"pre_processing": "ONE_ITEM"
}
},
"Radius": {
"bl_idname": "SvStringsSocket",
"name": "Radius",
"properties": {
"prop_name": "radius",
"nesting_level": 1,
"pre_processing": "ONE_ITEM"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces"
}
},
"bl_idname": "SvIcosphereNode"
},
"Logic Functions": {
"attributes": {
"location": [
687.2923927307129,
-204.50161933898926
],
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"properties": {
"function_name": "EQUAL"
},
"inputs": {
"A": {
"bl_idname": "SvStringsSocket",
"name": "A",
"properties": {
"use_prop": true,
"show_property_type": true,
"default_property_type": "int"
}
},
"B": {
"bl_idname": "SvStringsSocket",
"name": "B",
"properties": {
"use_prop": true,
"show_property_type": true,
"default_property_type": "int",
"default_int_property": 4
}
}
},
"outputs": {
"Result": {
"bl_idname": "SvStringsSocket",
"name": "Result"
}
},
"bl_idname": "SvLogicNodeMK2"
},
"List Split": {
"attributes": {
"location": [
495.55868911743164,
-341.50430488586426
],
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
},
"Split": {
"bl_idname": "SvStringsSocket",
"name": "Split",
"properties": {
"prop_name": "split"
}
}
},
"outputs": {
"Split": {
"bl_idname": "SvStringsSocket",
"name": "Split"
}
},
"bl_idname": "SvListSplitNode"
},
"Number Range": {
"attributes": {
"location": [
275.97729873657227,
-315.1413288116455
],
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"properties": {
"number_mode": "int",
"current_mode": "RANGE",
"stop_int": 5
},
"inputs": {
"Start": {
"bl_idname": "SvStringsSocket",
"name": "Start",
"properties": {
"prop_name": "start_int"
}
},
"Step": {
"bl_idname": "SvStringsSocket",
"name": "Step",
"properties": {
"prop_name": "stop_int",
"label": "stop"
}
},
"Stop": {
"bl_idname": "SvStringsSocket",
"name": "Stop",
"properties": {
"prop_name": "step_int",
"label": "step"
}
}
},
"outputs": {
"Range": {
"bl_idname": "SvStringsSocket",
"name": "Range"
}
},
"bl_idname": "SvGenNumberRange"
},
"Unique Items.001": {
"attributes": {
"location": [
476.87009048461914,
-155.74043464660645
],
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"properties": {
"level": 1
},
"inputs": {
"Data": {
"bl_idname": "SvStringsSocket",
"name": "Data"
}
},
"outputs": {
"Items": {
"bl_idname": "SvStringsSocket",
"name": "Items"
},
"Indices": {
"bl_idname": "SvStringsSocket",
"name": "Indices"
},
"Inverse Indices": {
"bl_idname": "SvStringsSocket",
"name": "Inverse Indices"
},
"Counts": {
"bl_idname": "SvStringsSocket",
"name": "Counts"
}
},
"bl_idname": "SvUniqueItemsNode"
},
"Scalar Math": {
"attributes": {
"location": [
285.01877212524414,
-146.2968921661377
],
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"properties": {
"current_op": "ROUND-N",
"y_": 2.0
},
"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"
},
"Path Length": {
"attributes": {
"location": [
280.167423248291,
72.93144035339355
],
"parent": {
"type": "NODE",
"value": "Frame"
}
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
}
},
"outputs": {
"SegmentLength": {
"bl_idname": "SvStringsSocket",
"name": "SegmentLength"
},
"TotalLength": {
"bl_idname": "SvStringsSocket",
"name": "TotalLength"
},
"CumulativeSum": {
"bl_idname": "SvStringsSocket",
"name": "CumulativeSum"
},
"CumulativeSum1": {
"bl_idname": "SvStringsSocket",
"name": "CumulativeSum1"
}
},
"bl_idname": "SvPathLengthMk2Node"
},
"Segment": {
"attributes": {
"location": [
1214.8839569091797,
-174.1327896118164
],
"color": [
0.8966601490974426,
0.8966601490974426,
0.8966601490974426
],
"use_custom_color": true,
"parent": {
"type": "NODE",
"value": "Frame.003"
}
},
"properties": {
"b": [
8.960000038146973,
0.0,
0.0
],
"cuts_number": 3
},
"inputs": {
"A": {
"bl_idname": "SvVerticesSocket",
"name": "A",
"properties": {
"prop_name": "a"
}
},
"B": {
"bl_idname": "SvVerticesSocket",
"name": "B",
"properties": {
"prop_name": "b",
"expanded": true
}
},
"Cuts": {
"bl_idname": "SvStringsSocket",
"name": "Cuts",
"properties": {
"prop_name": "cuts_number"
}
},
"Steps": {
"bl_idname": "SvStringsSocket",
"name": "Steps",
"attributes": {
"hide": true
}
}
},
"outputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
}
},
"bl_idname": "SvSegmentGenerator"
},
"Viewer Draw": {
"attributes": {
"location": [
1402.1133270263672,
64.25614166259766
],
"color": [
0.7966601252555847,
0.7966601252555847,
0.7966601252555847
],
"use_custom_color": true,
"parent": {
"type": "NODE",
"value": "Frame.003"
}
},
"properties": {
"selected_draw_mode": "facet",
"edge_color": [
1.0,
1.0,
0.38777613639831543,
1.0
],
"line_width": 2,
"display_verts": 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"
},
"List Mask (Out)": {
"attributes": {
"location": [
1213.5846405029297,
64.62287902832031
],
"parent": {
"type": "NODE",
"value": "Frame.003"
}
},
"properties": {
"Level": 2
},
"inputs": {
"data": {
"bl_idname": "SvStringsSocket",
"name": "data"
},
"mask": {
"bl_idname": "SvStringsSocket",
"name": "mask"
}
},
"outputs": {
"mask": {
"bl_idname": "SvStringsSocket",
"name": "mask"
},
"ind_true": {
"bl_idname": "SvStringsSocket",
"name": "ind_true"
},
"ind_false": {
"bl_idname": "SvStringsSocket",
"name": "ind_false"
},
"dataTrue": {
"bl_idname": "SvStringsSocket",
"name": "dataTrue"
},
"dataFalse": {
"bl_idname": "SvStringsSocket",
"name": "dataFalse"
}
},
"bl_idname": "MaskListNode"
},
"List Match": {
"attributes": {
"location": [
935.1462535858154,
57.35741424560547
],
"parent": {
"type": "NODE",
"value": "Frame.002"
}
},
"inputs": {
"Data 0": {
"bl_idname": "SvStringsSocket",
"name": "Data 0"
},
"Data 1": {
"bl_idname": "SvStringsSocket",
"name": "Data 1"
},
"Data 2": {
"bl_idname": "SvStringsSocket",
"name": "Data 2"
},
"Data 3": {
"bl_idname": "SvStringsSocket",
"name": "Data 3"
},
"Data 4": {
"bl_idname": "SvStringsSocket",
"name": "Data 4"
}
},
"outputs": {
"Data 0": {
"bl_idname": "SvStringsSocket",
"name": "Data 0"
},
"Data 1": {
"bl_idname": "SvStringsSocket",
"name": "Data 1"
},
"Data 2_001": {
"bl_idname": "SvVerticesSocket",
"name": "Data 2"
},
"Data 3": {
"bl_idname": "SvStringsSocket",
"name": "Data 3"
},
"Data 4": {
"bl_idname": "SvStringsSocket",
"name": "Data 4"
}
},
"bl_idname": "ListMatchNode"
}
},
"links": [
{
"from_node": "IcoSphere",
"from_socket": "Vertices",
"to_node": "Bisect",
"to_socket": "vertices"
},
{
"from_node": "IcoSphere",
"from_socket": "Faces",
"to_node": "Bisect",
"to_socket": "edg_pol"
},
{
"from_node": "Matrix In",
"from_socket": "Matrices",
"to_node": "Bisect",
"to_socket": "cut_matrix"
},
{
"from_node": "Unique Items.001",
"from_socket": "Inverse Indices",
"to_node": "Logic Functions",
"to_socket": "A"
},
{
"from_node": "List Split",
"from_socket": "Split",
"to_node": "Logic Functions",
"to_socket": "B"
},
{
"from_node": "Number Range",
"from_socket": "Range",
"to_node": "List Split",
"to_socket": "Data"
},
{
"from_node": "Scalar Math",
"from_socket": "Out",
"to_node": "Unique Items.001",
"to_socket": "Data"
},
{
"from_node": "Path Length",
"from_socket": "SegmentLength",
"to_node": "Scalar Math",
"to_socket": "x"
},
{
"from_node": "Bisect",
"from_socket": "vertices",
"to_node": "Path Length",
"to_socket": "Vertices"
},
{
"from_node": "Bisect",
"from_socket": "edges",
"to_node": "Path Length",
"to_socket": "Edges"
},
{
"from_node": "List Match",
"from_socket": "Data 2_001",
"to_node": "Viewer Draw",
"to_socket": "Vertices"
},
{
"from_node": "List Mask (Out)",
"from_socket": "dataTrue",
"to_node": "Viewer Draw",
"to_socket": "Edges"
},
{
"from_node": "List Match",
"from_socket": "Data 3",
"to_node": "Viewer Draw",
"to_socket": "Polygons"
},
{
"from_node": "Segment",
"from_socket": "Verts",
"to_node": "Viewer Draw",
"to_socket": "Matrix"
},
{
"from_node": "List Match",
"from_socket": "Data 0",
"to_node": "List Mask (Out)",
"to_socket": "data"
},
{
"from_node": "List Match",
"from_socket": "Data 1",
"to_node": "List Mask (Out)",
"to_socket": "mask"
},
{
"from_node": "Bisect",
"from_socket": "edges",
"to_node": "List Match",
"to_socket": "Data 0"
},
{
"from_node": "Logic Functions",
"from_socket": "Result",
"to_node": "List Match",
"to_socket": "Data 1"
},
{
"from_node": "Bisect",
"from_socket": "vertices",
"to_node": "List Match",
"to_socket": "Data 2"
},
{
"from_node": "Bisect",
"from_socket": "polygons",
"to_node": "List Match",
"to_socket": "Data 3"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment