Created
March 11, 2020 09:57
-
-
Save zeffii/48a3f7570416ec868ce47e1b3bdcf9b8 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": { | |
"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\": [891.0226440429688, 93.5781478881836], \"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\": [228.11065673828125, 93.5781478881836], \"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\": [414.38800048828125, 129.72210693359375]}, \"Monad.001\": {\"params\": {\"loops\": 0, \"vectorize\": 1, \"all_props\": {\"name\": \"Monad.001\", \"cls_bl_idname\": \"SvGroupNodeMonad001_2148646509341\", \"float_props\": {}, \"int_props\": {}}, \"monad\": \"Monad.001\", \"cls_dict\": {\"cls_bl_idname\": \"SvGroupNodeMonad001_2148646509341\", \"input_template\": [[\"quad_verts\", \"SvVerticesSocket\", {}], [\"quad_faces\", \"SvStringsSocket\", {}], [\"Data\", \"SvStringsSocket\", {}]], \"output_template\": [[\"verts\", \"SvVerticesSocket\"], [\"faces\", \"SvStringsSocket\"]]}}, \"bl_idname\": \"SvMonadGenericNode\", \"height\": 100.0, \"width\": 140.0, \"label\": \"\", \"hide\": false, \"location\": [628.278076171875, 90.67119598388672], \"color\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \"use_custom_color\": true}, \"Random Num Gen\": {\"params\": {\"type_selected_mode\": \"Float\", \"size\": 2, \"low_f\": 0.44999998807907104, \"high_f\": 0.7599999904632568}, \"bl_idname\": \"SvRndNumGen\", \"height\": 100.0, \"width\": 140.0, \"label\": \"\", \"hide\": false, \"location\": [395.5207214355469, -45.18431091308594]}, \"Monad Info\": {\"params\": {}, \"bl_idname\": \"SvMonadInfoNode\", \"height\": 100.0, \"width\": 140.0, \"label\": \"\", \"hide\": false, \"location\": [211.59539794921875, -90.4154052734375], \"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\\\": [808.278076171875, 90.67119598388672], \\\"color\\\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \\\"use_custom_color\\\": true}, \\\"Scripted Node Lite\\\": {\\\"snlite_ui\\\": [], \\\"params\\\": {\\\"script_name\\\": \\\"primifun\\\", \\\"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\\\\n# do something useful even without connections.\\\\nif quad_verts and quad_verts[0] and quad_faces and quad_faces[0]:\\\\n pts = sort(quad_verts[0], quad_faces[0][0])\\\\nelse:\\\\n pts = [(0, 8, 0), (7, 8, 0), (7, 0, 0), (0,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])\\\\n\\\\n\\\\nfaces.append(faces_out)\\\\nverts.append(verts_out)\\\", \\\"inject_params\\\": 0, \\\"float_list\\\": [0.0, 0.0, 1.2000000476837158, 0.0, 0.4000000059604645, 0.4000000059604645, 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, 3, 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], \\\"injected_state\\\": 0}, \\\"bl_idname\\\": \\\"SvScriptNodeLite\\\", \\\"height\\\": 100.0, \\\"width\\\": 140.0, \\\"label\\\": \\\"\\\", \\\"hide\\\": false, \\\"location\\\": [628.278076171875, 90.67119598388672], \\\"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\\\": [401.9398193359375, -79.39149475097656]}, \\\"Group Inputs Exp\\\": {\\\"params\\\": {\\\"node_kind\\\": \\\"outputs\\\"}, \\\"bl_idname\\\": \\\"SvGroupInputsNodeExp\\\", \\\"outputs\\\": [[\\\"quad_verts\\\", \\\"SvVerticesSocket\\\"], [\\\"quad_faces\\\", \\\"SvStringsSocket\\\"], [\\\"Data\\\", \\\"SvStringsSocket\\\"]], \\\"height\\\": 100.0, \\\"width\\\": 140.0, \\\"label\\\": \\\"\\\", \\\"hide\\\": false, \\\"location\\\": [177.88442993164062, 85.82500457763672], \\\"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_2148646509341\\\"}\"}, \"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_2150772629924\"}" | |
}, | |
"nodes": { | |
"Monad": { | |
"bl_idname": "SvMonadGenericNode", | |
"color": [ | |
0.8308190107345581, | |
0.911391019821167, | |
0.7545620203018188 | |
], | |
"height": 100.0, | |
"hide": false, | |
"label": "", | |
"location": [ | |
606.503173828125, | |
83.4038314819336 | |
], | |
"params": { | |
"all_props": { | |
"cls_bl_idname": "SvGroupNodeMonad_2150772629924", | |
"float_props": {}, | |
"int_props": {}, | |
"name": "Monad" | |
}, | |
"cls_dict": { | |
"cls_bl_idname": "SvGroupNodeMonad_2150772629924", | |
"input_template": [ | |
[ | |
"quad_verts", | |
"SvVerticesSocket", | |
{} | |
], | |
[ | |
"quad_faces", | |
"SvStringsSocket", | |
{} | |
] | |
], | |
"output_template": [ | |
[ | |
"verts", | |
"SvVerticesSocket" | |
], | |
[ | |
"faces", | |
"SvStringsSocket" | |
] | |
] | |
}, | |
"loop_me": 1, | |
"loops": 3, | |
"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": [ | |
282.070068359375, | |
47.3668098449707 | |
], | |
"params": { | |
"stepx": 3.4600000381469727, | |
"stepy": 2.109999895095825 | |
}, | |
"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": [ | |
1000.094970703125, | |
76.73031616210938 | |
], | |
"params": {}, | |
"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