Skip to content

Instantly share code, notes, and snippets.

@portnov
Created January 21, 2023 20:05
Show Gist options
  • Save portnov/fc91feb2ab8e1612d3c41c57f0f7f8aa to your computer and use it in GitHub Desktop.
Save portnov/fc91feb2ab8e1612d3c41c57f0f7f8aa to your computer and use it in GitHub Desktop.
Sverchok.v1.2.0-alpha | Blender.3.4.0 | NodeTree | 2023.01.22 | 01:05 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Line": {
"attributes": {
"location": [
-369.0294189453125,
12.2808837890625
]
},
"properties": {
"num": 8
},
"inputs": {
"Num": {
"bl_idname": "SvStringsSocket",
"name": "Num",
"properties": {
"prop_name": "num"
}
},
"Steps": {
"bl_idname": "SvStringsSocket",
"name": "Steps",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "step"
}
},
"Size": {
"bl_idname": "SvStringsSocket",
"name": "Size",
"properties": {
"prop_name": "size"
}
},
"Origin": {
"bl_idname": "SvVerticesSocket",
"name": "Origin",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "v3_origin"
}
},
"Direction": {
"bl_idname": "SvVerticesSocket",
"name": "Direction",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "v3_dir"
}
}
},
"outputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
}
},
"bl_idname": "SvLineNodeMK4"
},
"Randomize": {
"attributes": {
"location": [
-126.03173065185547,
39.03790283203125
]
},
"properties": {
"random_x_": 0.29999998211860657,
"random_y_": 0.9299999475479126,
"random_z_": 2.93999981880188
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"RandomX": {
"bl_idname": "SvStringsSocket",
"name": "RandomX",
"properties": {
"prop_name": "random_x_"
}
},
"RandomY": {
"bl_idname": "SvStringsSocket",
"name": "RandomY",
"properties": {
"prop_name": "random_y_"
}
},
"RandomZ": {
"bl_idname": "SvStringsSocket",
"name": "RandomZ",
"properties": {
"prop_name": "random_z_"
}
},
"Seed": {
"bl_idname": "SvStringsSocket",
"name": "Seed",
"properties": {
"prop_name": "random_seed_"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
}
},
"bl_idname": "SvRandomizeVerticesNode"
},
"Interpolate NURBS Curve": {
"attributes": {
"location": [
92.27909851074219,
36.16442108154297
]
},
"properties": {
"nurbs_implementation": "NATIVE"
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Degree": {
"bl_idname": "SvStringsSocket",
"name": "Degree",
"properties": {
"prop_name": "degree"
}
}
},
"outputs": {
"Curve": {
"bl_idname": "SvCurveSocket",
"name": "Curve"
},
"ControlPoints": {
"bl_idname": "SvVerticesSocket",
"name": "ControlPoints"
},
"Knots": {
"bl_idname": "SvStringsSocket",
"name": "Knots"
}
},
"bl_idname": "SvExInterpolateNurbsCurveNode"
},
"Adaptive Plot NURBS Curve": {
"attributes": {
"location": [
279.57012939453125,
-92.33846282958984
]
},
"properties": {
"tolerance": 0.004999999888241291
},
"inputs": {
"Curve": {
"bl_idname": "SvCurveSocket",
"name": "Curve"
},
"InitCuts": {
"bl_idname": "SvStringsSocket",
"name": "InitCuts",
"properties": {
"prop_name": "init_cuts"
}
},
"Tolerance": {
"bl_idname": "SvStringsSocket",
"name": "Tolerance",
"properties": {
"prop_name": "tolerance"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
},
"T": {
"bl_idname": "SvStringsSocket",
"name": "T"
}
},
"bl_idname": "SvAdaptivePlotNurbsCurveNode"
},
"Segment": {
"attributes": {
"location": [
554.4930419921875,
-82.93270111083984
]
},
"properties": {
"split_mode": "Steps",
"b": [
0.0,
1.0,
0.0
]
},
"inputs": {
"A": {
"bl_idname": "SvVerticesSocket",
"name": "A",
"properties": {
"prop_name": "a",
"expanded": true
}
},
"B": {
"bl_idname": "SvVerticesSocket",
"name": "B",
"properties": {
"prop_name": "b",
"expanded": true
}
},
"Cuts": {
"bl_idname": "SvStringsSocket",
"name": "Cuts",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "cuts_number"
}
},
"Steps": {
"bl_idname": "SvStringsSocket",
"name": "Steps"
}
},
"outputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
}
},
"bl_idname": "SvSegmentGenerator"
},
"Line.001": {
"attributes": {
"location": [
596.3858642578125,
-377.80914306640625
]
},
"properties": {
"size": 6.2831854820251465,
"num": 12
},
"inputs": {
"Num": {
"bl_idname": "SvStringsSocket",
"name": "Num",
"properties": {
"prop_name": "num"
}
},
"Steps": {
"bl_idname": "SvStringsSocket",
"name": "Steps",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "step"
}
},
"Size": {
"bl_idname": "SvStringsSocket",
"name": "Size",
"properties": {
"prop_name": "size"
}
},
"Origin": {
"bl_idname": "SvVerticesSocket",
"name": "Origin",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "v3_origin"
}
},
"Direction": {
"bl_idname": "SvVerticesSocket",
"name": "Direction",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "v3_dir"
}
}
},
"outputs": {
"Verts": {
"bl_idname": "SvVerticesSocket",
"name": "Verts",
"properties": {
"use_graft": true
}
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges"
}
},
"bl_idname": "SvLineNodeMK4"
},
"Move": {
"attributes": {
"location": [
811.6555786132812,
-88.93347930908203
]
},
"inputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Movement Vectors": {
"bl_idname": "SvVerticesSocket",
"name": "Movement Vectors",
"properties": {
"prop_name": "movement_vectors"
}
},
"Strength": {
"bl_idname": "SvStringsSocket",
"name": "Strength",
"properties": {
"prop_name": "strength"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices",
"properties": {
"use_unwrap": true
}
}
},
"bl_idname": "SvMoveNodeMk3"
},
"Pipe Surface Along Curve": {
"attributes": {
"location": [
299.1427917480469,
69.81368255615234
]
},
"properties": {
"algorithm": "track"
},
"inputs": {
"Curve": {
"bl_idname": "SvCurveSocket",
"name": "Curve"
},
"Radius": {
"bl_idname": "SvStringsSocket",
"name": "Radius",
"properties": {
"prop_name": "radius"
}
},
"Resolution": {
"bl_idname": "SvStringsSocket",
"name": "Resolution",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "resolution"
}
}
},
"outputs": {
"Surface": {
"bl_idname": "SvSurfaceSocket",
"name": "Surface"
}
},
"bl_idname": "SvPipeSurfaceNode"
},
"Evaluate Surface": {
"attributes": {
"location": [
1290.5855712890625,
210.35903930664062
]
},
"properties": {
"eval_mode": "EXPLICIT",
"input_mode": "VERTICES",
"clamp_mode": "CLAMP"
},
"inputs": {
"Surface": {
"bl_idname": "SvSurfaceSocket",
"name": "Surface"
},
"U": {
"bl_idname": "SvStringsSocket",
"name": "U",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "u_value"
}
},
"V": {
"bl_idname": "SvStringsSocket",
"name": "V",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "v_value"
}
},
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"SamplesU": {
"bl_idname": "SvStringsSocket",
"name": "SamplesU",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "samples_u"
}
},
"SamplesV": {
"bl_idname": "SvStringsSocket",
"name": "SamplesV",
"attributes": {
"hide": true
},
"properties": {
"prop_name": "samples_v"
}
}
},
"outputs": {
"Vertices": {
"bl_idname": "SvVerticesSocket",
"name": "Vertices"
},
"Edges": {
"bl_idname": "SvStringsSocket",
"name": "Edges",
"attributes": {
"hide": true
}
},
"Faces": {
"bl_idname": "SvStringsSocket",
"name": "Faces",
"attributes": {
"hide": true
}
}
},
"bl_idname": "SvExEvalSurfaceNode"
},
"Viewer Draw": {
"attributes": {
"location": [
1314.05419921875,
-111.19074249267578
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"edge_color": [
0.0,
0.7798373103141785,
0.8999999165534973,
1.0
],
"selected_draw_mode": "facet",
"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"
},
"UV Connection": {
"attributes": {
"location": [
1035.978515625,
-4.883785724639893
],
"width": 169.85528564453125
},
"properties": {
"slice_check": false
},
"inputs": {
"vertices": {
"bl_idname": "SvVerticesSocket",
"name": "vertices"
},
"vertices 1": {
"bl_idname": "SvVerticesSocket",
"name": "vertices 1"
}
},
"outputs": {
"vertices": {
"bl_idname": "SvVerticesSocket",
"name": "vertices"
},
"data": {
"bl_idname": "SvStringsSocket",
"name": "data"
}
},
"bl_idname": "LineConnectNodeMK2"
},
"Viewer Draw.001": {
"attributes": {
"location": [
1517.62060546875,
191.2640380859375
],
"color": [
1.0,
0.5889999866485596,
0.21400000154972076
],
"use_custom_color": true
},
"properties": {
"custom_fragment_shader": "\n uniform float brightness;\n\n in vec3 pos;\n\n void main()\n {\n gl_FragColor = vec4(pos * brightness, 1.0);\n }\n",
"display_verts": false,
"edge_color": [
0.30573487281799316,
0.003269235836341977,
0.019176948815584183,
1.0
],
"polygon_color": [
1.0,
0.900135338306427,
0.5130714178085327,
1.0
],
"selected_draw_mode": "facet",
"vector_color": [
0.9111706614494324,
0.4350321292877197,
0.2654842138290405,
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"
}
},
"links": [
{
"from_node": "Line",
"from_socket": "Verts",
"to_node": "Randomize",
"to_socket": "Vertices"
},
{
"from_node": "Randomize",
"from_socket": "Vertices",
"to_node": "Interpolate NURBS Curve",
"to_socket": "Vertices"
},
{
"from_node": "Interpolate NURBS Curve",
"from_socket": "Curve",
"to_node": "Adaptive Plot NURBS Curve",
"to_socket": "Curve"
},
{
"from_node": "Adaptive Plot NURBS Curve",
"from_socket": "T",
"to_node": "Segment",
"to_socket": "Steps"
},
{
"from_node": "Segment",
"from_socket": "Verts",
"to_node": "Move",
"to_socket": "Vertices"
},
{
"from_node": "Line.001",
"from_socket": "Verts",
"to_node": "Move",
"to_socket": "Movement Vectors"
},
{
"from_node": "Interpolate NURBS Curve",
"from_socket": "Curve",
"to_node": "Pipe Surface Along Curve",
"to_socket": "Curve"
},
{
"from_node": "Pipe Surface Along Curve",
"from_socket": "Surface",
"to_node": "Evaluate Surface",
"to_socket": "Surface"
},
{
"from_node": "UV Connection",
"from_socket": "vertices",
"to_node": "Evaluate Surface",
"to_socket": "Vertices"
},
{
"from_node": "UV Connection",
"from_socket": "vertices",
"to_node": "Viewer Draw",
"to_socket": "Vertices"
},
{
"from_node": "UV Connection",
"from_socket": "data",
"to_node": "Viewer Draw",
"to_socket": "Polygons"
},
{
"from_node": "Move",
"from_socket": "Vertices",
"to_node": "UV Connection",
"to_socket": "vertices"
},
{
"from_node": "Evaluate Surface",
"from_socket": "Vertices",
"to_node": "Viewer Draw.001",
"to_socket": "Vertices"
},
{
"from_node": "UV Connection",
"from_socket": "data",
"to_node": "Viewer Draw.001",
"to_socket": "Polygons"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment