Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created March 10, 2020 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/7e0d0e6d58222a5bd723e33a46953977 to your computer and use it in GitHub Desktop.
Save zeffii/7e0d0e6d58222a5bd723e33a46953977 to your computer and use it in GitHub Desktop.
to do later? 2018
{
"export_version": "0.079",
"framed_nodes": {},
"groups": {
"Monad": "{\"nodes\": {\"Group Outputs Exp\": {\"params\": {\"node_kind\": \"inputs\"}, \"bl_idname\": \"SvGroupOutputsNodeExp\", \"inputs\": [[\"verts\", \"SvVerticesSocket\"], [\"faces\", \"SvStringsSocket\"]], \"height\": 100.0, \"width\": 140.0, \"label\": \"\", \"hide\": false, \"location\": [733.0263061523438, 153.55516052246094], \"color\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \"use_custom_color\": true}, \"Group Inputs Exp\": {\"params\": {\"node_kind\": \"outputs\"}, \"bl_idname\": \"SvGroupInputsNodeExp\", \"outputs\": [[\"quad_verts\", \"SvVerticesSocket\"], [\"quad_faces\", \"SvStringsSocket\"]], \"height\": 100.0, \"width\": 140.0, \"label\": \"\", \"hide\": false, \"location\": [110.05560302734375, 173.36944580078125], \"color\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \"use_custom_color\": true}, \"Polygon Boom\": {\"params\": {}, \"bl_idname\": \"PolygonBoomNode\", \"height\": 100.0, \"width\": 140.0, \"label\": \"\", \"hide\": false, \"location\": [325.0434265136719, 211.24005126953125]}, \"Monad.001\": {\"params\": {\"loops\": 0, \"vectorize\": 1, \"all_props\": {\"name\": \"Monad.001\", \"cls_bl_idname\": \"SvGroupNodeMonad001_2017317554649\", \"float_props\": {\"X\": {\"name\": \"X\"}}, \"int_props\": {}}, \"monad\": \"Monad.001\", \"cls_dict\": {\"cls_bl_idname\": \"SvGroupNodeMonad001_2017317554649\", \"input_template\": [[\"quad_verts\", \"SvVerticesSocket\", {}], [\"quad_faces\", \"SvStringsSocket\", {}], [\"X\", \"SvStringsSocket\", {\"prop_name\": \"X\"}]], \"output_template\": [[\"verts\", \"SvVerticesSocket\"], [\"faces\", \"SvStringsSocket\"]]}}, \"bl_idname\": \"SvMonadGenericNode\", \"height\": 100.0, \"width\": 140.0, \"label\": \"\", \"hide\": false, \"location\": [531.5880126953125, 222.739990234375], \"color\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \"use_custom_color\": true}, \"Random Num Gen\": {\"params\": {\"type_selected_mode\": \"Float\", \"size\": 2}, \"bl_idname\": \"SvRndNumGen\", \"height\": 100.0, \"width\": 140.0, \"label\": \"\", \"hide\": false, \"location\": [342.2889404296875, 9.402824401855469]}, \"Monad Info\": {\"params\": {}, \"bl_idname\": \"SvMonadInfoNode\", \"height\": 100.0, \"width\": 140.0, \"label\": \"\", \"hide\": false, \"location\": [116.21646118164062, -4.591064453125], \"color\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \"use_custom_color\": true}}, \"groups\": {\"Monad.001\": \"{\\\"nodes\\\": {\\\"Group Outputs Exp\\\": {\\\"params\\\": {\\\"node_kind\\\": \\\"inputs\\\"}, \\\"bl_idname\\\": \\\"SvGroupOutputsNodeExp\\\", \\\"inputs\\\": [[\\\"verts\\\", \\\"SvVerticesSocket\\\"], [\\\"faces\\\", \\\"SvStringsSocket\\\"]], \\\"height\\\": 100.0, \\\"width\\\": 140.0, \\\"label\\\": \\\"\\\", \\\"hide\\\": false, \\\"location\\\": [691.7194213867188, 179.9741973876953], \\\"color\\\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \\\"use_custom_color\\\": true}, \\\"Scripted Node Lite\\\": {\\\"snlite_ui\\\": [], \\\"params\\\": {\\\"script_name\\\": \\\"primfun\\\", \\\"script_str\\\": \\\"\\\\\\\"\\\\\\\"\\\\\\\"\\\\nin quad_verts v\\\\nin quad_faces s\\\\nin noise s d=1.2 n=2\\\\nin iterations s d=3 n=2\\\\nin X s d=0.4 n=2\\\\nin Y s d=0.4 n=2\\\\nout verts v\\\\nout faces s\\\\n\\\\\\\"\\\\\\\"\\\\\\\"\\\\n\\\\nfrom sverchok.utils.modules.geom_utils import interp_v3_v3v3 as lerp\\\\nsort = lambda vex, pox: [vex[i] for i in pox]\\\\n\\\\nverts_out, faces_out = [], []\\\\nnew_quad = faces_out.append\\\\n\\\\npts = sort(quad_verts[0], quad_faces[0][0])\\\\n\\\\npos_a = lerp(pts[0], pts[1], Y)\\\\npos_b = lerp(pts[1], pts[2], X)\\\\npos_c = lerp(pts[3], pts[2], 1-Y)\\\\npos_d = lerp(pts[0], pts[3], X)\\\\npos_e = lerp(pos_d, pos_b, Y)\\\\npos_f = lerp(pos_d, pos_b, 1-Y)\\\\n\\\\n# indices = 0, 1, 2, 3\\\\nverts_out.extend(pts) \\\\n\\\\n# indices = 4, 5, 6, 7, 8, 9\\\\nverts_out.extend([pos_a, pos_b, pos_c, pos_d, pos_e, pos_f])\\\\n\\\\nnew_quad([0, 4, 8, 7])\\\\nnew_quad([4, 1, 5, 8])\\\\nnew_quad([5, 2, 6, 9])\\\\nnew_quad([7, 9, 6, 3])\\\\nfaces.append(faces_out)\\\\nverts.append(verts_out)\\\", \\\"inject_params\\\": 0, \\\"injected_state\\\": 0, \\\"float_list\\\": [0.0, 0.0, 1.590000033378601, 0.0, 0.7600000500679016, 0.7000000476837158, 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], \\\"int_list\\\": [0, 0, 0, 5, 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]}, \\\"bl_idname\\\": \\\"SvScriptNodeLite\\\", \\\"height\\\": 100.0, \\\"width\\\": 140.0, \\\"label\\\": \\\"\\\", \\\"hide\\\": false, \\\"location\\\": [511.71942138671875, 179.9741973876953], \\\"color\\\": [0.0, 0.800000011920929, 0.949999988079071], \\\"use_custom_color\\\": true}, \\\"List First & Last\\\": {\\\"params\\\": {}, \\\"bl_idname\\\": \\\"ListFLNode\\\", \\\"height\\\": 100.0, \\\"width\\\": 140.0, \\\"label\\\": \\\"\\\", \\\"hide\\\": false, \\\"location\\\": [306.84271240234375, -22.142013549804688]}, \\\"Group Inputs Exp\\\": {\\\"params\\\": {\\\"node_kind\\\": \\\"outputs\\\"}, \\\"bl_idname\\\": \\\"SvGroupInputsNodeExp\\\", \\\"outputs\\\": [[\\\"quad_verts\\\", \\\"SvVerticesSocket\\\"], [\\\"quad_faces\\\", \\\"SvStringsSocket\\\"], [\\\"X\\\", \\\"SvStringsSocket\\\"]], \\\"height\\\": 100.0, \\\"width\\\": 140.0, \\\"label\\\": \\\"\\\", \\\"hide\\\": false, \\\"location\\\": [113.73196411132812, 172.3374481201172], \\\"color\\\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \\\"use_custom_color\\\": true}}, \\\"groups\\\": {}, \\\"framed_nodes\\\": {}, \\\"update_lists\\\": [[\\\"Group Inputs Exp\\\", 2, \\\"List First & Last\\\", 0], [\\\"Group Inputs Exp\\\", 0, \\\"Scripted Node Lite\\\", 0], [\\\"Group Inputs Exp\\\", 1, \\\"Scripted Node Lite\\\", 1], [\\\"List First & Last\\\", 1, \\\"Scripted Node Lite\\\", 4], [\\\"List First & Last\\\", 2, \\\"Scripted Node Lite\\\", 5], [\\\"Scripted Node Lite\\\", 0, \\\"Group Outputs Exp\\\", 0], [\\\"Scripted Node Lite\\\", 1, \\\"Group Outputs Exp\\\", 1]], \\\"export_version\\\": \\\"0.079\\\", \\\"bl_idname\\\": \\\"SverchGroupTreeType\\\", \\\"cls_bl_idname\\\": \\\"SvGroupNodeMonad001_2017317554649\\\"}\"}, \"framed_nodes\": {}, \"update_lists\": [[\"Group Inputs Exp\", 0, \"Polygon Boom\", 0], [\"Group Inputs Exp\", 1, \"Polygon Boom\", 1], [\"Monad Info\", 0, \"Random Num Gen\", 1], [\"Polygon Boom\", 0, \"Monad.001\", 0], [\"Polygon Boom\", 1, \"Monad.001\", 1], [\"Random Num Gen\", 0, \"Monad.001\", 2], [\"Monad.001\", 0, \"Group Outputs Exp\", 0], [\"Monad.001\", 1, \"Group Outputs Exp\", 1]], \"export_version\": \"0.079\", \"bl_idname\": \"SverchGroupTreeType\", \"cls_bl_idname\": \"SvGroupNodeMonad_2015203733668\"}"
},
"nodes": {
"Monad": {
"bl_idname": "SvMonadGenericNode",
"color": [
0.8308190107345581,
0.911391019821167,
0.7545620203018188
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
511.71942138671875,
179.9741973876953
],
"params": {
"all_props": {
"cls_bl_idname": "SvGroupNodeMonad_2015203733668",
"float_props": {},
"int_props": {},
"name": "Monad"
},
"cls_dict": {
"cls_bl_idname": "SvGroupNodeMonad_2015203733668",
"input_template": [
[
"quad_verts",
"SvVerticesSocket",
{}
],
[
"quad_faces",
"SvStringsSocket",
{}
]
],
"output_template": [
[
"verts",
"SvVerticesSocket"
],
[
"faces",
"SvStringsSocket"
]
]
},
"loop_me": 1,
"loops": 5,
"monad": "Monad"
},
"use_custom_color": true,
"width": 140.0
},
"Plane MK2": {
"bl_idname": "SvPlaneNodeMK2",
"color": [
0.0,
0.5,
0.5
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
247.96482849121094,
242.94161987304688
],
"params": {
"stepx": 6.849999904632568,
"stepy": 8.799999237060547
},
"use_custom_color": true,
"width": 140.0
},
"Viewer Draw Mk3": {
"bl_idname": "SvVDExperimental",
"color": [
1.0,
0.30000001192092896,
0.0
],
"height": 100.0,
"hide": false,
"label": "",
"location": [
730.4688720703125,
195.52755737304688
],
"params": {
"display_verts": 0,
"draw_gl_polygonoffset": 1,
"edge_color": [
0.0,
0.752469539642334,
1.0,
1.0
],
"face_color": [
0.04762967303395271,
0.012419108301401138,
0.007200939115136862,
1.0
],
"vert_color": [
0.8000000715255737,
0.0204455703496933,
0.11625159531831741,
1.0
]
},
"use_custom_color": true,
"width": 140.0
}
},
"update_lists": [
[
"Plane MK2",
0,
"Monad",
0
],
[
"Plane MK2",
2,
"Monad",
1
],
[
"Monad",
0,
"Viewer Draw Mk3",
0
],
[
"Monad",
1,
"Viewer Draw Mk3",
2
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment