Created
November 11, 2016 11:06
-
-
Save enzyme69/acdae761df4d441602c68c14aafaa6e9 to your computer and use it in GitHub Desktop.
SV Super Formula Basic Setup, use this with the Script Node
This file contains 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": "0.062", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"Cylinder": { | |
"bl_idname": "CylinderNode", | |
"color": [ | |
0.0, | |
0.5, | |
0.5 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
2025.2806396484375, | |
-154.73167419433594 | |
], | |
"params": { | |
"Separate": 0, | |
"cap_": 0, | |
"height_": 2.5400002002716064, | |
"radBot_": 1.0, | |
"radTop_": 1.0, | |
"subd_": 6, | |
"vert_": 70 | |
}, | |
"width": 140.0 | |
}, | |
"Frame info": { | |
"bl_idname": "SvFrameInfoNode", | |
"color": [ | |
0.0, | |
0.5, | |
0.20000000298023224 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-324.0396728515625, | |
-387.14373779296875 | |
], | |
"params": {}, | |
"width": 140.0 | |
}, | |
"Int": { | |
"bl_idname": "IntegerNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-269.0242004394531, | |
-7.7115020751953125 | |
], | |
"params": { | |
"int_": 59 | |
}, | |
"width": 140.0 | |
}, | |
"Int.001": { | |
"bl_idname": "IntegerNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-305.85125732421875, | |
-192.78981018066406 | |
], | |
"params": { | |
"int_": 47 | |
}, | |
"width": 140.0 | |
}, | |
"Line": { | |
"bl_idname": "LineNode", | |
"color": [ | |
0.0, | |
0.5, | |
0.5 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
322.1800231933594, | |
-103.64895629882812 | |
], | |
"params": { | |
"int_": 8, | |
"step_": 0.8499999642372131 | |
}, | |
"width": 141.4698486328125 | |
}, | |
"List Join": { | |
"bl_idname": "ListJoinNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
2200.03076171875, | |
69.1461410522461 | |
], | |
"params": { | |
"JoinLevel": 2 | |
}, | |
"width": 140.0 | |
}, | |
"Map Range": { | |
"bl_idname": "SvMapRangeNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1125.787841796875, | |
-413.37884521484375 | |
], | |
"params": { | |
"clamp": 1, | |
"new_max": 6.96999979019165, | |
"new_min": 3.179999828338623, | |
"old_min": -1.0 | |
}, | |
"width": 140.0 | |
}, | |
"Math": { | |
"bl_idname": "ScalarMathNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
869.46875, | |
-409.7315979003906 | |
], | |
"params": {}, | |
"width": 140.0 | |
}, | |
"Math.001": { | |
"bl_idname": "ScalarMathNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
429.4687194824219, | |
-354.3573303222656 | |
], | |
"params": { | |
"items_": "MUL", | |
"y": 3.0 | |
}, | |
"width": 140.0 | |
}, | |
"Math.002": { | |
"bl_idname": "ScalarMathNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
196.12432861328125, | |
-307.670654296875 | |
], | |
"params": { | |
"items_": "ADD", | |
"y": 0.20000000298023224 | |
}, | |
"width": 140.0 | |
}, | |
"Math.003": { | |
"bl_idname": "ScalarMathNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1311.4302978515625, | |
-394.01678466796875 | |
], | |
"params": { | |
"items_": "MUL", | |
"y": 1.0 | |
}, | |
"width": 140.0 | |
}, | |
"Math.004": { | |
"bl_idname": "ScalarMathNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-61.32484436035156, | |
-388.13720703125 | |
], | |
"params": { | |
"items_": "MUL", | |
"y": 0.10000000149011612 | |
}, | |
"width": 140.0 | |
}, | |
"Math.005": { | |
"bl_idname": "ScalarMathNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
627.2222290039062, | |
-486.4305419921875 | |
], | |
"params": { | |
"items_": "ADD", | |
"y": 1.0 | |
}, | |
"width": 140.0 | |
}, | |
"Matrix Apply": { | |
"bl_idname": "MatrixApplyNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1973.7611083984375, | |
89.93470764160156 | |
], | |
"params": {}, | |
"width": 140.0 | |
}, | |
"Matrix in": { | |
"bl_idname": "MatrixGenNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1833.49755859375, | |
-21.07680892944336 | |
], | |
"params": {}, | |
"width": 111.3974609375 | |
}, | |
"Range Float": { | |
"bl_idname": "SvGenFloatRange", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-67.20112609863281, | |
-241.4510498046875 | |
], | |
"params": { | |
"count_": 10, | |
"mode": "FRANGE_COUNT" | |
}, | |
"width": 140.0 | |
}, | |
"Scripted Node": { | |
"bl_idname": "SvScriptNode", | |
"color": [ | |
0.0, | |
0.800000011920929, | |
0.949999988079071 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "spiral_fib.py", | |
"location": [ | |
213.6028289794922, | |
273.76776123046875 | |
], | |
"params": { | |
"button_names": "", | |
"files_popup": "spiral_fib.py", | |
"float_list": [ | |
0.0, | |
1.0, | |
1.0, | |
1.0, | |
1.0, | |
8.600000381469727, | |
4.450000286102295, | |
2.5, | |
9.880000114440918, | |
9.0, | |
10.0, | |
11.0, | |
12.0, | |
13.0, | |
14.0, | |
15.0, | |
16.0, | |
17.0, | |
18.0, | |
19.0, | |
20.0, | |
21.0, | |
22.0, | |
23.0, | |
24.0, | |
25.0, | |
26.0, | |
27.0, | |
28.0, | |
29.0, | |
30.0, | |
31.0 | |
], | |
"has_buttons": 0, | |
"int_list": [ | |
0, | |
69, | |
2, | |
3, | |
4, | |
5, | |
6, | |
7, | |
8, | |
9, | |
10, | |
11, | |
12, | |
13, | |
14, | |
15, | |
16, | |
17, | |
18, | |
19, | |
20, | |
21, | |
22, | |
23, | |
24, | |
25, | |
26, | |
27, | |
28, | |
29, | |
30, | |
31 | |
], | |
"script_name": "spiral_fib.py", | |
"script_str": "from math import sin, cos, radians, pi, sqrt\nfrom mathutils import Vector, Euler\n\n\ndef sv_main(n=480, scale=1.0, a=1.0, b=1.0, m=3.0, n1=4.5, n2=10.0, n3=10.0):\n\n in_sockets = [\n ['s', 'Number of points', n],\n ['s', 'Scale Factor', scale],\n ['s', 'a', a],\n ['s', 'b', b],\n ['s', 'm', m],\n ['s', 'n1', n1],\n ['s', 'n2', n2],\n ['s', 'n3', n3]\n ]\n\n a = a;\n b = b;\n \n m = m;\n n1 = n1;\n n2 = n2;\n n3 = n3;\n\n step = (2 * pi) / n;\n\n r = 1.0;\n phi = 0;\n\n Verts = []\n verts_new = Verts.append\n\n for i in range(0, n):\n #theta = i * radians(137.5)\n #r = c * sqrt(i)\n\n c = pow(abs(cos((m*phi) / 4)/a), n2);\n s = pow(abs(sin((m*phi) / 4)/b), n3);\n r = pow ((c + s) , (1/n1));\n\n # polar to cartesian\n\n posx = scale * r * sin (phi)\n posy = scale * r * cos (phi)\n \n verts_new((posx, posy, 0.0))\n \n phi += step\n\n\n out_sockets = [\n ['v', 'Verts', [Verts]]\n ]\n\n return in_sockets, out_sockets\n" | |
}, | |
"width": 214.24832153320312 | |
}, | |
"UV Connection": { | |
"bl_idname": "LineConnectNodeMK2", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
530.5308837890625, | |
234.97991943359375 | |
], | |
"params": { | |
"cicl_check_U": 1, | |
"cicl_check_V": 0, | |
"cup_V": 0, | |
"dir_check": "U_dir", | |
"polygons": "Edges", | |
"slice_check": 0 | |
}, | |
"width": 140.0 | |
}, | |
"Vector Noise": { | |
"bl_idname": "SvNoiseNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
364.9075622558594, | |
-542.4487915039062 | |
], | |
"params": { | |
"noise_type": "VORONOI_F2F1", | |
"out_mode": "SCALAR" | |
}, | |
"width": 140.0 | |
}, | |
"Vector in": { | |
"bl_idname": "GenVectorsNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1032.82568359375, | |
6.621686935424805 | |
], | |
"params": {}, | |
"width": 100.0 | |
}, | |
"Vector in.001": { | |
"bl_idname": "GenVectorsNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
1611.180908203125, | |
-137.39837646484375 | |
], | |
"params": { | |
"x_": 0.6899999976158142, | |
"y_": 0.6899999976158142, | |
"z_": 0.6899999976158142 | |
}, | |
"width": 100.0 | |
}, | |
"Vector out": { | |
"bl_idname": "VectorsOutNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, | |
0.6079999804496765 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
786.0457763671875, | |
33.40943145751953 | |
], | |
"params": {}, | |
"width": 140.0 | |
}, | |
"Viewer Draw": { | |
"bl_idname": "ViewerNode2", | |
"color": [ | |
1.0, | |
0.30000001192092896, | |
0.0 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
2420.756591796875, | |
-16.66683006286621 | |
], | |
"params": { | |
"display_edges": 0, | |
"display_verts": 0, | |
"shading": 1 | |
}, | |
"width": 140.0 | |
} | |
}, | |
"update_lists": [ | |
[ | |
"Int", | |
"Integer", | |
"Cylinder", | |
"Vertices" | |
], | |
[ | |
"Int.001", | |
"Integer", | |
"Cylinder", | |
"Subdivisions" | |
], | |
[ | |
"Int", | |
"Integer", | |
"Scripted Node", | |
"Number of points" | |
], | |
[ | |
"Scripted Node", | |
"Verts", | |
"UV Connection", | |
"vertices" | |
], | |
[ | |
"Int.001", | |
"Integer", | |
"Line", | |
"N\u00ba Vertices" | |
], | |
[ | |
"Line", | |
"Vertices", | |
"Vector out", | |
"Vectors" | |
], | |
[ | |
"Vector out", | |
"X", | |
"Vector in", | |
"Z" | |
], | |
[ | |
"Line", | |
"Vertices", | |
"Vector Noise", | |
"Vertices" | |
], | |
[ | |
"Int.001", | |
"Integer", | |
"Range Float", | |
"Stop" | |
], | |
[ | |
"Frame info", | |
"Current Frame", | |
"Math.004", | |
"X" | |
], | |
[ | |
"Math.004", | |
"float", | |
"Math.002", | |
"X" | |
], | |
[ | |
"Range Float", | |
"Range", | |
"Math.002", | |
"Y" | |
], | |
[ | |
"Math.002", | |
"float", | |
"Math.001", | |
"X" | |
], | |
[ | |
"Math.001", | |
"float", | |
"Math.005", | |
"X" | |
], | |
[ | |
"Vector Noise", | |
"Noise S", | |
"Math.005", | |
"Y" | |
], | |
[ | |
"Math.005", | |
"float", | |
"Math", | |
"X" | |
], | |
[ | |
"Math", | |
"float", | |
"Map Range", | |
"Value" | |
], | |
[ | |
"Map Range", | |
"Value", | |
"Math.003", | |
"X" | |
], | |
[ | |
"Math.003", | |
"float", | |
"Vector in.001", | |
"X" | |
], | |
[ | |
"Math.003", | |
"float", | |
"Vector in.001", | |
"Y" | |
], | |
[ | |
"Math.003", | |
"float", | |
"Vector in.001", | |
"Z" | |
], | |
[ | |
"Vector in", | |
"Vectors", | |
"Matrix in", | |
"Location" | |
], | |
[ | |
"Vector in.001", | |
"Vectors", | |
"Matrix in", | |
"Scale" | |
], | |
[ | |
"UV Connection", | |
"vertices", | |
"Matrix Apply", | |
"Vectors" | |
], | |
[ | |
"Matrix in", | |
"Matrix", | |
"Matrix Apply", | |
"Matrixes" | |
], | |
[ | |
"Matrix Apply", | |
"Vectors", | |
"List Join", | |
"data" | |
], | |
[ | |
"List Join", | |
"data", | |
"Viewer Draw", | |
"vertices" | |
], | |
[ | |
"Cylinder", | |
"Polygons", | |
"Viewer Draw", | |
"edg_pol" | |
] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment