Created
June 8, 2021 08:37
-
-
Save zeffii/b695720d12d404c034b5bffd5cb4b6e1 to your computer and use it in GitHub Desktop.
Sverchok.0.6.0.0 | Blender.2.93.0Beta | NodeTree | 2021.06.08 | 10:37 | license: CC BY-SA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"export_version": "1.0", | |
"main_tree": { | |
"nodes": { | |
"Frame": { | |
"attributes": { | |
"location": [ | |
-28.453428268432617, | |
11.548300743103027 | |
], | |
"height": 253.0827178955078, | |
"width": 807.3504028320312, | |
"label": "generator" | |
}, | |
"bl_idname": "NodeFrame" | |
}, | |
"Frame.001": { | |
"attributes": { | |
"location": [ | |
22.33113670349121, | |
85.84581756591797 | |
], | |
"height": 191.8099365234375, | |
"width": 591.9131469726562, | |
"label": "twist" | |
}, | |
"bl_idname": "NodeFrame" | |
}, | |
"Frame.002": { | |
"attributes": { | |
"location": [ | |
87.65853881835938, | |
0.4250762462615967 | |
], | |
"height": 485.8387756347656, | |
"width": 389.0312805175781, | |
"label": "bevel object" | |
}, | |
"bl_idname": "NodeFrame" | |
}, | |
"Evaluate Curve": { | |
"attributes": { | |
"location": [ | |
-272.632230758667, | |
-198.11730289459229 | |
], | |
"parent": { | |
"type": "NODE", | |
"value": "Frame" | |
} | |
}, | |
"properties": { | |
"sample_size": 200 | |
}, | |
"inputs": { | |
"Curve": { | |
"bl_idname": "SvCurveSocket", | |
"name": "Curve" | |
}, | |
"T": { | |
"bl_idname": "SvStringsSocket", | |
"name": "T", | |
"attributes": { | |
"hide": true | |
}, | |
"properties": { | |
"prop_name": "t_value" | |
} | |
}, | |
"Samples": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Samples", | |
"properties": { | |
"prop_name": "sample_size" | |
} | |
} | |
}, | |
"outputs": { | |
"Vertices": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Vertices" | |
}, | |
"Edges": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Edges" | |
}, | |
"Tangents": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Tangents" | |
} | |
}, | |
"bl_idname": "SvExEvalCurveNode" | |
}, | |
"Formula": { | |
"attributes": { | |
"location": [ | |
166.39598655700684, | |
-168.99005889892578 | |
], | |
"parent": { | |
"type": "NODE", | |
"value": "Frame.001" | |
} | |
}, | |
"properties": { | |
"formula1": "abs(z)/10" | |
}, | |
"inputs": { | |
"z": { | |
"bl_idname": "SvFormulaSocket", | |
"name": "z" | |
} | |
}, | |
"outputs": { | |
"Result": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Result" | |
} | |
}, | |
"bl_idname": "SvFormulaNodeMk5" | |
}, | |
"Formula.002": { | |
"attributes": { | |
"location": [ | |
567.3414916992188, | |
-143.33697509765625 | |
], | |
"width": 231.4080810546875 | |
}, | |
"properties": { | |
"formula1": "x if y>-7 else 1.5-abs(y)**1.8/40" | |
}, | |
"inputs": { | |
"x": { | |
"bl_idname": "SvFormulaSocket", | |
"name": "x" | |
}, | |
"y": { | |
"bl_idname": "SvFormulaSocket", | |
"name": "y" | |
} | |
}, | |
"outputs": { | |
"Result": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Result" | |
} | |
}, | |
"bl_idname": "SvFormulaNodeMk5" | |
}, | |
"Note": { | |
"attributes": { | |
"location": [ | |
-880.4713134765625, | |
-14.539448738098145 | |
], | |
"width": 400.0, | |
"color": [ | |
1.0, | |
0.8993440270423889, | |
0.9742509722709656 | |
], | |
"use_custom_color": true | |
}, | |
"properties": { | |
"n_id": "-8503949147017359024", | |
"show_text": false, | |
"text": "Nikitron 2020 | Tie revange from radiation dust . SNL implemented generator. Input letters l r t as in this example and create new toes. Schema was taken from Russian magazine 'Nauka i gizn''." | |
}, | |
"inputs": { | |
"Text In": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Text In" | |
} | |
}, | |
"outputs": { | |
"Text Out": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Text Out" | |
} | |
}, | |
"bl_idname": "NoteNode" | |
}, | |
"Note.001": { | |
"attributes": { | |
"location": [ | |
-879.9826030731201, | |
-203.7450647354126 | |
], | |
"width": 400.0, | |
"color": [ | |
1.0, | |
0.8993440270423889, | |
0.9742509722709656 | |
], | |
"use_custom_color": true, | |
"parent": { | |
"type": "NODE", | |
"value": "Frame" | |
} | |
}, | |
"properties": { | |
"n_id": "-8503949147017355483", | |
"text": "l r r l r t" | |
}, | |
"inputs": { | |
"Text In": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Text In" | |
} | |
}, | |
"outputs": { | |
"Text Out": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Text Out" | |
} | |
}, | |
"bl_idname": "NoteNode" | |
}, | |
"Polyline Viewer.002": { | |
"attributes": { | |
"location": [ | |
876.0524291992188, | |
24.139108657836914 | |
], | |
"color": [ | |
1.0, | |
0.5889999866485596, | |
0.21400000154972076 | |
], | |
"use_custom_color": true | |
}, | |
"properties": { | |
"base_data_name": "Omicron", | |
"bevel_depth": 0.8299999833106995, | |
"is_lock_origin": false | |
}, | |
"inputs": { | |
"vertices": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "vertices", | |
"properties": { | |
"custom_draw": "draw_vertices_props" | |
} | |
}, | |
"matrix": { | |
"bl_idname": "SvMatrixSocket", | |
"name": "matrix", | |
"properties": { | |
"custom_draw": "draw_matrix_props" | |
} | |
}, | |
"radius": { | |
"bl_idname": "SvStringsSocket", | |
"name": "radius", | |
"properties": { | |
"use_prop": true, | |
"default_float_property": 0.20000000298023224 | |
} | |
}, | |
"tilt": { | |
"bl_idname": "SvStringsSocket", | |
"name": "tilt", | |
"properties": { | |
"use_prop": true, | |
"default_float_property": -45.68400192260742 | |
} | |
}, | |
"bevel object": { | |
"bl_idname": "SvObjectSocket", | |
"name": "bevel object", | |
"properties": { | |
"custom_draw": "draw_object_props", | |
"object_kinds": "CURVE" | |
} | |
}, | |
"Cyclic": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Cyclic", | |
"properties": { | |
"prop_name": "close" | |
} | |
} | |
}, | |
"outputs": { | |
"Objects": { | |
"bl_idname": "SvObjectSocket", | |
"name": "Objects" | |
} | |
}, | |
"bl_idname": "SvPolylineViewerNode" | |
}, | |
"Scalar Math": { | |
"attributes": { | |
"location": [ | |
367.31590843200684, | |
-175.49298858642578 | |
], | |
"parent": { | |
"type": "NODE", | |
"value": "Frame.001" | |
} | |
}, | |
"properties": { | |
"current_op": "MAX", | |
"y_": 0.3700000047683716 | |
}, | |
"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" | |
}, | |
"Scripted Node Lite": { | |
"attributes": { | |
"location": [ | |
-447.1896343231201, | |
-204.2407464981079 | |
], | |
"color": [ | |
0.0, | |
0.800000011920929, | |
0.949999988079071 | |
], | |
"use_custom_color": true, | |
"parent": { | |
"type": "NODE", | |
"value": "Frame" | |
} | |
}, | |
"properties": { | |
"n_id": "-8503949147017355656", | |
"script_name": "Text.001", | |
"script_str": "from sverchok.utils.geom import LinearSpline, CubicSpline\nfrom sverchok.utils.math import supported_metrics\nfrom sverchok.utils.curve import SvSplineCurve\n\n\"\"\"\nin numbr s d=[[]] n=0\nout splin C\nout verts v\n\"\"\"\n\n# '''use note node to define toe\n# l - left, r - right, t - top,\n# bake, convert to curve and\n# extrude 0.3\n# Start always from l finish with t\n# and finish inside out\n# use live_curve script \n# to materialize curve to tie\n# Nikitron, 2014'''\n\n\nout = [ \n (0, 0.2, -5),\n (0, 0.2, -3),\n (0, 0.2, 0),\n (1, 0.2, 1),\n (3, 5, 2),\n (0, 7, 2),\n (-3, 5, 2),\n (-1, 0.5, 1) ]\nfront = True\n\nvecs = [(0.8660254037844386, 0.0, -0.5),\n (0,0,1),\n (-0.8660254037844386, 0.0, -0.5)]\nif numbr:\n n_ = numbr[0][0].split(' ')\n print('default letters: ',n_)\n for k, i in enumerate(n_):\n if i[0] == 'l':\n i = 0\n elif i[0] == 't':\n i = 1\n elif i[0] == 'r':\n i = 2\n v = vecs[i]\n if front:\n front = False\n y1 = -0.015\n y2 = 0.015\n else:\n front = True\n y1 = 0.015\n y2 = -0.015\n out.append([v[0]*k*0.05+v[0],\n y1*(k+1),\n v[2]*k*0.05+v[2]])\n out.append([v[0]*k*0.05+v[0],\n y2*(k+1),\n v[2]*k*0.05+v[2]])\n out.extend([\n (0, -0.4,-1),\n (0, -0.2,-3),\n (0, 0,-10)])\n\nspline = CubicSpline(out, metric = 'CHEBYSHEV', is_cyclic = False)\ncurve = SvSplineCurve(spline)\nverts=[out]\n\nsplin = [curve]\n" | |
}, | |
"inputs": { | |
"numbr": { | |
"bl_idname": "SvStringsSocket", | |
"name": "numbr" | |
} | |
}, | |
"outputs": { | |
"splin": { | |
"bl_idname": "SvCurveSocket", | |
"name": "splin" | |
}, | |
"verts": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "verts" | |
} | |
}, | |
"bl_idname": "SvScriptNodeLite" | |
}, | |
"Vector out": { | |
"attributes": { | |
"location": [ | |
-24.597192764282227, | |
-180.94178009033203 | |
], | |
"parent": { | |
"type": "NODE", | |
"value": "Frame.001" | |
} | |
}, | |
"inputs": { | |
"Vectors": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Vectors" | |
} | |
}, | |
"outputs": { | |
"X": { | |
"bl_idname": "SvStringsSocket", | |
"name": "X" | |
}, | |
"Y": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Y" | |
}, | |
"Z": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Z" | |
} | |
}, | |
"bl_idname": "VectorsOutNode" | |
}, | |
"Polyline Viewer.003": { | |
"attributes": { | |
"location": [ | |
632.0551452636719, | |
-432.5612518787384 | |
], | |
"color": [ | |
1.0, | |
0.5889999866485596, | |
0.21400000154972076 | |
], | |
"use_custom_color": true, | |
"parent": { | |
"type": "NODE", | |
"value": "Frame.002" | |
} | |
}, | |
"properties": { | |
"base_data_name": "Gamma", | |
"bevel_depth": 0.0, | |
"curve_dimensions": "2D", | |
"curve_type": "POLY", | |
"is_lock_origin": false | |
}, | |
"inputs": { | |
"vertices": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "vertices", | |
"properties": { | |
"custom_draw": "draw_vertices_props" | |
} | |
}, | |
"matrix": { | |
"bl_idname": "SvMatrixSocket", | |
"name": "matrix", | |
"properties": { | |
"custom_draw": "draw_matrix_props" | |
} | |
}, | |
"radius": { | |
"bl_idname": "SvStringsSocket", | |
"name": "radius", | |
"properties": { | |
"use_prop": true, | |
"default_float_property": 0.20000000298023224 | |
} | |
}, | |
"tilt": { | |
"bl_idname": "SvStringsSocket", | |
"name": "tilt", | |
"properties": { | |
"use_prop": true | |
} | |
}, | |
"bevel object": { | |
"bl_idname": "SvObjectSocket", | |
"name": "bevel object", | |
"properties": { | |
"custom_draw": "draw_object_props", | |
"object_kinds": "CURVE" | |
} | |
}, | |
"Cyclic": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Cyclic", | |
"properties": { | |
"prop_name": "close" | |
} | |
} | |
}, | |
"outputs": { | |
"Objects": { | |
"bl_idname": "SvObjectSocket", | |
"name": "Objects" | |
} | |
}, | |
"bl_idname": "SvPolylineViewerNode" | |
}, | |
"Objects in Lite": { | |
"attributes": { | |
"location": [ | |
443.0238952636719, | |
-434.9014313220978 | |
], | |
"color": [ | |
0.904932975769043, | |
1.0, | |
0.883421003818512 | |
], | |
"use_custom_color": true, | |
"parent": { | |
"type": "NODE", | |
"value": "Frame.002" | |
} | |
}, | |
"properties": { | |
"currently_storing": true, | |
"obj_name": "BezierCurve", | |
"do_not_add_obj_to_scene": true | |
}, | |
"outputs": { | |
"Vertices": { | |
"bl_idname": "SvVerticesSocket", | |
"name": "Vertices" | |
}, | |
"Edges": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Edges" | |
}, | |
"Polygons": { | |
"bl_idname": "SvStringsSocket", | |
"name": "Polygons" | |
}, | |
"MaterialIdx": { | |
"bl_idname": "SvStringsSocket", | |
"name": "MaterialIdx" | |
}, | |
"Matrix": { | |
"bl_idname": "SvMatrixSocket", | |
"name": "Matrix" | |
} | |
}, | |
"bl_idname": "SvObjInLite" | |
} | |
}, | |
"links": [ | |
{ | |
"from_node": "Scripted Node Lite", | |
"from_socket": "splin", | |
"to_node": "Evaluate Curve", | |
"to_socket": "Curve" | |
}, | |
{ | |
"from_node": "Vector out", | |
"from_socket": "Z", | |
"to_node": "Formula", | |
"to_socket": "z" | |
}, | |
{ | |
"from_node": "Scalar Math", | |
"from_socket": "Out", | |
"to_node": "Formula.002", | |
"to_socket": "x" | |
}, | |
{ | |
"from_node": "Vector out", | |
"from_socket": "Z", | |
"to_node": "Formula.002", | |
"to_socket": "y" | |
}, | |
{ | |
"from_node": "Evaluate Curve", | |
"from_socket": "Vertices", | |
"to_node": "Polyline Viewer.002", | |
"to_socket": "vertices" | |
}, | |
{ | |
"from_node": "Formula.002", | |
"from_socket": "Result", | |
"to_node": "Polyline Viewer.002", | |
"to_socket": "radius" | |
}, | |
{ | |
"from_node": "Polyline Viewer.003", | |
"from_socket": "Objects", | |
"to_node": "Polyline Viewer.002", | |
"to_socket": "bevel object" | |
}, | |
{ | |
"from_node": "Formula", | |
"from_socket": "Result", | |
"to_node": "Scalar Math", | |
"to_socket": "x" | |
}, | |
{ | |
"from_node": "Note.001", | |
"from_socket": "Text Out", | |
"to_node": "Scripted Node Lite", | |
"to_socket": "numbr" | |
}, | |
{ | |
"from_node": "Evaluate Curve", | |
"from_socket": "Vertices", | |
"to_node": "Vector out", | |
"to_socket": "Vectors" | |
}, | |
{ | |
"from_node": "Objects in Lite", | |
"from_socket": "Vertices", | |
"to_node": "Polyline Viewer.003", | |
"to_socket": "vertices" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment