diff --git a/json_examples/Fields/Mesh_Attractor.json b/json_examples/Fields/Mesh_Attractor.json new file mode 100644 index 0000000000000000000000000000000000000000..ca57a3826187c9214abd8488b6d35181a3e095c6 --- /dev/null +++ b/json_examples/Fields/Mesh_Attractor.json @@ -0,0 +1,335 @@ +{ + "export_version": "0.079", + "framed_nodes": {}, + "groups": {}, + "nodes": { + "Apply Field to Surface": { + "bl_idname": "SvExApplyFieldToSurfaceNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 172.9166717529297, + 366.0107421875 + ], + "params": { + "coefficient": 1.0 + }, + "width": 140.0 + }, + "Attractor Field.001": { + "bl_idname": "SvAttractorFieldNodeMk2", + "custom_socket_props": { + "0": { + "prop": [ + 0.0, + 0.0, + 0.0 + ], + "use_prop": true + }, + "1": { + "prop": [ + 0.0, + 0.0, + 1.0 + ], + "use_prop": true + } + }, + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -318.75, + 214.9488067626953 + ], + "params": { + "amplitude": 0.5, + "attractor_type": "Mesh", + "clamp": 0, + "coefficient": 0.5, + "falloff_type": "smooth", + "signed": 0 + }, + "width": 140.0 + }, + "Cylinder": { + "bl_idname": "SvCylinderNodeMK2", + "color": [ + 0.0, + 0.5, + 0.5 + ], + "height": 3.8600001335144043, + "hide": false, + "label": "", + "location": [ + -810.4166870117188, + 366.0107421875 + ], + "params": { + "height": 3.8600001335144043, + "radius_b": 2.0, + "radius_t": 2.990000009536743 + }, + "use_custom_color": true, + "width": 140.0 + }, + "Evaluate Surface": { + "bl_idname": "SvExEvalSurfaceNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 418.75, + 366.0107421875 + ], + "params": { + "samples_u": 100, + "samples_v": 100 + }, + "width": 140.0 + }, + "Plane (Surface)": { + "bl_idname": "SvExPlaneSurfaceNode", + "custom_socket_props": { + "0": { + "prop": [ + 0.0, + 0.0, + 0.0 + ], + "use_prop": true + }, + "1": { + "prop": [ + 1.0, + 0.0, + 0.0 + ], + "use_prop": true + }, + "2": { + "prop": [ + 0.0, + 1.0, + 0.0 + ], + "use_prop": true + }, + "3": { + "prop": [ + 0.0, + 0.0, + 1.0 + ], + "use_prop": true + } + }, + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -72.91667175292969, + 214.13009643554688 + ], + "params": { + "u_max": 5.0, + "u_min": -5.0, + "v_max": 5.0, + "v_min": -5.0 + }, + "width": 140.0 + }, + "Rotate": { + "bl_idname": "SvRotationNodeMk3", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -564.5833129882812, + 366.0107421875 + ], + "params": { + "mode": "EULER", + "x_": 44.909996032714844, + "y_": 31.559999465942383, + "z_": 4.8299994468688965 + }, + "width": 140.0 + }, + "Vector Field Math": { + "bl_idname": "SvExVectorFieldMathNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -72.91667175292969, + 366.0107421875 + ], + "params": { + "operation": "MUL" + }, + "width": 140.0 + }, + "Vector in": { + "bl_idname": "GenVectorsNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -318.75, + 366.0107421875 + ], + "params": { + "z_": 1.0 + }, + "width": 100.0 + }, + "Viewer Draw Mk3": { + "bl_idname": "SvVDExperimental", + "color": [ + 1.0, + 0.30000001192092896, + 0.0 + ], + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 664.5833129882812, + 366.0107421875 + ], + "params": { + "activate": 1, + "display_edges": 1, + "display_verts": 0, + "draw_gl_polygonoffset": 1, + "edge_color": [ + 0.027096865698695183, + 0.048660680651664734, + 0.2568495571613312, + 1.0 + ], + "selected_draw_mode": "facet" + }, + "use_custom_color": true, + "width": 140.0 + }, + "Viewer Draw Mk3.001": { + "bl_idname": "SvVDExperimental", + "color": [ + 1.0, + 0.30000001192092896, + 0.0 + ], + "height": 100.0, + "hide": true, + "label": "", + "location": [ + -339.4540710449219, + 428.6216125488281 + ], + "params": { + "activate": 1, + "display_faces": 0, + "face_color": [ + 0.4342634677886963, + 0.8100003600120544, + 0.7149121165275574, + 1.0 + ], + "selected_draw_mode": "facet" + }, + "use_custom_color": true, + "width": 140.0 + } + }, + "update_lists": [ + [ + "Cylinder", + 0, + "Rotate", + 0 + ], + [ + "Rotate", + 0, + "Attractor Field.001", + 0 + ], + [ + "Cylinder", + 2, + "Attractor Field.001", + 4 + ], + [ + "Vector in", + 0, + "Vector Field Math", + 0 + ], + [ + "Attractor Field.001", + 1, + "Vector Field Math", + 2 + ], + [ + "Vector Field Math", + 0, + "Apply Field to Surface", + 0 + ], + [ + "Plane (Surface)", + 0, + "Apply Field to Surface", + 1 + ], + [ + "Rotate", + 0, + "Viewer Draw Mk3.001", + 0 + ], + [ + "Cylinder", + 1, + "Viewer Draw Mk3.001", + 1 + ], + [ + "Cylinder", + 2, + "Viewer Draw Mk3.001", + 2 + ], + [ + "Apply Field to Surface", + 0, + "Evaluate Surface", + 0 + ], + [ + "Evaluate Surface", + 0, + "Viewer Draw Mk3", + 0 + ], + [ + "Evaluate Surface", + 1, + "Viewer Draw Mk3", + 1 + ], + [ + "Evaluate Surface", + 2, + "Viewer Draw Mk3", + 2 + ] + ] +} \ No newline at end of file diff --git a/json_examples/Fields/Random_Voronoi.json b/json_examples/Fields/Random_Voronoi.json new file mode 100644 index 0000000000000000000000000000000000000000..2c2dc6b2ef20331e5fe207536a71cc54735df687 --- /dev/null +++ b/json_examples/Fields/Random_Voronoi.json @@ -0,0 +1,359 @@ +{ + "export_version": "0.079", + "framed_nodes": {}, + "groups": {}, + "nodes": { + "A Number": { + "bl_idname": "SvNumberNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -434.47662353515625, + -215.14053344726562 + ], + "params": { + "float_": 0.0, + "float_draft_": 0.0, + "int_": 15, + "int_draft_": 0, + "selected_mode": "int" + }, + "width": 140.0 + }, + "A Number.001": { + "bl_idname": "SvNumberNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -907.1671142578125, + -48.4946403503418 + ], + "params": { + "float_": 0.75, + "float_draft_": 0.0, + "int_": 0, + "int_draft_": 0 + }, + "width": 140.0 + }, + "Apply Vector Field": { + "bl_idname": "SvExVectorFieldApplyNode", + "custom_socket_props": { + "1": { + "prop": [ + 0.0, + 0.0, + 0.0 + ], + "use_prop": true + } + }, + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 35.74256134033203, + 66.97238159179688 + ], + "params": { + "coefficient": -0.4700000286102295 + }, + "width": 140.0 + }, + "Cubic Spline": { + "bl_idname": "SvExCubicSplineNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 412.6316833496094, + 22.382421493530273 + ], + "params": {}, + "width": 140.0 + }, + "Evaluate Curve": { + "bl_idname": "SvExEvalCurveNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 603.443603515625, + 37.664676666259766 + ], + "params": { + "sample_size": 50 + }, + "width": 140.0 + }, + "List Split": { + "bl_idname": "SvListSplitNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 221.4541473388672, + 51.82527542114258 + ], + "params": { + "split": 20 + }, + "width": 140.0 + }, + "Matrix In": { + "bl_idname": "SvMatrixInNodeMK4", + "custom_socket_props": { + "1": { + "expanded": true + } + }, + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -959.1124877929688, + 293.1858825683594 + ], + "params": { + "scale": [ + 3.0, + 3.0, + 3.0 + ] + }, + "width": 140.0 + }, + "Noise Vector Field": { + "bl_idname": "SvExNoiseVectorFieldNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -946.8075561523438, + 58.02244186401367 + ], + "params": {}, + "width": 140.0 + }, + "Polyline Viewer": { + "bl_idname": "SvPolylineViewerNodeV28", + "color": [ + 1.0, + 0.30000001192092896, + 0.0 + ], + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 804.1566772460938, + 194.48263549804688 + ], + "params": { + "basedata_name": "RV_Alpha" + }, + "use_custom_color": true, + "width": 140.0 + }, + "Random Vector MK2": { + "bl_idname": "RandomVectorNodeMK2", + "color": [ + 0.0, + 0.5, + 0.5 + ], + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -608.846923828125, + 269.90643310546875 + ], + "params": { + "count_inner": 5, + "scale": 3.0 + }, + "use_custom_color": true, + "width": 140.0 + }, + "Vector Field Math": { + "bl_idname": "SvExVectorFieldMathNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -397.4988098144531, + 89.25181579589844 + ], + "params": { + "operation": "MUL" + }, + "width": 140.0 + }, + "Vector Field Math.001": { + "bl_idname": "SvExVectorFieldMathNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -200.76620483398438, + 117.0380859375 + ], + "params": { + "operation": "ADD" + }, + "width": 140.0 + }, + "Vector Field Math.002": { + "bl_idname": "SvExVectorFieldMathNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -704.4346923828125, + 131.74850463867188 + ], + "params": { + "operation": "COMPOSE" + }, + "width": 140.0 + }, + "Vector P Field": { + "bl_idname": "SvHomogenousVectorField", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -205.94155883789062, + -64.5413818359375 + ], + "params": { + "sizex__": 10.0, + "sizey__": 10.0, + "sizez__": 10.0, + "xdim__": 20, + "ydim__": 20, + "zdim__": 20 + }, + "width": 140.0 + }, + "Voronoi Field": { + "bl_idname": "SvExVoronoiFieldNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -391.8202819824219, + 209.67538452148438 + ], + "params": {}, + "width": 140.0 + } + }, + "update_lists": [ + [ + "A Number", + 0, + "Vector P Field", + 0 + ], + [ + "A Number", + 0, + "Vector P Field", + 1 + ], + [ + "A Number", + 0, + "Vector P Field", + 2 + ], + [ + "Random Vector MK2", + 0, + "Voronoi Field", + 0 + ], + [ + "Matrix In", + 0, + "Vector Field Math.002", + 0 + ], + [ + "Noise Vector Field", + 0, + "Vector Field Math.002", + 1 + ], + [ + "Vector Field Math.002", + 0, + "Vector Field Math", + 0 + ], + [ + "A Number.001", + 0, + "Vector Field Math", + 2 + ], + [ + "Voronoi Field", + 1, + "Vector Field Math.001", + 0 + ], + [ + "Vector Field Math", + 0, + "Vector Field Math.001", + 1 + ], + [ + "Vector Field Math.001", + 0, + "Apply Vector Field", + 0 + ], + [ + "Vector P Field", + 0, + "Apply Vector Field", + 1 + ], + [ + "Apply Vector Field", + 0, + "List Split", + 0 + ], + [ + "A Number", + 0, + "List Split", + 1 + ], + [ + "List Split", + 0, + "Cubic Spline", + 0 + ], + [ + "Cubic Spline", + 0, + "Evaluate Curve", + 0 + ], + [ + "Evaluate Curve", + 0, + "Polyline Viewer", + 0 + ] + ] +} diff --git a/json_examples/Shapes/SverchokLogo.json b/json_examples/Shapes/SverchokLogo.json new file mode 100644 index 0000000000000000000000000000000000000000..1cfda66c1df109cf57761729a0083b426656244a --- /dev/null +++ b/json_examples/Shapes/SverchokLogo.json @@ -0,0 +1,320 @@ +{ + "export_version": "0.079", + "framed_nodes": {}, + "groups": {}, + "nodes": { + "Bezier Spline (Curve)": { + "bl_idname": "SvBezierSplineNode", + "custom_socket_props": { + "0": { + "expanded": true, + "prop": [ + -2.0, + 0.0, + 0.0 + ], + "use_prop": true + }, + "1": { + "expanded": true, + "prop": [ + 5.0, + 0.0, + 0.0 + ], + "use_prop": true + }, + "2": { + "expanded": true, + "prop": [ + 5.0, + 0.0, + 0.0 + ], + "use_prop": true + }, + "3": { + "expanded": true, + "prop": [ + 2.0, + 1.0, + 0.0 + ], + "use_prop": true + } + }, + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -280.6067810058594, + 117.17616271972656 + ], + "params": { + "mode": "3_2pt_tan" + }, + "width": 140.0 + }, + "Circle": { + "bl_idname": "SvCircleNode", + "color": [ + 0.0, + 0.5, + 0.5 + ], + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 303.83038330078125, + 336.7546081542969 + ], + "params": { + "rad_": 2.0, + "vert_": 48 + }, + "use_custom_color": true, + "width": 140.0 + }, + "Crop mesh 2D": { + "bl_idname": "SvCropMesh2D", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 526.4841918945312, + 365.8992004394531 + ], + "params": { + "alg_mode": "Blender", + "mode": "outer" + }, + "width": 140.0 + }, + "Evaluate Curve": { + "bl_idname": "SvExEvalCurveNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -101.39099884033203, + 132.51739501953125 + ], + "params": {}, + "width": 140.0 + }, + "List Input": { + "bl_idname": "SvListInputNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + -470.58099365234375, + -31.22298812866211 + ], + "params": { + "mode": "vector", + "v_int": 2, + "vector_list": [ + 2.0, + 1.0, + 0.0, + 2.0, + -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, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ] + }, + "width": 140.0 + }, + "Mesh Join": { + "bl_idname": "SvMeshJoinNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 118.60899353027344, + 111.95136260986328 + ], + "params": {}, + "width": 140.0 + }, + "Offset line": { + "bl_idname": "SvOffsetLineNode", + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 338.6090087890625, + 123.41402435302734 + ], + "params": { + "offset": 0.10000000149011612 + }, + "width": 140.0 + }, + "Viewer Draw Mk3": { + "bl_idname": "SvVDExperimental", + "color": [ + 1.0, + 0.5889999866485596, + 0.21400000154972076 + ], + "height": 100.0, + "hide": false, + "label": "", + "location": [ + 725.7998657226562, + 396.0020751953125 + ], + "params": { + "activate": 1, + "custom_fragment_shader": "\n uniform float brightness;\n\n in vec3 pos;\n\n void main()\n {\n gl_FragColor = vec4(pos * brightness, 1.0);\n }\n", + "custom_shader_location": "", + "custom_vertex_shader": "\n uniform mat4 viewProjectionMatrix;\n\n in vec3 position;\n out vec3 pos;\n\n void main()\n {\n pos = position;\n gl_Position = viewProjectionMatrix * vec4(position, 1.0f);\n }\n", + "display_edges": 1, + "display_faces": 1, + "display_verts": 0, + "draw_gl_polygonoffset": 1, + "draw_gl_wireframe": 0, + "edge_color": [ + 0.0, + 0.0011443882249295712, + 0.14550375938415527, + 1.0 + ], + "extended_matrix": 0, + "face_color": [ + 0.14000000059604645, + 0.5400000214576721, + 0.8100000023841858, + 1.0 + ], + "handle_concave_quads": 0, + "line_width": 1, + "node_ui_show_attrs_socket": 0, + "point_size": 4.0, + "selected_draw_mode": "facet", + "u_dash_size": 0.11999999731779099, + "u_gap_size": 0.1899999976158142, + "u_resolution": [ + 25.0, + 18.0 + ], + "use_dashed": 0, + "vector_light": [ + 0.20000000298023224, + 0.6000000238418579, + 0.4000000059604645 + ], + "vert_color": [ + 0.800000011920929, + 0.800000011920929, + 0.800000011920929, + 1.0 + ] + }, + "use_custom_color": true, + "width": 140.0 + } + }, + "update_lists": [ + [ + "List Input", + 0, + "Bezier Spline (Curve)", + 3 + ], + [ + "Bezier Spline (Curve)", + 0, + "Evaluate Curve", + 0 + ], + [ + "Evaluate Curve", + 0, + "Mesh Join", + 0 + ], + [ + "Evaluate Curve", + 1, + "Mesh Join", + 1 + ], + [ + "Mesh Join", + 0, + "Offset line", + 0 + ], + [ + "Mesh Join", + 1, + "Offset line", + 1 + ], + [ + "Circle", + 0, + "Crop mesh 2D", + 0 + ], + [ + "Circle", + 2, + "Crop mesh 2D", + 1 + ], + [ + "Offset line", + 0, + "Crop mesh 2D", + 2 + ], + [ + "Offset line", + 1, + "Crop mesh 2D", + 3 + ], + [ + "Crop mesh 2D", + 0, + "Viewer Draw Mk3", + 0 + ], + [ + "Crop mesh 2D", + 1, + "Viewer Draw Mk3", + 2 + ] + ] +} \ No newline at end of file