diff --git a/core/__init__.py b/core/__init__.py index b6f4f858ca79f306ad3b8de6a2b6b72aaf41f423..ead299aa1fb7c386e292c44dbe41be51df3a6de1 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -1,5 +1,6 @@ import importlib import sverchok +from sverchok.utils.logging import debug, exception reload_event = False @@ -64,6 +65,13 @@ def import_modules(modules, base, im_list): def handle_reload_event(nodes, imported_modules, old_nodes): node_list = make_node_list(nodes) reload_all(imported_modules, node_list, old_nodes) + + try: + from sverchok.old_nodes import old_bl_idnames + debug('debug info --- old_bl_idnames:', len(old_bl_idnames)) + except Exception as err: + exception(err) + return node_list diff --git a/json_examples/10.transformations_mk2.png.json b/json_examples/10.transformations_mk2.png.json index d21ed8856df38119fd39a5b50fe5edb01b005304..510cdbf4283c9c82b6e551328eadd97d7141165d 100644 --- a/json_examples/10.transformations_mk2.png.json +++ b/json_examples/10.transformations_mk2.png.json @@ -1,5 +1,5 @@ { - "export_version": "0.065", + "export_version": "0.072", "framed_nodes": { "A Number.001": "Frame.005", "A Number.002": "Frame.005", @@ -54,17 +54,12 @@ "nodes": { "A Number.001": { "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 729.5885009765625, - -177.32373046875 + 1017.1054000854492, + -81.61382293701172 ], "params": { "float_": 0.10000000149011612, @@ -75,17 +70,12 @@ }, "A Number.002": { "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 735.3189086914062, - -260.204345703125 + 1022.835807800293, + -164.49443817138672 ], "params": { "float_": 0.8999999761581421, @@ -95,17 +85,12 @@ }, "Centers polygons 3": { "bl_idname": "CentersPolsNodeMK3", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 781.034912109375, - -60.34894943237305 + 553.2228012084961, + 61.57926940917969 ], "params": { "Separate": 0 @@ -114,17 +99,12 @@ }, "Exec Node Mod": { "bl_idname": "SvExecNodeMod", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 2912.1513671875, - -171.48287963867188 + 2811.2695541381836, + -108.68711853027344 ], "params": {}, "string_storage": "{\"lines\": [\"for i in V1:\", \" if not 'Subsurf' in i.modifiers:\", \" i.modifiers.new(type='SUBSURF',name='Subsurf')\", \" if not 'Solidify' in i.modifiers:\", \" i.modifiers.new(type='SOLIDIFY',name='Solidify')\", \" if not 'EdgeSplit' in i.modifiers:\", \" i.modifiers.new(type='EDGE_SPLIT',name='EdgeSplit')\", \"\"]}", @@ -132,17 +112,12 @@ }, "Fibonacci sequence": { "bl_idname": "SvGenFibonacci", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 605.3218383789062, - -136.0172119140625 + 377.5097885131836, + -14.089012145996094 ], "params": { "maxValue_": 3.0, @@ -153,238 +128,168 @@ }, "Frame": { "bl_idname": "NodeFrame", - "color": [ - 0.03832000121474266, - 0.6079999804496765, - 0.027327999472618103 - ], - "height": 199.909423828125, + "height": 204.826416015625, "hide": false, "label": "transform mk2", "location": [ - 439.42181396484375, - 103.66798400878906 + 637.6092758178711, + 342.12183380126953 ], "params": {}, - "width": 200.3529052734375 + "width": 200.0 }, "Frame.001": { "bl_idname": "NodeFrame", - "color": [ - 0.34509801864624023, - 0.016762711107730865, - 0.07291552424430847 - ], - "height": 1007.6810913085938, + "height": 976.645751953125, "hide": false, "label": "Sverchok_viewer", "location": [ - 13.992668151855469, - -2.0812509059906006 + -79.71204376220703, + 60.714515686035156 ], "params": {}, - "width": 3066.927734375 + "width": 4137.412109375 }, "Frame.002": { "bl_idname": "NodeFrame", - "color": [ - 0.07244860380887985, - 0.3638893961906433, - 0.6080003976821899 - ], - "height": 147.62281799316406, + "height": 146.32867431640625, "hide": false, "label": "input", "location": [ - 644.5925903320312, - -17.912158966064453 + 550.8878707885742, + 44.883583068847656 ], "params": {}, - "width": 77.2940673828125 + "width": 76.0 }, "Frame.003": { "bl_idname": "NodeFrame", - "color": [ - 0.038320090621709824, - 0.6080004572868347, - 0.027327602729201317 - ], - "height": 200.030029296875, + "height": 201.0584716796875, "hide": false, "label": "transform mk2", "location": [ - 501.83905029296875, - 24.772903442382812 + 944.285026550293, + 101.6561050415039 ], "params": {}, - "width": 308.676025390625 + "width": 305.587890625 }, "Frame.004": { "bl_idname": "NodeFrame", - "color": [ - 0.03832000121474266, - 0.6079999804496765, - 0.027327999472618103 - ], - "height": 199.1695556640625, + "height": 202.03790283203125, "hide": false, "label": "transform mk2", "location": [ - 531.5603637695312, - 154.07333374023438 + 310.9251937866211, + 276.0015335083008 ], "params": {}, - "width": 200.35296630859375 + "width": 200.0 }, "Frame.005": { "bl_idname": "NodeFrame", - "color": [ - 0.9424089789390564, - 1.0, - 0.7225210070610046 - ], - "height": 451.26715087890625, + "height": 453.38616943359375, "hide": false, "label": "", "location": [ - 531.8349609375, - 11.979560852050781 + 826.5287399291992, + 107.68946075439453 ], "params": {}, - "width": 386.328857421875 + "width": 393.15264892578125 }, "Frame.006": { "bl_idname": "NodeFrame", - "color": [ - 0.9424086213111877, - 1.0, - 0.7225205302238464 - ], - "height": 407.5691833496094, + "height": 349.645751953125, "hide": false, "label": "vertices prepare", "location": [ - -58.14273452758789, - 294.3556823730469 + -179.3200454711914, + 648.074348449707 ], "params": {}, - "width": 339.5352783203125 + "width": 543.360595703125 }, "Frame.007": { "bl_idname": "NodeFrame", - "color": [ - 0.4521949887275696, - 0.6080005764961243, - 0.022526871412992477 - ], - "height": 328.86566162109375, + "height": 333.4813537597656, "hide": false, "label": "initial mesh", "location": [ - 184.78033447265625, - -382.63409423828125 + -596.565803527832, + -477.32198333740234 ], "params": {}, - "width": 526.605224609375 + "width": 526.2522583007812 }, "Frame.008": { "bl_idname": "NodeFrame", - "color": [ - 0.6080002784729004, - 0.5020702481269836, - 0.024977030232548714 - ], - "height": 942.7546997070312, + "height": 916.645751953125, "hide": false, "label": "process", "location": [ - 238.3689422607422, - -367.0722351074219 + 144.66423797607422, + -304.27648162841797 ], "params": {}, - "width": 1644.5814208984375 + "width": 2554.0517578125 }, "Frame.009": { "bl_idname": "NodeFrame", - "color": [ - 0.6080014705657959, - 0.3449057936668396, - 0.04456671327352524 - ], - "height": 568.8097534179688, + "height": 569.7054443359375, "hide": false, "label": "outputs", "location": [ - -148.69857788085938, - -295.783447265625 + -242.4032974243164, + -232.9876937866211 ], "params": {}, - "width": 361.798828125 + "width": 361.44580078125 }, "Frame.010": { "bl_idname": "NodeFrame", - "color": [ - 0.9424089789390564, - 1.0, - 0.7225210070610046 - ], - "height": 508.8754577636719, + "height": 482.635498046875, "hide": false, "label": "centers scale+multiply", "location": [ - 17.40009117126465, - 11.081138610839844 + -203.2350845336914, + 133.00934600830078 ], "params": {}, - "width": 672.0325927734375 + "width": 1182.2880859375 }, "Frame.011": { "bl_idname": "NodeFrame", - "color": [ - 0.07244899868965149, - 0.36388900876045227, - 0.6079999804496765 - ], - "height": 111.88044738769531, + "height": 110.58633422851562, "hide": false, "label": "output", "location": [ - -161.7186279296875, - 274.09197998046875 + -126.75409698486328, + 576.895881652832 ], "params": {}, - "width": 78.1690673828125 + "width": 76.875 }, "Frame.012": { "bl_idname": "NodeFrame", - "color": [ - 0.6080006957054138, - 0.13588108122348785, - 0.02813970297574997 - ], - "height": 376.09283447265625, + "height": 376.31292724609375, "hide": false, "label": "postprocess", "location": [ - -205.94515991210938, - 104.9510726928711 + -299.6498794555664, + 167.74684143066406 ], "params": {}, - "width": 349.352783203125 + "width": 349.0 }, "List Del Levels": { "bl_idname": "ListLevelsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 1461.0159912109375, - -85.30264282226562 + 1339.838523864746, + 268.41602325439453 ], "params": { "Sverch_LisLev": "1,3" @@ -393,17 +298,12 @@ }, "List Item": { "bl_idname": "ListItem2Node", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 2463.98779296875, - -65.21279907226562 + 2370.2829818725586, + -2.4170303344726562 ], "params": { "item": 0, @@ -413,17 +313,12 @@ }, "Math MK2.003": { "bl_idname": "SvScalarMathNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 936.2481079101562, - -336.8232727050781 + 1230.9418258666992, + -241.11336517333984 ], "params": { "current_op": "SINE", @@ -433,17 +328,12 @@ }, "Math MK2.004": { "bl_idname": "SvScalarMathNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 935.0148315429688, - -383.05059814453125 + 1229.7086715698242, + -287.34069061279297 ], "params": { "current_op": "ABS", @@ -453,17 +343,12 @@ }, "Move.001": { "bl_idname": "SvMoveNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 541.3404541015625, - -102.6274185180664 + 739.5278549194336, + 135.82642364501953 ], "params": { "separate": 1 @@ -472,17 +357,12 @@ }, "Move.002": { "bl_idname": "SvMoveNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 190.45620727539062, - 262.6368103027344 + -590.8899612426758, + 167.94889068603516 ], "params": {}, "width": 140.0 @@ -490,36 +370,37 @@ "Note": { "bl_idname": "NoteNode", "color": [ - 1.0, - 0.8993440270423889, - 0.9742509722709656 + 0.5, + 0.5, + 1.0 ], "height": 100.0, "hide": false, "label": "", "location": [ - 23.861038208007812, - -396.801025390625 + -69.84367370605469, + -334.0052719116211 ], "params": { "show_text": 0, "text": "nikitron 2017 - level separate approache proof of concept. Maybe as it is in petri-voronoi+scale, the same principle" }, + "use_custom_color": true, "width": 517.9198608398438 }, "Plane MK2": { "bl_idname": "SvPlaneNodeMK2", "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 + 0.0, + 0.5, + 0.5 ], "height": 100.0, "hide": false, "label": "", "location": [ - -135.7960662841797, - 310.1692199707031 + -917.142219543457, + 215.48136138916016 ], "params": { "center": 1, @@ -530,38 +411,29 @@ "sizex": 5.0, "sizey": 5.0 }, + "use_custom_color": true, "width": 140.0 }, "Polygon Boom": { "bl_idname": "PolygonBoomNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 1442.8680419921875, - -33.59453582763672 + 1387.764060974121, + 316.64575958251953 ], "params": {}, "width": 140.0 }, "Range Float.004": { "bl_idname": "SvGenFloatRange", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 907.05517578125, - -180.4937286376953 + 1201.7489547729492, + -84.78380584716797 ], "params": { "count_": 16, @@ -573,17 +445,12 @@ }, "Range Float.005": { "bl_idname": "SvGenFloatRange", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 915.5643310546875, - -429.24432373046875 + 1210.2579879760742, + -333.53441619873047 ], "params": { "count_": 10, @@ -595,102 +462,72 @@ }, "Reroute": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - -233.85922241210938, - 162.7602081298828 + -327.5639114379883, + 225.55597686767578 ], "params": {}, "width": 16.0 }, "Reroute.001": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - -233.85922241210938, - 233.08889770507812 + -327.5639114379883, + 295.88465118408203 ], "params": {}, "width": 16.0 }, "Reroute.002": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - -233.85922241210938, - 195.92910766601562 + -327.5639114379883, + 258.72486114501953 ], "params": {}, "width": 16.0 }, "Reroute.003": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 2055.522705078125, - -96.13386535644531 + 2090.4876022338867, + 206.67008209228516 ], "params": {}, "width": 16.0 }, "Reroute.004": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 2054.647705078125, - -61.54752731323242 + 2089.6126022338867, + 241.25641632080078 ], "params": {}, "width": 16.0 }, "Scale": { "bl_idname": "SvScaleNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 1175.975830078125, - -53.82472229003906 + 1618.4218063354492, + 23.05847930908203 ], "params": { "separate": 1 @@ -699,17 +536,12 @@ }, "Scale.001": { "bl_idname": "SvScaleNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 37.87493896484375, - -83.89030456542969 + -182.7602310180664, + 38.03791046142578 ], "params": { "factor_": 0.800000011920929, @@ -728,8 +560,8 @@ "hide": false, "label": "", "location": [ - 1337.97412109375, - -204.19613647460938 + 1009.8830795288086, + 154.7400894165039 ], "params": { "inject_params": 0, @@ -769,41 +601,43 @@ 0 ], "script_name": "transpose", - "script_str": "\"\"\"\nin datain s .=[] n=0\nin level s .=1 n=0\nout dataout s\n\"\"\"\n\nimport numpy as np\nfrom numpy import array as ar\n\nData = ar(datain)\nprint(Data.shape)\nshape = np.roll(ar([i for i in range(Data.ndim-1)]), level)\nshape = np.append(shape,ar([Data.ndim-1])).tolist()\nData = np.transpose(Data, shape)\n\ndataout = Data.tolist()" + "script_str": "\"\"\"\nin datain s .=[] n=0\nin level s .=1 n=0\nout dataout s\n\"\"\"\n\nimport numpy as np\nfrom numpy import array as ar\n\nif datain:\n Data = ar(datain)\n print(Data.shape)\n shape = np.roll(ar([i for i in range(Data.ndim-1)]), level)\n shape = np.append(shape,ar([Data.ndim-1])).tolist()\n Data = np.transpose(Data, shape)\n\n dataout = Data.tolist()" }, "snlite_ui": [], + "use_custom_color": true, "width": 140.0 }, "Socket Converter": { "bl_idname": "ConverterNode", "color": [ - 0.602957010269165, 0.6740000247955322, - 0.5642769932746887 + 0.24199999868869781, + 0.3630000054836273 ], "height": 100.0, "hide": true, "label": "", "location": [ - 1353.0137939453125, - -350.63433837890625 + 1195.322166442871, + 130.04517364501953 ], "params": {}, + "use_custom_color": true, "width": 140.0 }, "Stethoscope MK2": { "bl_idname": "SvStethoscopeNodeMK2", "color": [ - 1.0, - 0.8993440270423889, - 0.9742509722709656 + 0.5, + 0.5, + 1.0 ], "height": 100.0, "hide": false, "label": "", "location": [ - 790.2244873046875, - -148.5986328125 + 569.5892562866211, + -26.67040252685547 ], "params": { "activate": 0, @@ -814,21 +648,17 @@ 0.949999988079071 ] }, + "use_custom_color": true, "width": 140.0 }, "UV Connection.001": { "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 1692.1754150390625, - 253.64877319335938 + 1869.7191696166992, + 304.27027130126953 ], "params": { "cicl_check_U": 0, @@ -843,17 +673,12 @@ }, "UV Connection.002": { "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 1527.4212646484375, - -215.89013671875 + 1406.243797302246, + 137.82855987548828 ], "params": { "dir_check": "U_dir", @@ -863,17 +688,12 @@ }, "UV Connection.003": { "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 1334.563720703125, - -116.81336212158203 + 1777.0096969604492, + -39.93016815185547 ], "params": { "dir_check": "V_dir", @@ -884,34 +704,24 @@ }, "Vector Turbulence": { "bl_idname": "SvTurbulenceNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 34.70749282836914, - 155.3155517578125 + -746.6386184692383, + 60.627662658691406 ], "params": {}, "width": 140.0 }, "Vector in.001": { "bl_idname": "GenVectorsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 778.6810913085938, - -106.49954223632812 + 558.0459213256836, + 15.428657531738281 ], "params": { "x_": 0.0, @@ -922,60 +732,39 @@ "Viewer BMesh": { "bl_idname": "SvBmeshViewerNodeMK2", "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 + 1.0, + 0.30000001192092896, + 0.0 ], "height": 100.0, "hide": true, "label": "", "location": [ - 2528.608642578125, - 222.90972900390625 + 2434.9038314819336, + 285.70548248291016 ], "params": { "autosmooth": 1, "basemesh_name": "Zeta", "calc_normals": 0, - "hide": 1, - "lp": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] + "hide": 1 }, + "use_custom_color": true, "width": 140.0 }, "Viewer Draw": { "bl_idname": "ViewerNode2", "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 + 1.0, + 0.30000001192092896, + 0.0 ], "height": 100.0, "hide": true, "label": "", "location": [ - 1526.5816650390625, - -270.08062744140625 + 1405.404197692871, + 83.63806915283203 ], "params": { "activate": 1, @@ -993,21 +782,22 @@ ], "vertex_size": 6.0 }, + "use_custom_color": true, "width": 140.0 }, "Viewer Draw.002": { "bl_idname": "ViewerNode2", "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 + 1.0, + 0.30000001192092896, + 0.0 ], "height": 100.0, "hide": true, "label": "", "location": [ - 807.7191772460938, - 69.707275390625 + 587.0840072631836, + 191.63550567626953 ], "params": { "edge_colors": [ @@ -1022,21 +812,22 @@ ], "vertex_size": 4.0 }, + "use_custom_color": true, "width": 140.0 }, "Viewer Draw.003": { "bl_idname": "ViewerNode2", "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 + 1.0, + 0.30000001192092896, + 0.0 ], "height": 100.0, "hide": true, "label": "", "location": [ - 1332.595458984375, - -160.97552490234375 + 1775.0414352416992, + -84.09232330322266 ], "params": { "activate": 1, @@ -1054,26 +845,28 @@ ], "vertex_size": 2.0 }, + "use_custom_color": true, "width": 140.0 }, "Viewer Index": { "bl_idname": "IndexViewerNode", "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 + 1.0, + 0.30000001192092896, + 0.0 ], "height": 100.0, "hide": false, "label": "", "location": [ - 2625.43359375, - -65.80107116699219 + 2531.7287826538086, + -3.0053024291992188 ], "params": { "activate": 0, "draw_bg": 1 }, + "use_custom_color": true, "width": 140.0 } }, @@ -1144,36 +937,6 @@ "Move.001", 1 ], - [ - "Move.001", - 0, - "Scripted Node Lite", - 0 - ], - [ - "Scripted Node Lite", - 0, - "Socket Converter", - 0 - ], - [ - "Socket Converter", - 0, - "UV Connection.002", - 0 - ], - [ - "UV Connection.002", - 0, - "Viewer Draw", - 0 - ], - [ - "UV Connection.002", - 1, - "Viewer Draw", - 1 - ], [ "Plane MK2", "Edges", @@ -1204,24 +967,6 @@ "Range Float.004", 1 ], - [ - "Reroute.001", - "Output", - "Polygon Boom", - "vertices" - ], - [ - "Reroute", - "Output", - "Polygon Boom", - "edg_pol" - ], - [ - "Socket Converter", - 0, - "List Del Levels", - 0 - ], [ "Range Float.004", 0, @@ -1240,6 +985,36 @@ "Range Float.005", 1 ], + [ + "Move.001", + 0, + "Scripted Node Lite", + 0 + ], + [ + "Scripted Node Lite", + 0, + "Socket Converter", + 0 + ], + [ + "Socket Converter", + 0, + "List Del Levels", + 0 + ], + [ + "Reroute.001", + "Output", + "Polygon Boom", + "vertices" + ], + [ + "Reroute", + "Output", + "Polygon Boom", + "edg_pol" + ], [ "Polygon Boom", 0, @@ -1258,12 +1033,6 @@ "Scale", 2 ], - [ - "Scale", - 0, - "UV Connection.003", - 0 - ], [ "Scale", 0, @@ -1276,6 +1045,18 @@ "Reroute.004", "Input" ], + [ + "Reroute.004", + "Output", + "List Item", + "Data" + ], + [ + "List Item", + 0, + "Viewer Index", + 0 + ], [ "UV Connection.001", "data", @@ -1295,21 +1076,21 @@ "faces" ], [ - "Fibonacci sequence", + "Viewer BMesh", 0, - "Stethoscope MK2", + "Exec Node Mod", 0 ], [ - "Reroute.004", - "Output", - "List Item", - "Data" + "Scale", + 0, + "UV Connection.003", + 0 ], [ - "List Item", + "Socket Converter", 0, - "Viewer Index", + "UV Connection.002", 0 ], [ @@ -1325,9 +1106,21 @@ 1 ], [ - "Viewer BMesh", + "UV Connection.002", 0, - "Exec Node Mod", + "Viewer Draw", + 0 + ], + [ + "UV Connection.002", + 1, + "Viewer Draw", + 1 + ], + [ + "Fibonacci sequence", + 0, + "Stethoscope MK2", 0 ] ] diff --git a/json_examples/11.pepper.blend.json b/json_examples/11.pepper.blend.json deleted file mode 100644 index 29f7711367f9ad13da52b443de2aeb5548283252..0000000000000000000000000000000000000000 --- a/json_examples/11.pepper.blend.json +++ /dev/null @@ -1,1926 +0,0 @@ -{ - "export_version": "0.065", - "framed_nodes": { - "A Number": "Frame.010", - "A Number.001": "Frame.007", - "A Number.002": "Frame.007", - "A Number.003": "Frame.007", - "A Number.004": "Frame.001", - "A Number.005": "Frame.001", - "A Number.006": "Frame.001", - "A Number.007": "Frame.012", - "A Number.008": "Frame.001", - "Area": "Frame.012", - "Color in": "Frame.014", - "Color in.001": "Frame.014", - "Cylinder": "Frame.017", - "Extrude Separate Faces": "Frame.004", - "Extrude Separate Faces.001": "Frame.003", - "Frame.001": "Frame.017", - "Frame.002": "Frame.017", - "Frame.003": "Frame.009", - "Frame.004": "Frame.009", - "Frame.005": "Frame.009", - "Frame.006": "Frame.016", - "Frame.007": "Frame.016", - "Frame.008": "Frame.016", - "Frame.009": "Frame.016", - "Frame.010": "Frame.008", - "Frame.011": "Frame.016", - "Frame.012": "Frame.015", - "Frame.013": "Frame.015", - "Frame.014": "Frame.015", - "Frame.015": "Frame", - "Frame.016": "Frame", - "Frame.017": "Frame", - "List Del Levels": "Frame.002", - "List First & Last": "Frame.002", - "List Input": "Frame.005", - "List Join": "Frame.008", - "List Join.001": "Frame.006", - "List Join.002": "Frame.006", - "List Mask (out)": "Frame.013", - "Logic functions": "Frame.012", - "Math MK2": "Frame.010", - "Math MK2.001": "Frame.010", - "Matrix in": "Frame.007", - "Mesh Join": "Frame.006", - "Move": "Frame.010", - "MultiExtrude Alt from addons": "Frame.005", - "Note": "Frame", - "Scale": "Frame.010", - "Simple deformation": "Frame.007", - "Simple deformation.001": "Frame.007", - "Simple deformation.002": "Frame.007", - "Switch": "Frame.014", - "Triangulate mesh": "Frame.011", - "UV Connection": "Frame.003", - "Vector Noise MK2": "Frame.010", - "Vector in": "Frame.010", - "Vector out": "Frame.010", - "Vertex color new": "Frame.015", - "Viewer BMesh": "Frame.011", - "Viewer Draw": "Frame.008", - "Viewer Draw.001": "Frame.004", - "Viewer Draw.002": "Frame.005", - "Viewer Draw.003": "Frame.003", - "Viewer Draw.004": "Frame.013", - "Viewer text mk2": "Frame.017", - "Viewer text mk2.001": "Frame.003", - "Viewer text mk2.002": "Frame.015" - }, - "groups": {}, - "nodes": { - "A Number": { - "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "2-noise-factor", - "location": [ - 784.589599609375, - -644.5934448242188 - ], - "params": { - "float_": 0.22467893362045288, - "float_max": 1.0, - "float_min": -1.0, - "int_": 0, - "show_limits": 1 - }, - "width": 140.0 - }, - "A Number.001": { - "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "3-bend", - "location": [ - 2768.764404296875, - 175.51934814453125 - ], - "params": { - "float_": 2.2443885803222656, - "float_max": 5.0, - "float_min": -5.0, - "int_": 0 - }, - "width": 140.0 - }, - "A Number.002": { - "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "3-taper", - "location": [ - 2606.01318359375, - 171.84930419921875 - ], - "params": { - "float_": 1.0, - "float_max": 5.0, - "float_min": -5.0, - "int_": 0 - }, - "width": 140.0 - }, - "A Number.003": { - "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "3-twist", - "location": [ - 2431.6767578125, - 178.75588989257812 - ], - "params": { - "float_": 1.0, - "float_max": 5.0, - "float_min": -5.0, - "int_": 0 - }, - "width": 140.0 - }, - "A Number.004": { - "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "1-height", - "location": [ - -241.41177368164062, - -281.29412841796875 - ], - "params": { - "float_": 1.0752404928207397, - "float_max": 3.0, - "float_min": 0.10000000149011612, - "int_": 0 - }, - "width": 140.0 - }, - "A Number.005": { - "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "1-sides", - "location": [ - -241.41177368164062, - -200.8235321044922 - ], - "params": { - "float_": 1.0169999599456787, - "int_": 6, - "int_max": 20, - "int_min": 3, - "selected_mode": "int" - }, - "width": 140.0 - }, - "A Number.006": { - "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "divisions", - "location": [ - -241.41177368164062, - -361.76470947265625 - ], - "params": { - "float_": 1.0169999599456787, - "int_": 4, - "int_max": 10, - "int_min": 1, - "selected_mode": "int" - }, - "width": 140.0 - }, - "A Number.007": { - "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "4-area-filter", - "location": [ - 3926.279541015625, - -322.43402099609375 - ], - "params": { - "float_": 0.005377047695219517, - "float_max": 0.10000000149011612, - "float_min": 0.0, - "int_": 0, - "show_limits": 0 - }, - "width": 140.0 - }, - "A Number.008": { - "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "random", - "location": [ - -237.04348754882812, - -446.5765686035156 - ], - "params": { - "float_": 0.0, - "int_": 2, - "selected_mode": "int" - }, - "width": 140.0 - }, - "Area": { - "bl_idname": "AreaNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 3986.4111328125, - -283.46636962890625 - ], - "params": {}, - "width": 140.0 - }, - "Color in": { - "bl_idname": "SvColorsInNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 4293.1533203125, - -534.3276977539062 - ], - "params": { - "b_": 0.08999998867511749, - "g_": 0.23999997973442078, - "r_": 1.0, - "selected_mode": "RGB" - }, - "width": 100.0 - }, - "Color in.001": { - "bl_idname": "SvColorsInNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 4292.64013671875, - -339.3354797363281 - ], - "params": { - "b_": 0.29999998211860657, - "g_": 1.0, - "r_": 0.7799999713897705, - "selected_mode": "RGB" - }, - "width": 100.0 - }, - "Cylinder": { - "bl_idname": "CylinderNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 13.242290496826172, - -224.1712188720703 - ], - "params": { - "Separate": 1, - "height_": 1.0169999599456787, - "radBot_": 0.028000004589557648, - "radTop_": 0.23100000619888306, - "subd_": 4, - "vert_": 6 - }, - "width": 140.0 - }, - "Extrude Separate Faces": { - "bl_idname": "SvExtrudeSeparateNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1288.2781982421875, - 94.43759155273438 - ], - "params": { - "height_": 0.10000000149011612, - "scale_": 0.4000000059604645 - }, - "width": 141.34848022460938 - }, - "Extrude Separate Faces.001": { - "bl_idname": "SvExtrudeSeparateNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 874.1421508789062, - 51.522666931152344 - ], - "params": { - "height_": 0.04600000008940697, - "scale_": 1.0 - }, - "width": 140.0 - }, - "Frame": { - "bl_idname": "NodeFrame", - "color": [ - 0.33287835121154785, - 0.16730134189128876, - 0.34509801864624023 - ], - "height": 1241.0048828125, - "hide": false, - "label": "Sverchok_viewer", - "location": [ - -758.6839599609375, - -465.14495849609375 - ], - "params": {}, - "width": 5301.28564453125 - }, - "Frame.001": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 374.66094970703125, - "hide": false, - "label": "", - "location": [ - 35.867000579833984, - -35.89405059814453 - ], - "params": {}, - "width": 204.72119140625 - }, - "Frame.002": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 319.9903564453125, - "hide": false, - "label": "\u041f\u0415\u0420\u0415\u0413\u0420\u0423\u041f\u041f\u0418\u0420\u041e\u0412\u041a\u0410", - "location": [ - 30.21571159362793, - -37.62342071533203 - ], - "params": {}, - "width": 200.35304260253906 - }, - "Frame.003": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 581.9920654296875, - "hide": false, - "label": "\u0428\u041b\u042f\u041f\u04101", - "location": [ - 0.0, - 0.0 - ], - "params": {}, - "width": 602.1314086914062 - }, - "Frame.004": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 326.732177734375, - "hide": false, - "label": "\u0428\u041b\u042f\u041f\u04102", - "location": [ - 0.0, - 0.0 - ], - "params": {}, - "width": 370.1064453125 - }, - "Frame.005": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 333.84710693359375, - "hide": false, - "label": "\u0428\u041b\u042f\u041f\u04103", - "location": [ - 373.59027099609375, - -369.8769836425781 - ], - "params": {}, - "width": 511.17919921875 - }, - "Frame.006": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 173.93319702148438, - "hide": false, - "label": "\u0421\u041e\u0415\u0414\u0418\u041d\u0415\u041d\u0418\u0415", - "location": [ - 392.8884582519531, - -100.55632781982422 - ], - "params": {}, - "width": 361.59228515625 - }, - "Frame.007": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 413.7232666015625, - "hide": false, - "label": "\u0418\u0421\u041a\u0420\u0418\u0412\u041b\u0415\u041d\u0418\u0415", - "location": [ - 433.7946472167969, - -28.7755184173584 - ], - "params": {}, - "width": 542.13623046875 - }, - "Frame.008": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 454.4879150390625, - "hide": false, - "label": "\u0422\u0423\u041b\u041e\u0412\u0418\u0429\u0415", - "location": [ - 13.217754364013672, - -22.676097869873047 - ], - "params": {}, - "width": 1156.8662109375 - }, - "Frame.009": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 642.344970703125, - "hide": false, - "label": "\u0428\u041b\u042f\u041f\u0410", - "location": [ - 26.243833541870117, - 16.713218688964844 - ], - "params": {}, - "width": 1671.706787109375 - }, - "Frame.010": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 394.13494873046875, - "hide": false, - "label": "\u0421\u0415\u0420\u0415\u0414\u0418\u041d\u0410 \u0412 \u0425\u0410\u041e\u0421", - "location": [ - -9.986482620239258, - 24.292953491210938 - ], - "params": {}, - "width": 694.2079467773438 - }, - "Frame.011": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 330.7182312011719, - "hide": false, - "label": "\u0412\u042b\u0412\u041e\u0414\u0418\u041c \u0421\u0415\u0422\u041a\u0423", - "location": [ - -105.927978515625, - 79.52947998046875 - ], - "params": {}, - "width": 379.2265625 - }, - "Frame.012": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 178.21066284179688, - "hide": false, - "label": "\u0410\u041d\u0410\u041b\u0418\u0417 \u041f\u041b\u041e\u0429\u0410\u0414\u0418", - "location": [ - 10.479828834533691, - 96.13754272460938 - ], - "params": {}, - "width": 372.146484375 - }, - "Frame.013": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 326.6395568847656, - "hide": false, - "label": "\u041e\u0422\u0421\u0415\u0418\u0412\u0410\u041d\u0418\u0415", - "location": [ - 0.0, - 0.0 - ], - "params": {}, - "width": 369.07421875 - }, - "Frame.014": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 441.257568359375, - "hide": false, - "label": "\u0412\u042b\u0411\u041e\u0420 \u0414\u0412\u0423\u0425 \u0426\u0412\u0415\u0422\u041e\u0412", - "location": [ - 75.10543060302734, - -40.202980041503906 - ], - "params": {}, - "width": 336.1669921875 - }, - "Frame.015": { - "bl_idname": "NodeFrame", - "color": [ - 0.6080005764961243, - 0.17474232614040375, - 0.12594369053840637 - ], - "height": 862.4042358398438, - "hide": false, - "label": "\u041f\u041e\u0421\u0422\u041e\u0411\u0420\u0410\u041e\u0422\u041a\u0410", - "location": [ - 1108.526611328125, - 345.7056884765625 - ], - "params": {}, - "width": 1032.915771484375 - }, - "Frame.016": { - "bl_idname": "NodeFrame", - "color": [ - 0.6080000996589661, - 0.5774734020233154, - 0.10676645487546921 - ], - "height": 1180.652099609375, - "hide": false, - "label": "\u041f\u0415\u0420\u0415\u0426", - "location": [ - 1047.5860595703125, - 36.96160125732422 - ], - "params": {}, - "width": 3233.555908203125 - }, - "Frame.017": { - "bl_idname": "NodeFrame", - "color": [ - 0.18890145421028137, - 0.6080000996589661, - 0.1368197798728943 - ], - "height": 629.6962890625, - "hide": false, - "label": "\u0411\u042b\u041b \u041e\u041d \u041f\u0420\u041e\u0421\u0422\u042b\u041c \u0426\u0418\u041b\u0418\u041d\u0414\u0420\u041e\u041c", - "location": [ - 1042.814453125, - 184.99400329589844 - ], - "params": {}, - "width": 737.8782348632812 - }, - "List Del Levels": { - "bl_idname": "ListLevelsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 241.41177368164062, - -180.7058868408203 - ], - "params": { - "Sverch_LisLev": "2,3" - }, - "width": 140.0 - }, - "List First & Last": { - "bl_idname": "ListFLNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 241.41177368164062, - -301.4117736816406 - ], - "params": { - "level": 1 - }, - "width": 140.0 - }, - "List Input": { - "bl_idname": "SvListInputNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1394.177001953125, - 295.8684997558594 - ], - "params": { - "int_": 1, - "int_list": [ - 0, - 0, - 1, - 1, - 1, - 1, - 1, - 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 - ] - }, - "width": 140.0 - }, - "List Join": { - "bl_idname": "ListJoinNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1380.8328857421875, - -303.8234558105469 - ], - "params": { - "JoinLevel": 2 - }, - "width": 140.0 - }, - "List Join.001": { - "bl_idname": "ListJoinNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 2016.103515625, - 157.32351684570312 - ], - "params": {}, - "width": 140.0 - }, - "List Join.002": { - "bl_idname": "ListJoinNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 2016.103515625, - 90.7568588256836 - ], - "params": {}, - "width": 140.0 - }, - "List Mask (out)": { - "bl_idname": "MaskListNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 4345.96240234375, - -76.50753784179688 - ], - "params": { - "Level": 2 - }, - "width": 140.0 - }, - "Logic functions": { - "bl_idname": "SvLogicNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 4098.0732421875, - -276.01702880859375 - ], - "params": { - "i_y": 0.009999999776482582, - "items_": "BIG" - }, - "width": 140.0 - }, - "Math MK2": { - "bl_idname": "SvScalarMathNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 954.731201171875, - -554.4735717773438 - ], - "params": {}, - "width": 140.0 - }, - "Math MK2.001": { - "bl_idname": "SvScalarMathNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 954.731201171875, - -590.0679321289062 - ], - "params": {}, - "width": 140.0 - }, - "Matrix in": { - "bl_idname": "SvMatrixGenNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 2630.024658203125, - -149.46734619140625 - ], - "params": { - "a_": 90.0, - "l_": [ - 1.0, - 0.0, - 1.3499999046325684 - ], - "r_": [ - 0.0, - 1.0, - 0.0 - ] - }, - "width": 140.0 - }, - "Mesh Join": { - "bl_idname": "SvMeshJoinNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2177.343017578125, - 173.8959197998047 - ], - "params": {}, - "width": 140.0 - }, - "Move": { - "bl_idname": "SvMoveNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1162.4149169921875, - -338.42889404296875 - ], - "params": { - "mult_": 0.20000000298023224 - }, - "width": 140.0 - }, - "MultiExtrude Alt from addons": { - "bl_idname": "SvMultiExtrudeAlt", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 1578.990966796875, - 283.5435485839844 - ], - "params": { - "nrotx": 0.5741615295410156, - "nroty": 1.7224864959716797, - "nrotz": 3.444978713989258, - "off": 0.10000000149011612, - "offz": 0.0, - "opt1": 1, - "opt2": 0, - "opt3": 0, - "opt4": 1, - "ran": 1, - "rotx": 0.5741615295410156, - "roty": 0.5741615295410156, - "rotz": 0.5741615295410156, - "sca": 0.75, - "var1": 0.10000000149011612, - "var2": 0.10000000149011612, - "var3": 0.10000000149011612, - "var4": 100 - }, - "width": 140.0 - }, - "Note": { - "bl_idname": "NoteNode", - "color": [ - 1.0, - 0.8993440270423889, - 0.9742509722709656 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 795.8062133789062, - 373.3471984863281 - ], - "params": { - "text": "\u0413\u041e\u0420\u041e\u0414\u0415\u0426\u041a\u0418\u0419 \u041d\u0418\u041a\u0418\u0422\u0410 2017 - \u041f\u0415\u0420\u0415\u0426-\u0413\u0415\u041d\u0415\u0420\u0410\u0422\u041e\u0420. \u0418\u0417 \u0426\u0418\u041b\u0418\u041d\u0414\u0420\u0410 \u0412\u042b\u0420\u0410\u0429\u0418\u0412\u0410\u0415\u041c \u041f\u0415\u0420\u0415\u0426 \u0418 \u041a\u0420\u0410\u0421\u0418\u041c \u0415\u0413\u041e \u0412 \u0426\u0412\u0415\u0422\u0410 \u0417\u0415\u041b\u0401\u041d\u042b\u0419 \u0418 \u041a\u0420\u0410\u0421\u041d\u042b\u0419" - }, - "width": 400.0 - }, - "Scale": { - "bl_idname": "SvScaleNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 945.95751953125, - -335.95843505859375 - ], - "params": { - "factor_": 0.3460000157356262 - }, - "width": 140.0 - }, - "Simple deformation": { - "bl_idname": "SvSimpleDeformNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2429.442138671875, - 88.35623168945312 - ], - "params": { - "angle": 2.675398111343384 - }, - "width": 140.0 - }, - "Simple deformation.001": { - "bl_idname": "SvSimpleDeformNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2600.333984375, - 85.86476135253906 - ], - "params": { - "angle": 2.675398111343384, - "factor": -0.5649999976158142, - "mode": "Taper" - }, - "width": 140.0 - }, - "Simple deformation.002": { - "bl_idname": "SvSimpleDeformNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2771.225341796875, - 82.57827758789062 - ], - "params": { - "angle": 2.0, - "factor": -0.5649999976158142, - "mode": "Bend" - }, - "width": 140.0 - }, - "Switch": { - "bl_idname": "SvSwitchNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 4428.455078125, - -421.7608642578125 - ], - "params": { - "selected_mode": "multi", - "switch_count": 1 - }, - "width": 140.0 - }, - "Triangulate mesh": { - "bl_idname": "SvTriangulateNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 3541.519287109375, - 52.54853057861328 - ], - "params": {}, - "width": 140.0 - }, - "UV Connection": { - "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 667.5922241210938, - 107.73532104492188 - ], - "params": {}, - "width": 140.0 - }, - "Vector Noise MK2": { - "bl_idname": "SvNoiseNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 668.5601196289062, - -347.9615783691406 - ], - "params": { - "noise_type": "VORONOI_CRACKLE", - "seed": 4 - }, - "width": 218.97218322753906 - }, - "Vector in": { - "bl_idname": "GenVectorsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1067.9501953125, - -506.5270080566406 - ], - "params": {}, - "width": 100.0 - }, - "Vector out": { - "bl_idname": "VectorsOutNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 776.7635498046875, - -525.966552734375 - ], - "params": {}, - "width": 140.0 - }, - "Vertex color new": { - "bl_idname": "SvVertexColorNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "\u041f\u0420\u0418\u0421\u0412\u041e\u0415\u041d\u0418\u0415 \u0426\u0412\u0415\u0422\u041e\u0412", - "location": [ - 4739.14599609375, - -279.7352294921875 - ], - "params": { - "mode": "polygons", - "use_active": 0 - }, - "width": 140.0 - }, - "Viewer BMesh": { - "bl_idname": "SvBmeshViewerNodeMK2", - "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 3714.867431640625, - 47.15522003173828 - ], - "params": { - "basemesh_name": "Alpha", - "fixed_verts": 0, - "lp": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ], - "material": "Material" - }, - "width": 145.5254669189453 - }, - "Viewer Draw": { - "bl_idname": "ViewerNode2", - "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1584.9105224609375, - -289.5319519042969 - ], - "params": { - "activate": 1, - "display_verts": 0, - "edge_colors": [ - 0.05406101047992706, - 0.8990018963813782, - 0.052835799753665924 - ], - "face_colors": [ - 0.8990005254745483, - 0.15285128355026245, - 0.054931122809648514 - ], - "shading": 1 - }, - "width": 140.0 - }, - "Viewer Draw.001": { - "bl_idname": "ViewerNode2", - "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1458.03173828125, - 94.43759155273438 - ], - "params": { - "activate": 1, - "display_edges": 0, - "display_verts": 0, - "face_colors": [ - 0.03702300041913986, - 0.8990010023117065, - 0.03514000028371811 - ], - "shading": 1 - }, - "width": 140.0 - }, - "Viewer Draw.002": { - "bl_idname": "ViewerNode2", - "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1705.0032958984375, - 446.0177001953125 - ], - "params": { - "activate": 1, - "display_edges": 0, - "display_verts": 0, - "face_colors": [ - 0.03702280670404434, - 0.8990007638931274, - 0.03513972461223602 - ], - "shading": 1 - }, - "width": 140.0 - }, - "Viewer Draw.003": { - "bl_idname": "ViewerNode2", - "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1069.370849609375, - 133.5630645751953 - ], - "params": { - "display_edges": 0, - "display_verts": 0, - "face_colors": [ - 0.03702300041913986, - 0.8990010023117065, - 0.03514000028371811 - ] - }, - "width": 140.0 - }, - "Viewer Draw.004": { - "bl_idname": "ViewerNode2", - "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 4514.68310546875, - -18.74471664428711 - ], - "params": { - "activate": 0, - "display_edges": 0, - "display_verts": 0, - "shading": 0 - }, - "width": 140.0 - }, - "Viewer text mk2": { - "bl_idname": "ViewerNodeTextMK2", - "color": [ - 1.0, - 0.8993440270423889, - 0.9742509722709656 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 263.34747314453125, - -536.18505859375 - ], - "params": {}, - "width": 140.0 - }, - "Viewer text mk2.001": { - "bl_idname": "ViewerNodeTextMK2", - "color": [ - 1.0, - 0.8993440270423889, - 0.9742509722709656 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 869.3131713867188, - 314.7563171386719 - ], - "params": {}, - "width": 140.0 - }, - "Viewer text mk2.002": { - "bl_idname": "ViewerNodeTextMK2", - "color": [ - 1.0, - 0.8993440270423889, - 0.9742509722709656 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 4725.27490234375, - -469.60357666015625 - ], - "params": { - "autoupdate": 0 - }, - "width": 140.0 - } - }, - "update_lists": [ - [ - "A Number.005", - 0, - "Cylinder", - 2 - ], - [ - "A Number.004", - 0, - "Cylinder", - 3 - ], - [ - "A Number.006", - 0, - "Cylinder", - 4 - ], - [ - "Cylinder", - 0, - "List Del Levels", - 0 - ], - [ - "List Del Levels", - 0, - "List First & Last", - 0 - ], - [ - "List First & Last", - 2, - "UV Connection", - 0 - ], - [ - "UV Connection", - 0, - "Extrude Separate Faces.001", - 0 - ], - [ - "UV Connection", - 1, - "Extrude Separate Faces.001", - 2 - ], - [ - "Extrude Separate Faces.001", - 0, - "Extrude Separate Faces", - 0 - ], - [ - "Extrude Separate Faces.001", - 3, - "Extrude Separate Faces", - 2 - ], - [ - "Extrude Separate Faces", - 0, - "MultiExtrude Alt from addons", - 0 - ], - [ - "Extrude Separate Faces", - 3, - "MultiExtrude Alt from addons", - 1 - ], - [ - "List Input", - 0, - "MultiExtrude Alt from addons", - 2 - ], - [ - "Extrude Separate Faces.001", - 2, - "List Join.002", - 0 - ], - [ - "Extrude Separate Faces", - 2, - "List Join.002", - 1 - ], - [ - "MultiExtrude Alt from addons", - 1, - "List Join.002", - 2 - ], - [ - "Cylinder", - 2, - "List Join.002", - 3 - ], - [ - "List First & Last", - 0, - "Vector Noise MK2", - 0 - ], - [ - "A Number.008", - 0, - "Vector Noise MK2", - 1 - ], - [ - "Vector Noise MK2", - 0, - "Vector out", - 0 - ], - [ - "Vector out", - 0, - "Math MK2", - 0 - ], - [ - "A Number", - 0, - "Math MK2", - 1 - ], - [ - "Vector out", - 1, - "Math MK2.001", - 0 - ], - [ - "A Number", - 0, - "Math MK2.001", - 1 - ], - [ - "Math MK2", - 0, - "Vector in", - 0 - ], - [ - "Math MK2.001", - 0, - "Vector in", - 1 - ], - [ - "Vector out", - 2, - "Vector in", - 2 - ], - [ - "Vector in", - 0, - "Scale", - 0 - ], - [ - "List First & Last", - 0, - "Move", - 0 - ], - [ - "Scale", - 0, - "Move", - 1 - ], - [ - "List First & Last", - 1, - "List Join", - 0 - ], - [ - "Move", - 0, - "List Join", - 1 - ], - [ - "List First & Last", - 2, - "List Join", - 2 - ], - [ - "Extrude Separate Faces.001", - 0, - "List Join.001", - 0 - ], - [ - "Extrude Separate Faces", - 0, - "List Join.001", - 1 - ], - [ - "MultiExtrude Alt from addons", - 0, - "List Join.001", - 2 - ], - [ - "List Join", - 0, - "List Join.001", - 3 - ], - [ - "List Join.001", - 0, - "Mesh Join", - 0 - ], - [ - "List Join.002", - 0, - "Mesh Join", - 1 - ], - [ - "Mesh Join", - 0, - "Simple deformation", - 0 - ], - [ - "A Number.003", - 0, - "Simple deformation", - 2 - ], - [ - "Simple deformation", - 0, - "Simple deformation.001", - 0 - ], - [ - "A Number.002", - 0, - "Simple deformation.001", - 3 - ], - [ - "Simple deformation.001", - 0, - "Simple deformation.002", - 0 - ], - [ - "Matrix in", - 0, - "Simple deformation.002", - 1 - ], - [ - "A Number.001", - 0, - "Simple deformation.002", - 2 - ], - [ - "Simple deformation.002", - 0, - "Triangulate mesh", - 0 - ], - [ - "Mesh Join", - 1, - "Triangulate mesh", - 2 - ], - [ - "Triangulate mesh", - 0, - "Area", - 0 - ], - [ - "Triangulate mesh", - 2, - "Area", - 1 - ], - [ - "Area", - 0, - "Logic functions", - 0 - ], - [ - "A Number.007", - 0, - "Logic functions", - 1 - ], - [ - "List Join", - 0, - "Viewer Draw", - 0 - ], - [ - "Cylinder", - 2, - "Viewer Draw", - 1 - ], - [ - "UV Connection", - 1, - "Viewer text mk2.001", - 1 - ], - [ - "Extrude Separate Faces.001", - 0, - "Viewer Draw.003", - 0 - ], - [ - "Extrude Separate Faces.001", - 2, - "Viewer Draw.003", - 1 - ], - [ - "Triangulate mesh", - 2, - "List Mask (out)", - 0 - ], - [ - "Logic functions", - 0, - "List Mask (out)", - 1 - ], - [ - "Triangulate mesh", - 0, - "Viewer Draw.004", - 0 - ], - [ - "List Mask (out)", - 3, - "Viewer Draw.004", - 1 - ], - [ - "Extrude Separate Faces", - 0, - "Viewer Draw.001", - 0 - ], - [ - "Extrude Separate Faces", - 2, - "Viewer Draw.001", - 1 - ], - [ - "MultiExtrude Alt from addons", - 0, - "Viewer Draw.002", - 0 - ], - [ - "MultiExtrude Alt from addons", - 1, - "Viewer Draw.002", - 1 - ], - [ - "Triangulate mesh", - 0, - "Viewer BMesh", - 0 - ], - [ - "Triangulate mesh", - 2, - "Viewer BMesh", - 2 - ], - [ - "Logic functions", - 0, - "Switch", - 0 - ], - [ - "Color in.001", - 0, - "Switch", - 1 - ], - [ - "Color in", - 0, - "Switch", - 2 - ], - [ - "Viewer BMesh", - 0, - "Vertex color new", - 0 - ], - [ - "Switch", - 0, - "Vertex color new", - 2 - ], - [ - "Switch", - 0, - "Viewer text mk2.002", - 1 - ], - [ - "List First & Last", - 0, - "Viewer text mk2", - 0 - ] - ] -} \ No newline at end of file diff --git a/json_examples/13.transformations.json b/json_examples/13.transformations.json index 2e0ab0fdbe69d93bd7b7609335fcbc85cb2a266c..0d02edb2b9598ba975bb986d1259e0c26590cb5e 100644 --- a/json_examples/13.transformations.json +++ b/json_examples/13.transformations.json @@ -1,5 +1,5 @@ { - "export_version": "0.065", + "export_version": "0.072", "framed_nodes": { "A Number.001": "Frame.005", "A Number.002": "Frame.005", @@ -24,7 +24,7 @@ "Math MK2.004": "Frame.005", "Move.001": "Frame", "Move.002": "Frame.007", - "Note": "Frame.001", + "Note": "Frame.008", "Plane MK2": "Frame.007", "Polygon Boom": "Frame.006", "Range Float.004": "Frame.005", @@ -54,17 +54,12 @@ "nodes": { "A Number.001": { "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 729.5885009765625, - -177.32373046875 + 1146.1284103393555, + -267.6210763454437 ], "params": { "float_": 0.10000000149011612, @@ -75,17 +70,12 @@ }, "A Number.002": { "bl_idname": "SvNumberNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 735.3189086914062, - -260.204345703125 + 1151.8588180541992, + -350.5016915798187 ], "params": { "float_": 0.8999999761581421, @@ -95,17 +85,12 @@ }, "Centers polygons 3": { "bl_idname": "CentersPolsNodeMK3", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 781.034912109375, - -60.34894943237305 + 554.705436706543, + -191.99346709251404 ], "params": { "Separate": 0 @@ -114,17 +99,12 @@ }, "Exec Node Mod": { "bl_idname": "SvExecNodeMod", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 2912.1513671875, - -171.48287963867188 + 2897.1408309936523, + 106.3551504611969 ], "params": {}, "string_storage": "{\"lines\": [\"for i in V1:\", \" if not 'Subsurf' in i.modifiers:\", \" i.modifiers.new(type='SUBSURF',name='Subsurf')\", \" if not 'Solidify' in i.modifiers:\", \" i.modifiers.new(type='SOLIDIFY',name='Solidify')\", \" if not 'EdgeSplit' in i.modifiers:\", \" i.modifiers.new(type='EDGE_SPLIT',name='EdgeSplit')\", \"\"]}", @@ -132,17 +112,12 @@ }, "Fibonacci sequence": { "bl_idname": "SvGenFibonacci", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 605.3218383789062, - -136.0172119140625 + 242.02202606201172, + -269.53902983665466 ], "params": { "maxValue_": 3.0, @@ -153,29 +128,19 @@ }, "Frame": { "bl_idname": "NodeFrame", - "color": [ - 0.03832000121474266, - 0.6079999804496765, - 0.027327999472618103 - ], - "height": 199.909423828125, + "height": 201.91769409179688, "hide": false, "label": "transform mk2", "location": [ - 439.42181396484375, - 103.66798400878906 + 770.6366500854492, + 102.21309113502502 ], "params": {}, - "width": 200.3529052734375 + "width": 200.0 }, "Frame.001": { "bl_idname": "NodeFrame", - "color": [ - 0.34509801864624023, - 0.016762711107730865, - 0.07291552424430847 - ], - "height": 1007.6810913085938, + "height": 1204.11962890625, "hide": false, "label": "Sverchok_viewer", "location": [ @@ -183,208 +148,148 @@ -2.0812509059906006 ], "params": {}, - "width": 3066.927734375 + "width": 4211.22265625 }, "Frame.002": { "bl_idname": "NodeFrame", - "color": [ - 0.07244860380887985, - 0.3638893961906433, - 0.6080003976821899 - ], - "height": 147.62281799316406, + "height": 146.32867431640625, "hide": false, "label": "input", "location": [ - 644.5925903320312, - -17.912158966064453 + 644.5925827026367, + -17.9121835231781 ], "params": {}, - "width": 77.2940673828125 + "width": 76.0 }, "Frame.003": { "bl_idname": "NodeFrame", - "color": [ - 0.038320090621709824, - 0.6080004572868347, - 0.027327602729201317 - ], - "height": 200.030029296875, + "height": 201.2158660888672, "hide": false, "label": "transform mk2", "location": [ - 501.83905029296875, - 24.772903442382812 + 965.2397384643555, + 83.81349396705627 ], "params": {}, - "width": 308.676025390625 + "width": 305.587890625 }, "Frame.004": { "bl_idname": "NodeFrame", - "color": [ - 0.03832000121474266, - 0.6079999804496765, - 0.027327999472618103 - ], - "height": 199.1695556640625, + "height": 201.71063232421875, "hide": false, "label": "transform mk2", "location": [ - 531.5603637695312, - 154.07333374023438 + 509.74828338623047, + 18.674257516860962 ], "params": {}, - "width": 200.35296630859375 + "width": 200.0 }, "Frame.005": { "bl_idname": "NodeFrame", - "color": [ - 0.9424089789390564, - 1.0, - 0.7225210070610046 - ], - "height": 451.26715087890625, + "height": 453.37896728515625, "hide": false, "label": "", "location": [ - 531.8349609375, - 11.979560852050781 + 948.374870300293, + -78.31779265403748 ], "params": {}, - "width": 386.328857421875 + "width": 385.97589111328125 }, "Frame.006": { "bl_idname": "NodeFrame", - "color": [ - 0.9424086213111877, - 1.0, - 0.7225205302238464 - ], - "height": 407.5691833496094, + "height": 407.039794921875, "hide": false, "label": "vertices prepare", "location": [ - -58.14273452758789, - 294.3556823730469 + -202.1961441040039, + 500.9976980686188 ], "params": {}, - "width": 339.5352783203125 + "width": 441.52001953125 }, "Frame.007": { "bl_idname": "NodeFrame", - "color": [ - 0.4521949887275696, - 0.6080005764961243, - 0.022526871412992477 - ], - "height": 328.86566162109375, + "height": 335.11962890625, "hide": false, "label": "initial mesh", "location": [ - 184.78033447265625, - -382.63409423828125 + -584.5053176879883, + -320.68372893333435 ], "params": {}, - "width": 526.605224609375 + "width": 526.252197265625 }, "Frame.008": { "bl_idname": "NodeFrame", - "color": [ - 0.6080002784729004, - 0.5020702481269836, - 0.024977030232548714 - ], - "height": 942.7546997070312, + "height": 1043.0888671875, "hide": false, "label": "process", "location": [ - 238.3689422607422, - -367.0722351074219 + 238.36894989013672, + -367.0722482204437 ], "params": {}, - "width": 1644.5814208984375 + "width": 2555.55078125 }, "Frame.009": { "bl_idname": "NodeFrame", - "color": [ - 0.6080014705657959, - 0.3449057936668396, - 0.04456671327352524 - ], - "height": 568.8097534179688, + "height": 568.9097290039062, "hide": false, "label": "outputs", "location": [ - -148.69857788085938, - -295.783447265625 + -148.6985855102539, + -295.78346037864685 ], "params": {}, - "width": 361.798828125 + "width": 361.44580078125 }, "Frame.010": { "bl_idname": "NodeFrame", - "color": [ - 0.9424089789390564, - 1.0, - 0.7225210070610046 - ], - "height": 508.8754577636719, + "height": 448.9176940917969, "hide": false, "label": "centers scale+multiply", "location": [ - 17.40009117126465, - 11.081138610839844 + -297.1157913208008, + -103.66782927513123 ], "params": {}, - "width": 672.0325927734375 + "width": 1116.492431640625 }, "Frame.011": { "bl_idname": "NodeFrame", - "color": [ - 0.07244899868965149, - 0.36388900876045227, - 0.6079999804496765 - ], - "height": 111.88044738769531, + "height": 110.58633422851562, "hide": false, "label": "output", "location": [ - -161.7186279296875, - 274.09197998046875 + -31.549903869628906, + 334.8690359592438 ], "params": {}, - "width": 78.1690673828125 + "width": 76.875 }, "Frame.012": { "bl_idname": "NodeFrame", - "color": [ - 0.6080006957054138, - 0.13588108122348785, - 0.02813970297574997 - ], - "height": 376.09283447265625, + "height": 377.35516357421875, "hide": false, "label": "postprocess", "location": [ - -205.94515991210938, - 104.9510726928711 + -220.95560455322266, + 382.7891104221344 ], "params": {}, - "width": 349.352783203125 + "width": 349.0 }, "List Del Levels": { "bl_idname": "ListLevelsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 1461.0159912109375, - -85.30264282226562 + 1316.962547302246, + 121.33937287330627 ], "params": { "Sverch_LisLev": "1,3" @@ -393,17 +298,12 @@ }, "List Item": { "bl_idname": "ListItem2Node", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 2463.98779296875, - -65.21279907226562 + 2463.987693786621, + -65.21279692649841 ], "params": { "item": 0, @@ -413,17 +313,12 @@ }, "Math MK2.003": { "bl_idname": "SvScalarMathNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 936.2481079101562, - -336.8232727050781 + 1352.7880172729492, + -427.12061858177185 ], "params": { "current_op": "SINE", @@ -433,17 +328,12 @@ }, "Math MK2.004": { "bl_idname": "SvScalarMathNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 935.0148315429688, - -383.05059814453125 + 1351.5547409057617, + -473.347944021225 ], "params": { "current_op": "ABS", @@ -453,17 +343,12 @@ }, "Move.001": { "bl_idname": "SvMoveNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 541.3404541015625, - -102.6274185180664 + 872.555290222168, + -104.08231902122498 ], "params": { "separate": 1 @@ -472,17 +357,12 @@ }, "Move.002": { "bl_idname": "SvMoveNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 190.45620727539062, - 262.6368103027344 + -578.8294448852539, + 324.58714509010315 ], "params": {}, "width": 140.0 @@ -490,36 +370,37 @@ "Note": { "bl_idname": "NoteNode", "color": [ - 1.0, - 0.8993440270423889, - 0.9742509722709656 + 0.0, + 5.47599413888852e-41, + 1.0 ], "height": 100.0, "hide": false, "label": "", "location": [ - 23.861038208007812, - -396.801025390625 + 20.389869689941406, + -572.1862924098969 ], "params": { "show_text": 0, "text": "nikitron 2017 - level separate approache proof of concept. Maybe as it is in petri-voronoi+scale, the same principle" }, + "use_custom_color": true, "width": 517.9198608398438 }, "Plane MK2": { "bl_idname": "SvPlaneNodeMK2", "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 + 0.0, + 5.47599413888852e-41, + 1.0 ], "height": 100.0, "hide": false, "label": "", "location": [ - -135.7960662841797, - 310.1692199707031 + -905.0817031860352, + 372.11961579322815 ], "params": { "center": 1, @@ -530,38 +411,29 @@ "sizex": 5.0, "sizey": 5.0 }, + "use_custom_color": true, "width": 140.0 }, "Polygon Boom": { "bl_idname": "PolygonBoomNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 1442.8680419921875, - -33.59453582763672 + 1298.814598083496, + 173.04750275611877 ], "params": {}, "width": 140.0 }, "Range Float.004": { "bl_idname": "SvGenFloatRange", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 907.05517578125, - -180.4937286376953 + 1323.595085144043, + -270.7910592556 ], "params": { "count_": 16, @@ -573,17 +445,12 @@ }, "Range Float.005": { "bl_idname": "SvGenFloatRange", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 915.5643310546875, - -429.24432373046875 + 1332.1042404174805, + -519.5416696071625 ], "params": { "count_": 10, @@ -595,102 +462,72 @@ }, "Reroute": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - -233.85922241210938, - 162.7602081298828 + -233.85919952392578, + 162.76021027565002 ], "params": {}, "width": 16.0 }, "Reroute.001": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - -233.85922241210938, - 233.08889770507812 + -233.85919952392578, + 233.08888459205627 ], "params": {}, "width": 16.0 }, "Reroute.002": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - -233.85922241210938, - 195.92910766601562 + -233.85919952392578, + 195.92909455299377 ], "params": {}, "width": 16.0 }, "Reroute.003": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 2055.522705078125, - -96.13386535644531 + 2185.691551208496, + -35.3567636013031 ], "params": {}, "width": 16.0 }, "Reroute.004": { "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 2054.647705078125, - -61.54752731323242 + 2184.816551208496, + -0.7704293727874756 ], "params": {}, "width": 16.0 }, "Scale": { "bl_idname": "SvScaleNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 1175.975830078125, - -53.82472229003906 + 1639.3765182495117, + 5.215868234634399 ], "params": { "separate": 1 @@ -699,17 +536,12 @@ }, "Scale.001": { "bl_idname": "SvScaleNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 37.87493896484375, - -83.89030456542969 + 16.06285858154297, + -219.28936553001404 ], "params": { "factor_": 0.800000011920929, @@ -728,8 +560,8 @@ "hide": false, "label": "", "location": [ - 1337.97412109375, - -204.19613647460938 + 1088.847801208496, + 28.727861642837524 ], "params": { "inject_params": 0, @@ -769,41 +601,43 @@ 0 ], "script_name": "transpose", - "script_str": "\"\"\"\nin datain s .=[] n=0\nin level s .=1 n=0\nout dataout s\n\"\"\"\n\nimport numpy as np\nfrom numpy import array as ar\n\nData = ar(datain)\nprint(Data.shape)\nshape = np.roll(ar([i for i in range(Data.ndim-1)]), level)\nshape = np.append(shape,ar([Data.ndim-1])).tolist()\nData = np.transpose(Data, shape)\n\ndataout = Data.tolist()" + "script_str": "\"\"\"\nin datain s .=[] n=0\nin level s .=1 n=0\nout dataout s\n\"\"\"\n\nimport numpy as np\nfrom numpy import array as ar\n\nif datain:\n\n Data = ar(datain)\n print(Data.shape)\n shape = np.roll(ar([i for i in range(Data.ndim-1)]), level)\n shape = np.append(shape,ar([Data.ndim-1])).tolist()\n Data = np.transpose(Data, shape)\n\n dataout = Data.tolist()" }, "snlite_ui": [], + "use_custom_color": true, "width": 140.0 }, "Socket Converter": { "bl_idname": "ConverterNode", "color": [ - 0.602957010269165, - 0.6740000247955322, - 0.5642769932746887 + 0.0, + 5.47599413888852e-41, + 1.0 ], "height": 100.0, "hide": true, "label": "", "location": [ - 1353.0137939453125, - -350.63433837890625 + 1208.960350036621, + -143.99229216575623 ], "params": {}, + "use_custom_color": true, "width": 140.0 }, "Stethoscope MK2": { "bl_idname": "SvStethoscopeNodeMK2", "color": [ - 1.0, - 0.8993440270423889, - 0.9742509722709656 + 0.0, + 5.47599413888852e-41, + 1.0 ], "height": 100.0, "hide": false, "label": "", "location": [ - 790.2244873046875, - -148.5986328125 + 693.3601608276367, + -263.34759306907654 ], "params": { "activate": 0, @@ -814,21 +648,17 @@ 0.949999988079071 ] }, + "use_custom_color": true, "width": 140.0 }, "UV Connection.001": { "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": false, "label": "", "location": [ - 1692.1754150390625, - 253.64877319335938 + 1936.8926315307617, + 83.47297883033752 ], "params": { "cicl_check_U": 0, @@ -843,17 +673,12 @@ }, "UV Connection.002": { "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 1527.4212646484375, - -215.89013671875 + 1383.367820739746, + -9.248090505599976 ], "params": { "dir_check": "U_dir", @@ -863,17 +688,12 @@ }, "UV Connection.003": { "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 1334.563720703125, - -116.81336212158203 + 1797.964469909668, + -57.7727792263031 ], "params": { "dir_check": "V_dir", @@ -884,34 +704,24 @@ }, "Vector Turbulence": { "bl_idname": "SvTurbulenceNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 34.70749282836914, - 155.3155517578125 + -734.5781478881836, + 217.2659170627594 ], "params": {}, "width": 140.0 }, "Vector in.001": { "bl_idname": "GenVectorsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], "height": 100.0, "hide": true, "label": "", "location": [ - 778.6810913085938, - -106.49954223632812 + 559.856803894043, + -236.26678252220154 ], "params": { "x_": 0.0, @@ -922,60 +732,39 @@ "Viewer BMesh": { "bl_idname": "SvBmeshViewerNodeMK2", "color": [ - 0.6284880042076111, - 0.931007981300354, + 0.0, + 5.47599413888852e-41, 1.0 ], "height": 100.0, "hide": true, "label": "", "location": [ - 2528.608642578125, - 222.90972900390625 + 2528.608543395996, + 222.9097158908844 ], "params": { "autosmooth": 1, "basemesh_name": "Zeta", "calc_normals": 0, - "hide": 1, - "lp": [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] + "hide": 1 }, + "use_custom_color": true, "width": 140.0 }, "Viewer Draw": { "bl_idname": "ViewerNode2", "color": [ - 0.6284880042076111, - 0.931007981300354, + 0.0, + 5.47599413888852e-41, 1.0 ], "height": 100.0, "hide": true, "label": "", "location": [ - 1526.5816650390625, - -270.08062744140625 + 1382.528221130371, + -63.438581228256226 ], "params": { "activate": 1, @@ -993,21 +782,22 @@ ], "vertex_size": 6.0 }, + "use_custom_color": true, "width": 140.0 }, "Viewer Draw.002": { "bl_idname": "ViewerNode2", "color": [ - 0.6284880042076111, - 0.931007981300354, + 0.0, + 5.47599413888852e-41, 1.0 ], "height": 100.0, "hide": true, "label": "", "location": [ - 807.7191772460938, - 69.707275390625 + 558.8740158081055, + -93.85105681419373 ], "params": { "edge_colors": [ @@ -1022,21 +812,22 @@ ], "vertex_size": 4.0 }, + "use_custom_color": true, "width": 140.0 }, "Viewer Draw.003": { "bl_idname": "ViewerNode2", "color": [ - 0.6284880042076111, - 0.931007981300354, + 0.0, + 5.47599413888852e-41, 1.0 ], "height": 100.0, "hide": true, "label": "", "location": [ - 1332.595458984375, - -160.97552490234375 + 1795.996208190918, + -101.93493437767029 ], "params": { "activate": 1, @@ -1054,26 +845,28 @@ ], "vertex_size": 2.0 }, + "use_custom_color": true, "width": 140.0 }, "Viewer Index": { "bl_idname": "IndexViewerNode", "color": [ - 0.6284880042076111, - 0.931007981300354, + 0.0, + 5.47599413888852e-41, 1.0 ], "height": 100.0, "hide": false, "label": "", "location": [ - 2625.43359375, - -65.80107116699219 + 2625.433494567871, + -65.80106902122498 ], "params": { "activate": 0, "draw_bg": 1 }, + "use_custom_color": true, "width": 140.0 } }, @@ -1162,6 +955,18 @@ "List Del Levels", 0 ], + [ + "Reroute.001", + "Output", + "Polygon Boom", + "vertices" + ], + [ + "Reroute", + "Output", + "Polygon Boom", + "edg_pol" + ], [ "A Number.001", 0, @@ -1192,18 +997,6 @@ "Range Float.005", 1 ], - [ - "Reroute.001", - "Output", - "Polygon Boom", - "vertices" - ], - [ - "Reroute", - "Output", - "Polygon Boom", - "edg_pol" - ], [ "Polygon Boom", 0, @@ -1222,6 +1015,12 @@ "Scale", 2 ], + [ + "Scale", + 0, + "UV Connection.003", + 0 + ], [ "Scale", 0, @@ -1258,12 +1057,6 @@ "Exec Node Mod", 0 ], - [ - "Reroute.004", - "Output", - "List Item", - "Data" - ], [ "Socket Converter", 0, @@ -1282,18 +1075,6 @@ "Viewer Draw", 1 ], - [ - "Plane MK2", - "Edges", - "Reroute.002", - "Input" - ], - [ - "Scale", - 0, - "UV Connection.003", - 0 - ], [ "UV Connection.003", 0, @@ -1307,16 +1088,16 @@ 1 ], [ - "Fibonacci sequence", - 0, - "Stethoscope MK2", - 0 + "Plane MK2", + "Edges", + "Reroute.002", + "Input" ], [ + "Reroute.004", + "Output", "List Item", - 0, - "Viewer Index", - 0 + "Data" ], [ "Scale.001", @@ -1329,6 +1110,18 @@ "Output", "Viewer Draw.002", "edg_pol" + ], + [ + "List Item", + 0, + "Viewer Index", + 0 + ], + [ + "Fibonacci sequence", + 0, + "Stethoscope MK2", + 0 ] ] } \ No newline at end of file diff --git a/json_examples/KELLY_EGAN_spiral_disk.json b/json_examples/KELLY_EGAN_spiral_disk.json deleted file mode 100644 index 8730d9282efdacca37dfa2d648591e1d6e0fb842..0000000000000000000000000000000000000000 --- a/json_examples/KELLY_EGAN_spiral_disk.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "export_version": "0.062", - "framed_nodes": {}, - "groups": { - "Spiralli": "{\"nodes\": {\"function.004\": {\"location\": [-989.8991088867188, 278.4745178222656], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"y\": 2.5600013732910156, \"items_\": \"MUL\"}, \"bl_idname\": \"ScalarMathNode\", \"hide\": false, \"height\": 100.0}, \"function.006\": {\"location\": [-1340.099853515625, 278.4745178222656], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"y\": -3.0, \"items_\": \"MUL\"}, \"bl_idname\": \"ScalarMathNode\", \"hide\": false, \"height\": 100.0}, \"function.005\": {\"location\": [-827.9815673828125, 277.5683288574219], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"items_\": \"ADD\"}, \"bl_idname\": \"ScalarMathNode\", \"hide\": false, \"height\": 100.0}, \"Group Inputs Exp\": {\"location\": [-2258.1767578125, 277.04522705078125], \"width\": 140.0, \"label\": \"\", \"color\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \"outputs\": [[\"Vectors\", \"VerticesSocket\"]], \"params\": {\"node_kind\": \"outputs\"}, \"bl_idname\": \"SvGroupInputsNodeExp\", \"hide\": false, \"height\": 100.0}, \"Frame\": {\"location\": [186.14854431152344, 330.5939025878906], \"width\": 1420.1951904296875, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {}, \"bl_idname\": \"NodeFrame\", \"hide\": false, \"height\": 425.06842041015625}, \"function.003\": {\"location\": [-1160.438232421875, 278.4745178222656], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"x\": 0.3200001120567322, \"y\": 2.0, \"items_\": \"COSINE\"}, \"bl_idname\": \"ScalarMathNode\", \"hide\": false, \"height\": 100.0}, \"Group Outputs Exp\": {\"location\": [366.1485595703125, 277.04522705078125], \"width\": 140.0, \"label\": \"\", \"color\": [0.8308190107345581, 0.911391019821167, 0.7545620203018188], \"params\": {\"node_kind\": \"inputs\"}, \"inputs\": [[\"Vectors\", \"VerticesSocket\"], [\"Polygons\", \"StringsSocket\"]], \"bl_idname\": \"SvGroupOutputsNodeExp\", \"hide\": false, \"height\": 100.0}, \"function\": {\"location\": [-1259.8173828125, 79.68720245361328], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"x\": 0.3200001120567322, \"y\": 2.0, \"items_\": \"COSINE\"}, \"bl_idname\": \"ScalarMathNode\", \"hide\": false, \"height\": 100.0}, \"Vector Math\": {\"location\": [-1837.634033203125, 79.68720245361328], \"width\": 140.0, \"label\": \"SCALAR\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"scalar_output_socket\": 0, \"items_\": \"SCALAR\"}, \"bl_idname\": \"VectorMathNode\", \"hide\": false, \"height\": 100.0}, \"Distances\": {\"location\": [-1657.6175537109375, 79.68720245361328], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"Cross_dist\": 0}, \"bl_idname\": \"DistancePPNode\", \"hide\": false, \"height\": 100.0}, \"Vectors polar out\": {\"location\": [-1510.506591796875, 278.4745178222656], \"width\": 100.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {}, \"bl_idname\": \"VectorPolarOutNode\", \"hide\": false, \"height\": 100.0}, \"Vectors out\": {\"location\": [-415.110595703125, 466.43896484375], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {}, \"bl_idname\": \"VectorsOutNode\", \"hide\": false, \"height\": 100.0}, \"Delaunay 2D\": {\"location\": [-228.07830810546875, 334.8793029785156], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {}, \"bl_idname\": \"DelaunayTriangulation2DNode\", \"hide\": false, \"height\": 100.0}, \"function.001\": {\"location\": [-1458.717529296875, 79.68720245361328], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"y\": 0.10000000149011612, \"items_\": \"MUL\"}, \"bl_idname\": \"ScalarMathNode\", \"hide\": false, \"height\": 100.0}, \"Float\": {\"location\": [-2048.1767578125, 79.68720245361328], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"float_\": -0.476999968290329}, \"bl_idname\": \"FloatNode\", \"hide\": false, \"height\": 100.0}, \"function.002\": {\"location\": [-1084.099365234375, 79.68720245361328], \"width\": 140.0, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {\"y\": 5.400000095367432, \"items_\": \"MUL\"}, \"bl_idname\": \"ScalarMathNode\", \"hide\": false, \"height\": 100.0}, \"Vectors in\": {\"location\": [-216.68788146972656, 474.40325927734375], \"width\": 113.182373046875, \"label\": \"\", \"color\": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], \"params\": {}, \"bl_idname\": \"GenVectorsNode\", \"hide\": false, \"height\": 100.0}}, \"export_version\": \"0.062\", \"framed_nodes\": {\"function.004\": \"Frame\", \"function.006\": \"Frame\", \"function.005\": \"Frame\", \"Distances\": \"Frame\", \"Vector Math\": \"Frame\", \"Vectors polar out\": \"Frame\", \"function.003\": \"Frame\", \"function.001\": \"Frame\", \"Float\": \"Frame\", \"function.002\": \"Frame\", \"function\": \"Frame\"}, \"cls_bl_idname\": \"SvGroupNodeMonad_138888784783\", \"update_lists\": [[\"Group Inputs Exp\", \"Vectors\", \"Vectors polar out\", \"Vectors\"], [\"Vectors polar out\", \"rho\", \"function.006\", \"X\"], [\"function.006\", \"float\", \"function.003\", \"X\"], [\"function.003\", \"float\", \"function.004\", \"X\"], [\"Group Inputs Exp\", \"Vectors\", \"Vectors out\", \"Vectors\"], [\"Group Inputs Exp\", \"Vectors\", \"Vector Math\", \"U\"], [\"Float\", \"Float\", \"Vector Math\", \"S\"], [\"Vector Math\", \"W\", \"Distances\", \"vertices1\"], [\"Group Inputs Exp\", \"Vectors\", \"Distances\", \"vertices2\"], [\"Distances\", \"distances\", \"function.001\", \"X\"], [\"function.001\", \"float\", \"function\", \"X\"], [\"function\", \"float\", \"function.002\", \"X\"], [\"function.004\", \"float\", \"function.005\", \"X\"], [\"function.002\", \"float\", \"function.005\", \"Y\"], [\"Vectors out\", \"X\", \"Vectors in\", \"X\"], [\"Vectors out\", \"Y\", \"Vectors in\", \"Y\"], [\"function.005\", \"float\", \"Vectors in\", \"Z\"], [\"Group Inputs Exp\", \"Vectors\", \"Delaunay 2D\", \"Vertices\"], [\"Vectors in\", \"Vectors\", \"Group Outputs Exp\", \"Vectors\"], [\"Delaunay 2D\", \"Polygons\", \"Group Outputs Exp\", \"Polygons\"]], \"bl_idname\": \"SverchGroupTreeType\", \"groups\": {}}" - }, - "nodes": { - "Monad": { - "bl_idname": "SvMonadGenericNode", - "color": [ - 0.8308190107345581, - 0.911391019821167, - 0.7545620203018188 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -306.8420715332031, - 462.87969970703125 - ], - "params": { - "cls_dict": { - "cls_bl_idname": "SvGroupNodeMonad_138888784783", - "input_template": [ - [ - "Vectors", - "VerticesSocket", - {} - ] - ], - "output_template": [ - [ - "Vectors", - "VerticesSocket" - ], - [ - "Polygons", - "StringsSocket" - ] - ] - }, - "monad": "Spiralli", - "vectorize": 0 - }, - "width": 140.0 - }, - "Note": { - "bl_idname": "NoteNode", - "color": [ - 1.0, - 0.8993440270423889, - 0.9742509722709656 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -621.3333129882812, - 584.2412719726562 - ], - "params": { - "show_text": 0, - "text": "KELLY EGAN' spiral disk layout http://kellyegan.net/2016/07/Sverchok.html" - }, - "width": 400.0 - }, - "Script Generator": { - "bl_idname": "SvScriptNode", - "color": [ - 0.0, - 0.800000011920929, - 0.949999988079071 - ], - "height": 100.0, - "hide": false, - "label": "spiral_fib.py", - "location": [ - -608.43505859375, - 426.3199462890625 - ], - "params": { - "button_names": "", - "files_popup": "separate_ver_hor_edges.py", - "float_list": [ - 0.0, - 1.0, - 2.0, - 3.0, - 4.0, - 5.0, - 6.0, - 7.0, - 8.0, - 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, - 3000, - 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": "def sv_main(n=1000, c=0.1):\n\n in_sockets = [\n ['s', 'Number of points', n],\n ['s', 'Scale Factor', c]\n ]\n\n from math import sin, cos, radians, pi, sqrt\n from mathutils import Vector, Euler\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 verts_new((cos(theta) * r, sin(theta) * r, 0.0))\n\n out_sockets = [\n ['v', 'Verts', [Verts]]\n ]\n\n return in_sockets, out_sockets\n" - }, - "width": 175.7708740234375 - }, - "Viewer Draw2": { - "bl_idname": "ViewerNode2", - "color": [ - 1.0, - 0.30000001192092896, - 0.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 16.680580139160156, - 527.138671875 - ], - "params": { - "activate": 1, - "display_edges": 0, - "display_faces": 1, - "display_verts": 0, - "shading": 1, - "transparant": 0 - }, - "width": 140.0 - } - }, - "update_lists": [ - [ - "Script Generator", - "Verts", - "Monad", - "Vectors" - ], - [ - "Monad", - "Vectors", - "Viewer Draw2", - "vertices" - ], - [ - "Monad", - "Polygons", - "Viewer Draw2", - "edg_pol" - ] - ] -} diff --git a/json_examples/screw polygons.json b/json_examples/screw polygons.json deleted file mode 100644 index 2de4e4b34c17daf1c7baea0c0651b2fb52478364..0000000000000000000000000000000000000000 --- a/json_examples/screw polygons.json +++ /dev/null @@ -1,1378 +0,0 @@ -{ - "export_version": "0.064", - "framed_nodes": { - "Centers polygons 2": "Frame.003", - "Formula": "Frame.003", - "List Del Levels": "Frame.001", - "List Flip": "Frame.003", - "List Flip.001": "Frame.001", - "List Flip.002": "Frame.002", - "List Length": "Frame.003", - "List Length.001": "Frame.001", - "List Repeater": "Frame.003", - "List Repeater.001": "Frame.001", - "List Slice": "Frame.004", - "List Zip": "Frame.003", - "Polygon Boom": "Frame.003", - "Range Float.003": "Frame.003", - "Range Float.008": "Frame.001", - "Range Float.009": "Frame.001", - "Reroute": "Frame.004", - "Reroute.001": "Frame.004", - "Scale": "Frame.002", - "Sphere": "Frame.004", - "UV Connection": "Frame.002", - "UV Connection.001": "Frame.004", - "Vector Interpolation": "Frame.003", - "Viewer text mk2": "Frame.002", - "Viewer text mk2.001": "Frame.002", - "Viewer text mk2.002": "Frame.001", - "Wifi out": "Frame.001" - }, - "groups": {}, - "nodes": { - "Centers polygons 2": { - "bl_idname": "CentersPolsNodeMK2", - "color": [ - 0.9229861497879028, - 0.6149306297302246, - 0.6149306297302246 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -17.857589721679688, - -78.90750122070312 - ], - "params": {}, - "width": 140.0 - }, - "Float": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "angle_start", - "location": [ - -1077.352783203125, - -590.8798217773438 - ], - "params": { - "float_": 0.0 - }, - "width": 140.0 - }, - "Float.001": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "scale_start", - "location": [ - -1078.2808837890625, - -421.2545471191406 - ], - "params": { - "float_": 0.009999999776482582 - }, - "width": 140.0 - }, - "Float.002": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "scale_end", - "location": [ - -1073.123779296875, - -522.144775390625 - ], - "params": { - "float_": 1.0 - }, - "width": 140.0 - }, - "Float.003": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "height", - "location": [ - -1074.982177734375, - -765.91015625 - ], - "params": { - "float_": 0.43699997663497925 - }, - "width": 140.0 - }, - "Float.004": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "angle_end", - "location": [ - -1098.7232666015625, - -679.46337890625 - ], - "params": { - "float_": 180.0 - }, - "width": 140.0 - }, - "Formula": { - "bl_idname": "Formula2Node", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 198.7622833251953, - -80.341796875 - ], - "params": { - "formula": "(x*n[1]+n[0])" - }, - "width": 140.0 - }, - "Frame.001": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 430.897705078125, - "hide": false, - "label": "for rotation", - "location": [ - -107.79706573486328, - 90.00735473632812 - ], - "params": {}, - "width": 895.9947509765625 - }, - "Frame.002": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 611.4412841796875, - "hide": false, - "label": "scale", - "location": [ - 835.1973876953125, - 196.45486450195312 - ], - "params": {}, - "width": 776.3477783203125 - }, - "Frame.003": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 705.416748046875, - "hide": false, - "label": "forscale", - "location": [ - 14.123897552490234, - -303.15948486328125 - ], - "params": {}, - "width": 848.2998046875 - }, - "Frame.004": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 303.8734436035156, - "hide": false, - "label": "object (any)", - "location": [ - 0.0, - 60.0 - ], - "params": {}, - "width": 685.1151123046875 - }, - "Int": { - "bl_idname": "IntegerNode", - "color": [ - 0.9962430000305176, - 0.9812150001525879, - 0.9812150001525879 - ], - "height": 100.0, - "hide": false, - "label": "scalesN", - "location": [ - -1072.789306640625, - -325.59588623046875 - ], - "params": { - "int_": 40 - }, - "width": 140.0 - }, - "List Del Levels": { - "bl_idname": "ListLevelsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1999.1678466796875, - -761.188720703125 - ], - "params": { - "Sverch_LisLev": "1" - }, - "width": 140.0 - }, - "List Flip": { - "bl_idname": "ListFlipNode", - "color": [ - 0.9711484313011169, - 0.8557422161102295, - 0.8557422161102295 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 178.34597778320312, - 42.576202392578125 - ], - "params": { - "level": 1 - }, - "width": 136.838623046875 - }, - "List Flip.001": { - "bl_idname": "ListFlipNode", - "color": [ - 0.9714075326919556, - 0.8570376634597778, - 0.8570376634597778 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1666.7308349609375, - -836.1943359375 - ], - "params": { - "level": 1 - }, - "width": 140.0 - }, - "List Flip.002": { - "bl_idname": "ListFlipNode", - "color": [ - 0.9714075326919556, - 0.8570376634597778, - 0.8570376634597778 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -514.1424560546875, - -574.5889892578125 - ], - "params": { - "level": 0 - }, - "width": 140.0 - }, - "List Length": { - "bl_idname": "ListLengthNode", - "color": [ - 0.9762593507766724, - 0.8812966346740723, - 0.8812966346740723 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 181.25640869140625, - -475.63873291015625 - ], - "params": { - "level": 0 - }, - "width": 140.0 - }, - "List Length.001": { - "bl_idname": "ListLengthNode", - "color": [ - 0.9741677045822144, - 0.870838463306427, - 0.870838463306427 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1489.5440673828125, - -833.6197509765625 - ], - "params": { - "level": 2 - }, - "width": 140.0 - }, - "List Modifier": { - "bl_idname": "SvListModifierNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2450.039306640625, - -132.4490966796875 - ], - "params": { - "func_": "Set", - "listify": 1 - }, - "width": 140.0 - }, - "List Repeater": { - "bl_idname": "ListRepeaterNode", - "color": [ - 0.9548801779747009, - 0.7744010090827942, - 0.7744010090827942 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 389.9644470214844, - -246.38006591796875 - ], - "params": { - "level": 1, - "unwrap": 1 - }, - "width": 140.0 - }, - "List Repeater.001": { - "bl_idname": "ListRepeaterNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1839.46875, - -715.2293701171875 - ], - "params": { - "level": 2, - "unwrap": 0 - }, - "width": 140.0 - }, - "List Slice": { - "bl_idname": "ListSliceNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -1291.222900390625, - -80.84121704101562 - ], - "params": { - "level": 1, - "start": 1, - "stop": -1 - }, - "width": 140.0 - }, - "List Zip": { - "bl_idname": "ZipNode", - "color": [ - 0.9426245093345642, - 0.7131224870681763, - 0.7131224870681763 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 414.3797912597656, - -81.057861328125 - ], - "params": {}, - "width": 140.0 - }, - "Mesh Join": { - "bl_idname": "SvMeshJoinNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2883.31787109375, - -119.15194702148438 - ], - "params": {}, - "width": 140.0 - }, - "Polygon Boom": { - "bl_idname": "PolygonBoomNode", - "color": [ - 0.9469703435897827, - 0.7348516583442688, - 0.7348516583442688 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -14.96511459350586, - -491.58624267578125 - ], - "params": {}, - "width": 140.0 - }, - "Range Float.001": { - "bl_idname": "SvGenFloatRange", - "color": [ - 0.979042649269104, - 0.89521324634552, - 0.89521324634552 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -653.776611328125, - -163.108642578125 - ], - "params": { - "count_": 2, - "mode": "FRANGE_COUNT", - "start_": 0.0, - "stop_": 1.0 - }, - "width": 140.0 - }, - "Range Float.003": { - "bl_idname": "SvGenFloatRange", - "color": [ - 0.983756959438324, - 0.9187846779823303, - 0.9187846779823303 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 189.27023315429688, - -299.61212158203125 - ], - "params": { - "count_": 2, - "mode": "FRANGE_COUNT", - "start_": 1.0, - "stop_": 0.10000000149011612 - }, - "width": 140.0 - }, - "Range Float.008": { - "bl_idname": "SvGenFloatRange", - "color": [ - 0.9851450324058533, - 0.9257251620292664, - 0.9257251620292664 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1500.44189453125, - -684.276611328125 - ], - "params": { - "count_": 2, - "mode": "FRANGE_COUNT", - "start_": 39.0, - "stop_": 39.119998931884766 - }, - "width": 140.0 - }, - "Range Float.009": { - "bl_idname": "SvGenFloatRange", - "color": [ - 0.955077588558197, - 0.7753879427909851, - 0.7753879427909851 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1683.16064453125, - -682.8990478515625 - ], - "params": { - "count_": 2, - "mode": "FRANGE_COUNT", - "start_": 0.0, - "stop_": 0.0 - }, - "width": 140.0 - }, - "Recalc normals": { - "bl_idname": "SvRecalcNormalsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 3309.458984375, - -57.703617095947266 - ], - "params": { - "invert": 0 - }, - "width": 140.0 - }, - "Remove Doubles": { - "bl_idname": "SvRemoveDoublesNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2723.156982421875, - 260.10382080078125 - ], - "params": {}, - "width": 140.0 - }, - "Remove Doubles.001": { - "bl_idname": "SvRemoveDoublesNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 3087.817138671875, - -116.25629425048828 - ], - "params": {}, - "width": 140.0 - }, - "Reroute": { - "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -849.7806396484375, - -231.2347412109375 - ], - "params": {}, - "width": 16.0 - }, - "Reroute.001": { - "bl_idname": "NodeReroute", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -851.5127563476562, - -267.31475830078125 - ], - "params": {}, - "width": 16.0 - }, - "Rotation": { - "bl_idname": "SvRotationNode", - "color": [ - 0.800000011920929, - 0.0, - 0.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2078.553466796875, - -29.47132682800293 - ], - "params": {}, - "width": 140.0 - }, - "Scale": { - "bl_idname": "SvScaleNode", - "color": [ - 0.8730758428573608, - 0.3653790354728699, - 0.3653790354728699 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -725.44775390625, - -592.1306762695312 - ], - "params": { - "Separate": 1 - }, - "width": 140.0 - }, - "Sphere": { - "bl_idname": "SphereNode", - "color": [ - 0.9200000166893005, - 0.9200000166893005, - 0.9200000166893005 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -1466.895751953125, - -31.441314697265625 - ], - "params": { - "Separate": 1, - "U_": 6, - "V_": 6 - }, - "width": 140.0 - }, - "UV Connection": { - "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.935479998588562, - 0.6774001121520996, - 0.6774001121520996 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -251.719970703125, - -441.3834228515625 - ], - "params": { - "cicl_check_U": 1, - "cicl_check_V": 0, - "cup_U": 0, - "cup_V": 0, - "dir_check": "V_dir", - "polygons": "Pols", - "slice_check": 0 - }, - "width": 140.0 - }, - "UV Connection.001": { - "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -1111.032958984375, - -36.157989501953125 - ], - "params": { - "cicl_check_U": 0, - "cicl_check_V": 1, - "slice_check": 0 - }, - "width": 140.0 - }, - "Vector Interpolation": { - "bl_idname": "SvInterpolationNode", - "color": [ - 1.0, - 0.30000001192092896, - 0.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 630.4421997070312, - -97.771240234375 - ], - "params": { - "mode": "SPL" - }, - "width": 140.0 - }, - "Viewer BMeshMK2": { - "bl_idname": "SvBmeshViewerNodeMK2", - "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 3529.458984375, - -12.792967796325684 - ], - "params": { - "activate": 1, - "autosmooth": 0, - "basemesh_name": "EGAL", - "hide": 1 - }, - "width": 140.0 - }, - "Viewer Draw": { - "bl_idname": "ViewerNode2", - "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -586.8624267578125, - 321.6058349609375 - ], - "params": { - "activate": 0, - "display_edges": 0, - "display_verts": 0, - "face_colors": [ - 0.6998939514160156, - 0.8990001082420349, - 0.7329707145690918 - ], - "shading": 1 - }, - "width": 140.0 - }, - "Viewer Draw.001": { - "bl_idname": "ViewerNode2", - "color": [ - 0.9392836689949036, - 0.6964183449745178, - 0.6964183449745178 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2277.925537109375, - 193.25106811523438 - ], - "params": { - "activate": 0, - "display_edges": 0, - "display_verts": 0, - "face_colors": [ - 0.7545663118362427, - 0.8990001082420349, - 0.7892956137657166 - ], - "shading": 1 - }, - "width": 140.0 - }, - "Viewer Index": { - "bl_idname": "IndexViewerNode", - "color": [ - 0.6284880042076111, - 0.931007981300354, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2279.287109375, - -59.97254180908203 - ], - "params": { - "activate": 0 - }, - "width": 140.0 - }, - "Viewer text mk2": { - "bl_idname": "ViewerNodeTextMK2", - "color": [ - 0.5, - 0.5, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -149.0999755859375, - -182.01351928710938 - ], - "params": {}, - "width": 140.0 - }, - "Viewer text mk2.001": { - "bl_idname": "ViewerNodeTextMK2", - "color": [ - 0.5, - 0.5, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -330.6512451171875, - -186.24267578125 - ], - "params": {}, - "width": 140.0 - }, - "Viewer text mk2.002": { - "bl_idname": "ViewerNodeTextMK2", - "color": [ - 0.5, - 0.5, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2184.52734375, - -677.109619140625 - ], - "params": {}, - "width": 140.0 - }, - "Viewer text mk2.003": { - "bl_idname": "ViewerNodeTextMK2", - "color": [ - 0.5, - 0.5, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 2971.70849609375, - 212.8263397216797 - ], - "params": {}, - "width": 140.0 - }, - "Wifi in": { - "bl_idname": "WifiInNode", - "color": [ - 0.602957010269165, - 0.6740000247955322, - 0.5642769932746887 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -883.2945556640625, - -344.5702209472656 - ], - "params": { - "base_name": "a", - "var_name": "a" - }, - "width": 140.0 - }, - "Wifi out": { - "bl_idname": "WifiOutNode", - "color": [ - 0.602957010269165, - 0.6740000247955322, - 0.5642769932746887 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1488.5325927734375, - -948.2257080078125 - ], - "params": { - "var_name": "a" - }, - "width": 140.0 - } - }, - "update_lists": [ - [ - "Float", - "Float", - "Range Float.008", - "Start" - ], - [ - "Float", - "Float", - "Range Float.008", - "Step" - ], - [ - "Int", - "Integer", - "Range Float.008", - "Stop" - ], - [ - "Int", - "Integer", - "Wifi in", - "a[0]" - ], - [ - "Float.004", - "Float", - "Range Float.009", - "Start" - ], - [ - "Range Float.008", - "Range", - "Range Float.009", - "Step" - ], - [ - "Wifi out", - "a[0]", - "Range Float.009", - "Stop" - ], - [ - "Sphere", - "Vertices", - "List Slice", - "Data" - ], - [ - "List Slice", - "Slice", - "UV Connection.001", - "vertices" - ], - [ - "UV Connection.001", - "data", - "Reroute.001", - "Input" - ], - [ - "Reroute.001", - "Output", - "List Length.001", - "Data" - ], - [ - "List Length.001", - "Length", - "List Flip.001", - "data" - ], - [ - "Range Float.009", - "Range", - "List Repeater.001", - "Data" - ], - [ - "List Flip.001", - "data", - "List Repeater.001", - "Number" - ], - [ - "List Repeater.001", - "Data", - "List Del Levels", - "data" - ], - [ - "UV Connection.001", - "vertices", - "Reroute", - "Input" - ], - [ - "Reroute", - "Output", - "Polygon Boom", - "vertices" - ], - [ - "Reroute.001", - "Output", - "Polygon Boom", - "edg_pol" - ], - [ - "Int", - "Integer", - "Range Float.001", - "Stop" - ], - [ - "Reroute", - "Output", - "Centers polygons 2", - "Vertices" - ], - [ - "Reroute.001", - "Output", - "Centers polygons 2", - "Polygons" - ], - [ - "Centers polygons 2", - "Origins", - "List Zip", - "data 1" - ], - [ - "List Zip", - "data", - "Vector Interpolation", - "Vertices" - ], - [ - "Range Float.001", - "Range", - "Vector Interpolation", - "Interval" - ], - [ - "Centers polygons 2", - "Normals", - "List Flip", - "data" - ], - [ - "Float.001", - "Float", - "Range Float.003", - "Start" - ], - [ - "Float.002", - "Float", - "Range Float.003", - "Step" - ], - [ - "Int", - "Integer", - "Range Float.003", - "Stop" - ], - [ - "Polygon Boom", - "vertices", - "List Length", - "Data" - ], - [ - "Range Float.003", - "Range", - "List Repeater", - "Data" - ], - [ - "List Length", - "Length", - "List Repeater", - "Number" - ], - [ - "Polygon Boom", - "vertices", - "Scale", - "Vertices" - ], - [ - "Vector Interpolation", - "Vertices", - "Scale", - "Center" - ], - [ - "List Repeater", - "Data", - "Scale", - "Factor" - ], - [ - "Scale", - "Vertices", - "List Flip.002", - "data" - ], - [ - "List Flip.002", - "data", - "UV Connection", - "vertices" - ], - [ - "UV Connection", - "vertices", - "Rotation", - "Vertices" - ], - [ - "Vector Interpolation", - "Vertices", - "Rotation", - "Center" - ], - [ - "List Flip", - "data", - "Rotation", - "Axis" - ], - [ - "List Del Levels", - "data", - "Rotation", - "Angle" - ], - [ - "Rotation", - "Vertices", - "Viewer Draw.001", - "vertices" - ], - [ - "UV Connection", - "data", - "Viewer Draw.001", - "edg_pol" - ], - [ - "Rotation", - "Vertices", - "Mesh Join", - "Vertices" - ], - [ - "UV Connection", - "data", - "Mesh Join", - "PolyEdge" - ], - [ - "Mesh Join", - "Vertices", - "Remove Doubles.001", - "Vertices" - ], - [ - "Mesh Join", - "PolyEdge", - "Remove Doubles.001", - "PolyEdge" - ], - [ - "UV Connection", - "data", - "List Modifier", - "Data1" - ], - [ - "List Flip.002", - "data", - "Viewer text mk2.001", - "vertices" - ], - [ - "Remove Doubles.001", - "Vertices", - "Recalc normals", - "Vertices" - ], - [ - "Remove Doubles.001", - "Polygons", - "Recalc normals", - "Polygons" - ], - [ - "List Modifier", - "Result", - "Viewer text mk2.003", - "edg_pol" - ], - [ - "Rotation", - "Vertices", - "Viewer Index", - "vertices" - ], - [ - "Reroute", - "Output", - "Viewer Draw", - "vertices" - ], - [ - "Reroute.001", - "Output", - "Viewer Draw", - "edg_pol" - ], - [ - "Recalc normals", - "Vertices", - "Viewer BMeshMK2", - "vertices" - ], - [ - "Recalc normals", - "Polygons", - "Viewer BMeshMK2", - "faces" - ], - [ - "List Del Levels", - "data", - "Viewer text mk2.002", - "edg_pol" - ], - [ - "Rotation", - "Vertices", - "Remove Doubles", - "Vertices" - ], - [ - "UV Connection", - "data", - "Remove Doubles", - "PolyEdge" - ], - [ - "Centers polygons 2", - "Normals", - "Formula", - "X" - ], - [ - "Centers polygons 2", - "Origins", - "Formula", - "n[0]" - ], - [ - "Float.003", - "Float", - "Formula", - "n[1]" - ], - [ - "UV Connection", - "data", - "Viewer text mk2", - "edg_pol" - ] - ] -} \ No newline at end of file diff --git a/json_examples/wall_from_profile_node.json b/json_examples/wall_from_profile_node.json deleted file mode 100644 index d8453d6c0c358293d3a361600c5a549ae5460fcd..0000000000000000000000000000000000000000 --- a/json_examples/wall_from_profile_node.json +++ /dev/null @@ -1,660 +0,0 @@ -{ - "export_version": "0.065", - "framed_nodes": { - "Extrude Edges": "Frame.001", - "Matrix in.001": "Frame.001", - "Matrix value input.001": "Frame.001", - "Recalc Normals": "Frame.001", - "Solidify": "Frame.001", - "Solidify.001": "Frame.001", - "Solidify.002": "Frame.001", - "Solidify.003": "Frame.001", - "UV Connect": "Frame", - "Vectors in": "Frame.001", - "Viewer Draw2.002": "Frame.001", - "Viewer Draw2.003": "Frame.001", - "Viewer Draw2.004": "Frame.001" - }, - "groups": {}, - "nodes": { - "Extrude Edges": { - "bl_idname": "SvExtrudeEdgesNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -1336.33935546875, - -2123.820556640625 - ], - "params": {}, - "width": 140.0 - }, - "Float": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "\u043e\u0441\u044c \u0432\u043d\u0443\u0442\u0440\u044c", - "location": [ - -553.684326171875, - 152.5745849609375 - ], - "params": { - "float_": 1.0, - "maxim": 1.0, - "minim": 0.009999999776482582 - }, - "width": 140.0 - }, - "Float.001": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "\u0441\u043b\u043e\u0439 \u0443\u0442\u0435\u043f\u043b\u0438\u0442\u0435\u043b\u044c", - "location": [ - -283.1075134277344, - 71.70278930664062 - ], - "params": { - "float_": 0.10000000149011612, - "maxim": 1.0, - "minim": 0.009999999776482582 - }, - "width": 140.0 - }, - "Float.002": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "\u0441\u043b\u043e\u0439 \u043a\u0438\u0440\u043f\u0438\u0447", - "location": [ - -554.4776611328125, - -10.759448051452637 - ], - "params": { - "float_": 0.25, - "maxim": 1.0, - "minim": 0.009999999776482582 - }, - "width": 140.0 - }, - "Float.003": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "\u0441\u043b\u043e\u0439 \u043e\u0431\u043b\u0438\u0446\u043e\u0432\u043a\u0430", - "location": [ - -287.23260498046875, - -111.17338562011719 - ], - "params": { - "float_": 0.05000000074505806, - "maxim": 1.0, - "minim": 0.009999999776482582 - }, - "width": 140.0 - }, - "Float.004": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "\u0432\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0435\u043d\u044b", - "location": [ - -563.703369140625, - -157.91696166992188 - ], - "params": { - "float_": 3.0 - }, - "width": 140.0 - }, - "Frame": { - "bl_idname": "NodeFrame", - "color": [ - 0.800000011920929, - 0.0, - 0.0 - ], - "height": 281.1405029296875, - "hide": false, - "label": "Deprecated node!", - "location": [ - 0.0, - 0.0 - ], - "params": {}, - "width": 200.0 - }, - "Frame.001": { - "bl_idname": "NodeFrame", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 706.0550537109375, - "hide": false, - "label": "\u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u044d\u043a\u0441\u0442\u0440\u0443\u0434\u0430 2", - "location": [ - 1726.93994140625, - 2135.2373046875 - ], - "params": {}, - "width": 1697.931640625 - }, - "Matrix in.001": { - "bl_idname": "SvMatrixGenNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -1381.204833984375, - -2475.005126953125 - ], - "params": {}, - "width": 140.0 - }, - "Matrix value input.001": { - "bl_idname": "SvMatrixValueIn", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -935.1618041992188, - -2425.7939453125 - ], - "params": { - "matrix": [ - 1.0, - 0.0, - 0.0, - 0.0, - 0.0, - 1.0, - 0.0, - 0.0, - 0.0, - 0.0, - 1.0, - 0.0, - 0.0, - -6.0, - 0.0, - 1.0 - ] - }, - "width": 300.0 - }, - "Profile Parametric": { - "bl_idname": "SvProfileNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -580.0276489257812, - -336.1799621582031 - ], - "params": { - "filename": "Untitled" - }, - "width": 140.0 - }, - "Recalc Normals": { - "bl_idname": "SvRecalcNormalsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - -1144.507080078125, - -2139.140625 - ], - "params": {}, - "width": 140.0 - }, - "Solidify": { - "bl_idname": "SvSolidifyNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -1010.613525390625, - -2118.715087890625 - ], - "params": {}, - "width": 140.0 - }, - "Solidify.001": { - "bl_idname": "SvSolidifyNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -811.0554809570312, - -2096.688232421875 - ], - "params": { - "thickness": 0.05000000074505806 - }, - "width": 140.0 - }, - "Solidify.002": { - "bl_idname": "SvSolidifyNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -543.9304809570312, - -2307.517822265625 - ], - "params": { - "thickness": -0.25 - }, - "width": 140.0 - }, - "Solidify.003": { - "bl_idname": "SvSolidifyNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -287.80474853515625, - -2479.01318359375 - ], - "params": { - "thickness": 0.10000000149011612 - }, - "width": 140.0 - }, - "UV Connect": { - "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -301.9100646972656, - -308.8594970703125 - ], - "params": { - "cicl_check_U": 1, - "polygons": "Edges" - }, - "width": 140.0 - }, - "Vectors in": { - "bl_idname": "GenVectorsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -1526.821533203125, - -2483.78271484375 - ], - "params": {}, - "width": 100.0 - }, - "Viewer Draw2.002": { - "bl_idname": "ViewerNode2", - "color": [ - 1.0, - 0.30000001192092896, - 0.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -437.43414306640625, - -2007.1822509765625 - ], - "params": { - "activate": 1, - "display_edges": 0, - "display_verts": 0, - "face_colors": [ - 0.8989997506141663, - 0.8570301532745361, - 0.25614964962005615 - ], - "shading": 1, - "transparant": 0 - }, - "width": 140.0 - }, - "Viewer Draw2.003": { - "bl_idname": "ViewerNode2", - "color": [ - 1.0, - 0.30000001192092896, - 0.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -233.16204833984375, - -2151.9306640625 - ], - "params": { - "activate": 1, - "display_edges": 0, - "display_verts": 0, - "face_colors": [ - 0.8990000486373901, - 0.3114989101886749, - 0.10309059917926788 - ], - "shading": 1, - "transparant": 0 - }, - "width": 140.0 - }, - "Viewer Draw2.004": { - "bl_idname": "ViewerNode2", - "color": [ - 1.0, - 0.30000001192092896, - 0.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -28.889892578125, - -2304.546142578125 - ], - "params": { - "activate": 1, - "display_edges": 0, - "display_verts": 0, - "face_colors": [ - 0.07550612837076187, - 0.8990000486373901, - 0.8990000486373901 - ], - "shading": 1, - "transparant": 0 - }, - "width": 140.0 - }, - "function": { - "bl_idname": "ScalarMathNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - -250.11004638671875, - 125.57858276367188 - ], - "params": { - "items_": "NEG" - }, - "width": 140.0 - } - }, - "update_lists": [ - [ - "Float", - 0, - "function", - 0 - ], - [ - "Float.004", - 0, - "Vectors in", - 2 - ], - [ - "Vectors in", - 0, - "Matrix in.001", - 0 - ], - [ - "Profile Parametric", - 0, - "UV Connect", - 0 - ], - [ - "UV Connect", - 0, - "Extrude Edges", - 0 - ], - [ - "UV Connect", - 1, - "Extrude Edges", - 1 - ], - [ - "Matrix in.001", - 0, - "Extrude Edges", - 2 - ], - [ - "Extrude Edges", - 0, - "Recalc Normals", - 0 - ], - [ - "Extrude Edges", - 5, - "Recalc Normals", - 2 - ], - [ - "function", - 0, - "Solidify", - 0 - ], - [ - "Recalc Normals", - 0, - "Solidify", - 1 - ], - [ - "Recalc Normals", - 2, - "Solidify", - 2 - ], - [ - "Float.001", - 0, - "Solidify.001", - 0 - ], - [ - "Solidify", - 0, - "Solidify.001", - 1 - ], - [ - "Solidify", - 3, - "Solidify.001", - 2 - ], - [ - "Float.002", - 0, - "Solidify.002", - 0 - ], - [ - "Solidify.001", - 0, - "Solidify.002", - 1 - ], - [ - "Solidify.001", - 3, - "Solidify.002", - 2 - ], - [ - "Solidify.001", - 0, - "Viewer Draw2.002", - 0 - ], - [ - "Solidify.001", - 2, - "Viewer Draw2.002", - 1 - ], - [ - "Matrix value input.001", - 0, - "Viewer Draw2.002", - 2 - ], - [ - "Solidify.002", - 0, - "Viewer Draw2.003", - 0 - ], - [ - "Solidify.002", - 2, - "Viewer Draw2.003", - 1 - ], - [ - "Matrix value input.001", - 0, - "Viewer Draw2.003", - 2 - ], - [ - "Float.003", - 0, - "Solidify.003", - 0 - ], - [ - "Solidify.002", - 0, - "Solidify.003", - 1 - ], - [ - "Solidify.002", - 3, - "Solidify.003", - 2 - ], - [ - "Solidify.003", - 0, - "Viewer Draw2.004", - 0 - ], - [ - "Solidify.003", - 2, - "Viewer Draw2.004", - 1 - ], - [ - "Matrix value input.001", - 0, - "Viewer Draw2.004", - 2 - ] - ] -} \ No newline at end of file diff --git a/json_examples/wingflap4.json b/json_examples/wingflap4.json deleted file mode 100644 index a3aea7cbdd4a23ecff1bfe9b1042c5eb9991369b..0000000000000000000000000000000000000000 --- a/json_examples/wingflap4.json +++ /dev/null @@ -1,924 +0,0 @@ -{ - "export_version": "0.065", - "framed_nodes": {}, - "groups": {}, - "nodes": { - "Apply matrix for vectors": { - "bl_idname": "MatrixApplyNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 222.52587890625, - 184.57174682617188 - ], - "params": {}, - "width": 140.0 - }, - "Float": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -611.575439453125, - 340.2852783203125 - ], - "params": { - "float_": -2.8999996185302734 - }, - "width": 140.0 - }, - "Float.001": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -611.5811767578125, - 261.9651184082031 - ], - "params": { - "float_": -11.029999732971191 - }, - "width": 140.0 - }, - "Float.002": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -610.4056396484375, - 183.64495849609375 - ], - "params": { - "float_": -13.309999465942383 - }, - "width": 140.0 - }, - "Float.003": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -612.7447509765625, - 107.66273498535156 - ], - "params": { - "float_": -6.979999542236328 - }, - "width": 140.0 - }, - "Float.004": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -613.914794921875, - 31.68049430847168 - ], - "params": { - "float_": -6.5 - }, - "width": 140.0 - }, - "Float.005": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -616.2547607421875, - -41.96382522583008 - ], - "params": { - "float_": 0.6700001955032349 - }, - "width": 140.0 - }, - "Float.006": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -615.0845336914062, - -134.31146240234375 - ], - "params": { - "float_": -11.899999618530273 - }, - "width": 140.0 - }, - "Float.007": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -615.084716796875, - -207.9557647705078 - ], - "params": { - "float_": 12.790000915527344 - }, - "width": 140.0 - }, - "Float.008": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -616.2557373046875, - -280.43115234375 - ], - "params": { - "float_": -0.8600001931190491 - }, - "width": 140.0 - }, - "Float.009": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -617.42431640625, - -357.58233642578125 - ], - "params": { - "float_": 5.289999961853027 - }, - "width": 140.0 - }, - "Float.010": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -616.25537109375, - -432.3956298828125 - ], - "params": { - "float_": 0.0 - }, - "width": 140.0 - }, - "Float.011": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -616.2548828125, - -503.7020263671875 - ], - "params": { - "float_": 2.3999998569488525 - }, - "width": 140.0 - }, - "Float.012": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -47.03376770019531, - 69.18597412109375 - ], - "params": { - "float_": -17.09000587463379 - }, - "width": 140.0 - }, - "Float.013": { - "bl_idname": "FloatNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1026.073486328125, - -207.22750854492188 - ], - "params": { - "float_": 2.409998893737793 - }, - "width": 140.0 - }, - "Frame info": { - "bl_idname": "SvFrameInfoNodeMK2", - "color": [ - 0.904932975769043, - 1.0, - 0.883421003818512 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -225.56858825683594, - -246.8809814453125 - ], - "params": {}, - "width": 140.0 - }, - "Hilbert3d": { - "bl_idname": "Hilbert3dNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 572.3404541015625, - 86.20455932617188 - ], - "params": { - "level_": 2, - "size_": 1.7799999713897705 - }, - "width": 140.0 - }, - "List Join": { - "bl_idname": "ListJoinNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 567.9996337890625, - 250.34652709960938 - ], - "params": { - "JoinLevel": 1, - "mix_check": 0, - "wrap_check": 1 - }, - "width": 138.83123779296875 - }, - "Matrix in.002": { - "bl_idname": "SvMatrixGenNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 124.9376449584961, - 368.76513671875 - ], - "params": {}, - "width": 140.0 - }, - "Matrix in.003": { - "bl_idname": "SvMatrixGenNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1419.578369140625, - 77.13043212890625 - ], - "params": {}, - "width": 140.0 - }, - "Mesh Join": { - "bl_idname": "SvMeshJoinNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 727.7837524414062, - 249.87185668945312 - ], - "params": {}, - "width": 140.0 - }, - "Profile Parametric": { - "bl_idname": "SvProfileNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -254.4011688232422, - 301.156982421875 - ], - "params": { - "filename": "Untitled" - }, - "width": 140.0 - }, - "UV Connect": { - "bl_idname": "LineConnectNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": true, - "label": "", - "location": [ - 579.5027465820312, - 172.8821563720703 - ], - "params": { - "dir_check": "U_dir", - "polygons": "Pols", - "slice_check": 1 - }, - "width": 140.0 - }, - "Vector Interpolation": { - "bl_idname": "SvInterpolationNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 814.2709350585938, - -106.68899536132812 - ], - "params": { - "mode": "SPL" - }, - "width": 140.0 - }, - "Vector Math.002": { - "bl_idname": "SvVectorMathNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 298.9150390625, - 109.23635864257812 - ], - "params": { - "current_op": "COMPONENT-WISE" - }, - "width": 140.0 - }, - "Vector Math.003": { - "bl_idname": "SvVectorMathNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1263.0469970703125, - -55.15971374511719 - ], - "params": { - "current_op": "SCALAR" - }, - "width": 140.0 - }, - "Vector X/Y/Z": { - "bl_idname": "SvAxisInputNodeMK2", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - -51.2587890625, - 182.5716094970703 - ], - "params": { - "axis_x": "0", - "axis_y": "1", - "axis_z": "0" - }, - "width": 100.0 - }, - "Vectors in": { - "bl_idname": "GenVectorsNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 32.57405090332031, - -12.982139587402344 - ], - "params": { - "x_": -1.0, - "y_": 1.0, - "z_": 1.0 - }, - "width": 100.0 - }, - "Viewer Draw2": { - "bl_idname": "ViewerNode2", - "color": [ - 1.0, - 1.0, - 1.0 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 1658.124267578125, - 313.1869201660156 - ], - "params": { - "display_edges": 0, - "display_faces": 1, - "display_verts": 0, - "face_colors": [ - 0.8989997506141663, - 0.8174746632575989, - 0.6698390245437622 - ], - "shading": 1, - "transparant": 0 - }, - "width": 140.0 - }, - "function": { - "bl_idname": "ScalarMathNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 442.9525451660156, - -151.93492126464844 - ], - "params": {}, - "width": 140.0 - }, - "function.001": { - "bl_idname": "ScalarMathNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 90.025146484375, - -177.64346313476562 - ], - "params": { - "items_": "MODULO", - "y": 73.84000396728516 - }, - "width": 140.0 - }, - "function.002": { - "bl_idname": "ScalarMathNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 604.2205810546875, - -99.33208465576172 - ], - "params": { - "items_": "MUL", - "y": 66.00999450683594 - }, - "width": 140.0 - }, - "function.003": { - "bl_idname": "ScalarMathNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 43.26646423339844, - -352.0082092285156 - ], - "params": { - "items_": "SUB" - }, - "width": 140.0 - }, - "function.004": { - "bl_idname": "ScalarMathNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 347.9410400390625, - -329.9779357910156 - ], - "params": { - "items_": "DIV", - "y": 121.62999725341797 - }, - "width": 140.0 - }, - "function.005": { - "bl_idname": "ScalarMathNode", - "color": [ - 0.6079999804496765, - 0.6079999804496765, - 0.6079999804496765 - ], - "height": 100.0, - "hide": false, - "label": "", - "location": [ - 284.01873779296875, - -149.59808349609375 - ], - "params": { - "items_": "DIV", - "y": 1.0 - }, - "width": 140.0 - } - }, - "update_lists": [ - [ - "Float", - 0, - "Profile Parametric", - 0 - ], - [ - "Float.001", - 0, - "Profile Parametric", - 1 - ], - [ - "Float.002", - 0, - "Profile Parametric", - 2 - ], - [ - "Float.003", - 0, - "Profile Parametric", - 3 - ], - [ - "Float.004", - 0, - "Profile Parametric", - 4 - ], - [ - "Float.005", - 0, - "Profile Parametric", - 5 - ], - [ - "Float.006", - 0, - "Profile Parametric", - 6 - ], - [ - "Float.007", - 0, - "Profile Parametric", - 7 - ], - [ - "Float.008", - 0, - "Profile Parametric", - 8 - ], - [ - "Float.009", - 0, - "Profile Parametric", - 9 - ], - [ - "Float.010", - 0, - "Profile Parametric", - 10 - ], - [ - "Frame info", - 2, - "function.003", - 0 - ], - [ - "Frame info", - 1, - "function.003", - 1 - ], - [ - "Frame info", - 0, - "function.001", - 0 - ], - [ - "function.003", - 0, - "function.001", - 1 - ], - [ - "function.001", - 0, - "function.005", - 0 - ], - [ - "function.005", - 0, - "function", - 0 - ], - [ - "function", - 0, - "function.002", - 0 - ], - [ - "function.002", - 0, - "Float.012", - 0 - ], - [ - "Vector X/Y/Z", - 0, - "Matrix in.002", - 2 - ], - [ - "Float.012", - 0, - "Matrix in.002", - 3 - ], - [ - "Profile Parametric", - 0, - "Apply matrix for vectors", - 0 - ], - [ - "Matrix in.002", - 0, - "Apply matrix for vectors", - 1 - ], - [ - "Apply matrix for vectors", - 0, - "Vector Math.002", - 0 - ], - [ - "Vectors in", - 0, - "Vector Math.002", - 1 - ], - [ - "Frame info", - 0, - "function.004", - 0 - ], - [ - "Frame info", - 2, - "function.004", - 1 - ], - [ - "Hilbert3d", - 0, - "Vector Interpolation", - 0 - ], - [ - "function.004", - 0, - "Vector Interpolation", - 1 - ], - [ - "Vector Interpolation", - 0, - "Vector Math.003", - 0 - ], - [ - "Float.013", - 0, - "Vector Math.003", - 1 - ], - [ - "Vector Math.003", - 0, - "Matrix in.003", - 0 - ], - [ - "Apply matrix for vectors", - 0, - "List Join", - 0 - ], - [ - "Vector Math.002", - 0, - "List Join", - 1 - ], - [ - "List Join", - 0, - "UV Connect", - 0 - ], - [ - "UV Connect", - 0, - "Mesh Join", - 0 - ], - [ - "UV Connect", - 1, - "Mesh Join", - 1 - ], - [ - "Mesh Join", - 0, - "Viewer Draw2", - 0 - ], - [ - "Mesh Join", - 1, - "Viewer Draw2", - 1 - ], - [ - "Matrix in.003", - 0, - "Viewer Draw2", - 2 - ] - ] -} \ No newline at end of file diff --git a/old_nodes/__init__.py b/old_nodes/__init__.py index 30223cc57d99abf036d62c73c57e281748553348..9ef080d7cf3a6d8079fe26b02be094ad5df47c17 100644 --- a/old_nodes/__init__.py +++ b/old_nodes/__init__.py @@ -27,6 +27,7 @@ import bpy from sverchok.node_tree import SverchCustomTreeNode from sverchok.utils.sv_oldnodes_parser import get_old_node_bl_idnames +from sverchok.utils.logging import error, exception imported_mods = {} @@ -108,18 +109,23 @@ def register_old(bl_id): if bl_id in old_bl_idnames: mod = importlib.import_module(".{}".format(old_bl_idnames[bl_id]), __name__) res = inspect.getmembers(mod) + # print('mod/res:', mod, res) for name, cls in res: if inspect.isclass(cls): if issubclass(cls, bpy.types.Node) and cls.bl_idname == bl_id: if bl_id not in imported_mods: try: mod.register() - except: - traceback.print_exc() + except Exception as err: + print('failed mod register') + exception(err) + imported_mods[bl_id] = mod return mod - - print("Cannot find {} among old nodes".format(bl_id)) + else: + return imported_mods[bl_id] + + error("Cannot find {} among old nodes".format(bl_id)) return None def unregister_old(bl_id): diff --git a/run_tests_win.bat b/run_tests_win.bat new file mode 100644 index 0000000000000000000000000000000000000000..debddda2dfcd88927347dbe36def58ba2845f1ca --- /dev/null +++ b/run_tests_win.bat @@ -0,0 +1,10 @@ +:: usage +:: PS C:\Users\you\Desktop\GITHUB\sverchok> .\run_tests_win.bat C:\fullpathto\b279\blender.exe + +echo off + +:: blender executable path +set arg1=%1 + +shift +%arg1% -b --addons sverchok --python utils/testing.py --python-exit-code 1