Created
October 26, 2019 19:39
-
-
Save portnov/17cde5a877321db243fbcd511859796a to your computer and use it in GitHub Desktop.
to do later? 2018
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.079", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"List Split": { | |
"bl_idname": "SvListSplitNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-148.7555389404297, | |
-34.26197052001953 | |
], | |
"params": { | |
"level_unwrap": 1, | |
"split": 6 | |
}, | |
"width": 140.0 | |
}, | |
"Plane MK2": { | |
"bl_idname": "SvPlaneNodeMK2", | |
"color": [ | |
0.0, | |
0.5, | |
0.5 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-580.1541748046875, | |
40.53995895385742 | |
], | |
"params": { | |
"center": 1, | |
"normalize": 1, | |
"numx": 6, | |
"numy": 6, | |
"separate": 0, | |
"sizex": 25.0, | |
"sizey": 25.0 | |
}, | |
"use_custom_color": true, | |
"width": 140.0 | |
}, | |
"Randomize input vertices": { | |
"bl_idname": "SvRandomizeVerticesNode", | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
-376.90802001953125, | |
51.188255310058594 | |
], | |
"params": { | |
"random_seed_": 3, | |
"random_x_": 0.35999998450279236, | |
"random_y_": 0.21000003814697266, | |
"random_z_": 3.75 | |
}, | |
"width": 140.0 | |
}, | |
"Scripted Node Lite": { | |
"bl_idname": "SvScriptNodeLite", | |
"color": [ | |
0.0, | |
0.800000011920929, | |
0.949999988079071 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
70.3619384765625, | |
118.25414276123047 | |
], | |
"params": { | |
"float_list": [ | |
0.0, | |
0.0, | |
0.0, | |
0.8999999761581421, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0, | |
0.0 | |
], | |
"inject_params": 0, | |
"injected_state": 0, | |
"int_list": [ | |
0, | |
0, | |
0, | |
0, | |
14, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0, | |
0 | |
], | |
"script_name": "nurbs_surface.py", | |
"script_str": "\"\"\"\nin verts_in v\nout verts_out v\nout faces_out s\n\"\"\"\n\nfrom geomdl import NURBS\nfrom geomdl import tessellate\nfrom geomdl import knotvector\n\ndef convert_row(row):\n return [(x, y, z, 1.0) for x,y,z in row]\n\n# Control points\nctrlpts = list(map(convert_row, verts_in))\n\n# Generate surface\nsurf = NURBS.Surface()\nsurf.degree_u = 3\nsurf.degree_v = 3\n\nn_u = len(verts_in)\nn_v = len(verts_in[0])\n\nsurf.ctrlpts2d = ctrlpts\n\nsurf.knotvector_u = knotvector.generate(surf.degree_u, n_u)\nsurf.knotvector_v = knotvector.generate(surf.degree_v, n_v)\nsurf.sample_size = 30\n\nsurf.tessellate()\nverts_out = [[vert.data for vert in surf.vertices]]\nfaces_out = [[f.data for f in surf.faces]]\n" | |
}, | |
"snlite_ui": [], | |
"use_custom_color": true, | |
"width": 140.0 | |
}, | |
"VD Experimental": { | |
"bl_idname": "SvVDExperimental", | |
"color": [ | |
1.0, | |
0.30000001192092896, | |
0.0 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
323.55023193359375, | |
84.74942016601562 | |
], | |
"params": { | |
"activate": 1, | |
"draw_gl_polygonoffset": 1, | |
"edge_color": [ | |
0.3045808672904968, | |
0.459477961063385, | |
1.0, | |
1.0 | |
], | |
"face_color": [ | |
0.7869870066642761, | |
0.8100003600120544, | |
0.8100003600120544, | |
1.0 | |
], | |
"selected_draw_mode": "facet" | |
}, | |
"use_custom_color": true, | |
"width": 140.0 | |
}, | |
"VD Experimental.001": { | |
"bl_idname": "SvVDExperimental", | |
"color": [ | |
1.0, | |
0.30000001192092896, | |
0.0 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
113.60710144042969, | |
-125.0079574584961 | |
], | |
"params": { | |
"display_faces": 0, | |
"edge_color": [ | |
1.0, | |
0.0, | |
0.04509264603257179, | |
1.0 | |
] | |
}, | |
"use_custom_color": true, | |
"width": 140.0 | |
} | |
}, | |
"update_lists": [ | |
[ | |
"Plane MK2", | |
0, | |
"Randomize input vertices", | |
0 | |
], | |
[ | |
"Randomize input vertices", | |
0, | |
"List Split", | |
0 | |
], | |
[ | |
"List Split", | |
0, | |
"Scripted Node Lite", | |
0 | |
], | |
[ | |
"Scripted Node Lite", | |
0, | |
"VD Experimental", | |
0 | |
], | |
[ | |
"Scripted Node Lite", | |
1, | |
"VD Experimental", | |
2 | |
], | |
[ | |
"Randomize input vertices", | |
0, | |
"VD Experimental.001", | |
0 | |
], | |
[ | |
"Plane MK2", | |
2, | |
"VD Experimental.001", | |
2 | |
] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment