Skip to content

Commit

Permalink
CNC examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nortikin committed Apr 6, 2022
1 parent 9a0f4fe commit a9a6b0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions json_examples/CNC/CNC_GCODE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"export_version": "1.0", "main_tree": {"nodes": {"Frame.003": {"attributes": {"location": [216.08253479003906, 52.785064697265625], "height": 423.0, "width": 556.0, "color": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], "use_custom_color": true}, "bl_idname": "NodeFrame"}, "Frame": {"attributes": {"location": [-30.0, 10.0], "height": 850.0, "width": 1729.0, "color": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], "use_custom_color": true}, "bl_idname": "NodeFrame"}, "Frame.001": {"attributes": {"location": [-15.753219604492188, -4.261584281921387], "height": 234.00001525878906, "width": 717.0, "color": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], "use_custom_color": true, "parent": {"type": "NODE", "value": "Frame"}}, "bl_idname": "NodeFrame"}, "Frame.002": {"attributes": {"location": [58.654441833496094, 6.672003746032715], "height": 349.0, "width": 715.0, "color": [0.6079999804496765, 0.6079999804496765, 0.6079999804496765], "use_custom_color": true, "parent": {"type": "NODE", "value": "Frame"}}, "bl_idname": "NodeFrame"}, "Viewer Draw": {"attributes": {"location": [675.4964599609375, 424.657470703125], "color": [0.6284880042076111, 0.931007981300354, 1.0], "use_custom_color": true}, "properties": {"display_verts": false}, "inputs": {"Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}, "Edges": {"bl_idname": "SvStringsSocket", "name": "Edges"}, "Polygons": {"bl_idname": "SvStringsSocket", "name": "Polygons"}, "Matrix": {"bl_idname": "SvMatrixSocket", "name": "Matrix"}, "Vector Color": {"bl_idname": "SvColorSocket", "name": "Vector Color", "properties": {"prop_name": "vector_color", "custom_draw": "draw_color_socket"}}, "Edge Color": {"bl_idname": "SvColorSocket", "name": "Edge Color", "properties": {"prop_name": "edge_color", "custom_draw": "draw_color_socket"}}, "Polygon Color": {"bl_idname": "SvColorSocket", "name": "Polygon Color", "properties": {"prop_name": "polygon_color", "custom_draw": "draw_color_socket"}}, "attrs": {"bl_idname": "SvStringsSocket", "name": "attrs", "attributes": {"hide": true}, "properties": {"quick_link_to_node": "SvVDAttrsNodeMk2"}}}, "bl_idname": "SvViewerDrawMk4"}, "Viewer Draw.001": {"attributes": {"location": [671.7145385742188, 91.77857208251953], "color": [0.6284880042076111, 0.931007981300354, 1.0], "use_custom_color": true}, "properties": {"edge_color": [0.0, 0.8999999165534973, 0.004065013490617275, 1.0], "display_verts": false}, "inputs": {"Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}, "Edges": {"bl_idname": "SvStringsSocket", "name": "Edges"}, "Polygons": {"bl_idname": "SvStringsSocket", "name": "Polygons"}, "Matrix": {"bl_idname": "SvMatrixSocket", "name": "Matrix"}, "Vector Color": {"bl_idname": "SvColorSocket", "name": "Vector Color", "properties": {"prop_name": "vector_color", "custom_draw": "draw_color_socket"}}, "Edge Color": {"bl_idname": "SvColorSocket", "name": "Edge Color", "properties": {"prop_name": "edge_color", "custom_draw": "draw_color_socket"}}, "Polygon Color": {"bl_idname": "SvColorSocket", "name": "Polygon Color", "properties": {"prop_name": "polygon_color", "custom_draw": "draw_color_socket"}}, "attrs": {"bl_idname": "SvStringsSocket", "name": "attrs", "attributes": {"hide": true}, "properties": {"quick_link_to_node": "SvVDAttrsNodeMk2"}}}, "bl_idname": "SvViewerDrawMk4"}, "Export Gcode.001": {"attributes": {"location": [370.1159973144531, 341.272216796875]}, "properties": {"feed": 962, "filament": 1.659999966621399, "nozzle": 0.2800000011920929}, "inputs": {"Layer Height": {"bl_idname": "SvStringsSocket", "name": "Layer Height"}, "Flow Mult": {"bl_idname": "SvStringsSocket", "name": "Flow Mult"}, "Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}}, "outputs": {"Info": {"bl_idname": "SvStringsSocket", "name": "Info"}, "Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}, "Printed Edges": {"bl_idname": "SvStringsSocket", "name": "Printed Edges"}, "Travel Edges": {"bl_idname": "SvStringsSocket", "name": "Travel Edges"}}, "bl_idname": "SvExportGcodeNode"}, "Stethoscope MK2": {"attributes": {"location": [665.037353515625, 637.7021484375], "color": [1.0, 0.8993440270423889, 0.9742509722709656], "use_custom_color": true}, "properties": {"text_color": [0.949999988079071, 0.949999988079071, 0.949999988079071], "location_theta": 1.0, "num_elements": 68}, "inputs": {"Data": {"bl_idname": "SvStringsSocket", "name": "Data"}}, "bl_idname": "SvStethoscopeNodeMK2"}, "Number Range": {"attributes": {"location": [138.26295471191406, 293.24029541015625], "parent": {"type": "NODE", "value": "Frame.003"}}, "properties": {"range_mode": "RANGE_COUNT", "current_mode": "RANGE_COUNT", "stop_float": 0.7899999618530273, "start_float": 0.5}, "inputs": {"Start": {"bl_idname": "SvStringsSocket", "name": "Start", "properties": {"prop_name": "start_float"}}, "Step": {"bl_idname": "SvStringsSocket", "name": "Step", "properties": {"prop_name": "stop_float", "label": "stop"}}, "Stop": {"bl_idname": "SvStringsSocket", "name": "Stop", "properties": {"prop_name": "count_", "label": "count"}}}, "outputs": {"Range": {"bl_idname": "SvStringsSocket", "name": "Range"}}, "bl_idname": "SvGenNumberRange"}, "Number Range.001": {"attributes": {"location": [137.2379608154297, 104.48876190185547], "parent": {"type": "NODE", "value": "Frame.003"}}, "properties": {"current_mode": "RANGE_COUNT", "range_mode": "RANGE_COUNT", "stop_float": 0.5, "start_float": 1.0}, "inputs": {"Start": {"bl_idname": "SvStringsSocket", "name": "Start", "properties": {"prop_name": "start_float"}}, "Step": {"bl_idname": "SvStringsSocket", "name": "Step", "properties": {"prop_name": "stop_float", "label": "stop"}}, "Stop": {"bl_idname": "SvStringsSocket", "name": "Stop", "properties": {"prop_name": "count_", "label": "count"}}}, "outputs": {"Range": {"bl_idname": "SvStringsSocket", "name": "Range"}}, "bl_idname": "SvGenNumberRange"}, "List Length": {"attributes": {"location": [-50.91435241699219, 153.6733627319336], "parent": {"type": "NODE", "value": "Frame.003"}}, "inputs": {"Data": {"bl_idname": "SvStringsSocket", "name": "Data"}}, "outputs": {"Length": {"bl_idname": "SvStringsSocket", "name": "Length"}}, "bl_idname": "ListLengthNode"}, "List Join": {"attributes": {"location": [-217.9622039794922, 144.21215057373047], "parent": {"type": "NODE", "value": "Frame.003"}}, "inputs": {"data": {"bl_idname": "SvStringsSocket", "name": "data"}, "data 1": {"bl_idname": "SvStringsSocket", "name": "data 1"}, "data 2": {"bl_idname": "SvStringsSocket", "name": "data 2"}}, "outputs": {"data": {"bl_idname": "SvVerticesSocket", "name": "data"}}, "bl_idname": "ListJoinNode"}, "Vector out": {"attributes": {"location": [-1602.1269989013672, 237.58186054229736], "parent": {"type": "NODE", "value": "Frame.001"}}, "inputs": {"Vectors": {"bl_idname": "SvVerticesSocket", "name": "Vectors"}}, "outputs": {"X": {"bl_idname": "SvStringsSocket", "name": "X"}, "Y": {"bl_idname": "SvStringsSocket", "name": "Y"}, "Z": {"bl_idname": "SvStringsSocket", "name": "Z"}}, "bl_idname": "VectorsOutNode"}, "Vector in": {"attributes": {"location": [-1425.7999725341797, 241.41312885284424], "width": 100.0, "parent": {"type": "NODE", "value": "Frame.001"}}, "inputs": {"X": {"bl_idname": "SvStringsSocket", "name": "X", "properties": {"prop_name": "x_"}}, "Y": {"bl_idname": "SvStringsSocket", "name": "Y", "properties": {"prop_name": "y_"}}, "Z": {"bl_idname": "SvStringsSocket", "name": "Z", "properties": {"prop_name": "z_"}}}, "outputs": {"Vectors": {"bl_idname": "SvVerticesSocket", "name": "Vectors"}}, "bl_idname": "GenVectorsNode"}, "Vector Noise": {"attributes": {"location": [-1795.2842254638672, 269.12836933135986], "parent": {"type": "NODE", "value": "Frame.001"}}, "inputs": {"Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}, "Seed": {"bl_idname": "SvStringsSocket", "name": "Seed", "properties": {"prop_name": "seed"}}, "Noise Matrix": {"bl_idname": "SvMatrixSocket", "name": "Noise Matrix"}}, "outputs": {"Noise V": {"bl_idname": "SvVerticesSocket", "name": "Noise V"}}, "bl_idname": "SvNoiseNodeMK3"}, "Move": {"attributes": {"location": [-1277.7178192138672, 258.9917116165161], "parent": {"type": "NODE", "value": "Frame.001"}}, "properties": {"strength": 0.6100000143051147}, "inputs": {"Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}, "Movement Vectors": {"bl_idname": "SvVerticesSocket", "name": "Movement Vectors", "properties": {"prop_name": "movement_vectors"}}, "Strength": {"bl_idname": "SvStringsSocket", "name": "Strength", "properties": {"prop_name": "strength"}}}, "outputs": {"Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}}, "bl_idname": "SvMoveNodeMk3"}, "List Mask Join (in)": {"attributes": {"location": [-535.8356704711914, 281.63492488861084], "parent": {"type": "NODE", "value": "Frame.002"}}, "properties": {"level": 2}, "inputs": {"Mask": {"bl_idname": "SvStringsSocket", "name": "Mask"}, "Data True": {"bl_idname": "SvStringsSocket", "name": "Data True"}, "Data False": {"bl_idname": "SvStringsSocket", "name": "Data False"}}, "outputs": {"Data": {"bl_idname": "SvVerticesSocket", "name": "Data"}}, "bl_idname": "SvMaskJoinNode"}, "Vector in.001": {"attributes": {"location": [-882.0748062133789, 23.134541511535645], "width": 100.0, "hide": true, "parent": {"type": "NODE", "value": "Frame.002"}}, "inputs": {"X": {"bl_idname": "SvStringsSocket", "name": "X", "properties": {"prop_name": "x_"}}, "Y": {"bl_idname": "SvStringsSocket", "name": "Y", "properties": {"prop_name": "y_"}}, "Z": {"bl_idname": "SvStringsSocket", "name": "Z", "properties": {"prop_name": "z_"}}}, "outputs": {"Vectors": {"bl_idname": "SvVerticesSocket", "name": "Vectors"}}, "bl_idname": "GenVectorsNode"}, "Vector out.001": {"attributes": {"location": [-1051.4008560180664, 22.10655117034912], "hide": true, "parent": {"type": "NODE", "value": "Frame.002"}}, "inputs": {"Vectors": {"bl_idname": "SvVerticesSocket", "name": "Vectors"}}, "outputs": {"X": {"bl_idname": "SvStringsSocket", "name": "X"}, "Y": {"bl_idname": "SvStringsSocket", "name": "Y"}, "Z": {"bl_idname": "SvStringsSocket", "name": "Z"}}, "bl_idname": "VectorsOutNode"}, "Scale": {"attributes": {"location": [-745.8620376586914, 144.63053035736084], "parent": {"type": "NODE", "value": "Frame.002"}}, "properties": {"multiplier": 1.1050000190734863}, "inputs": {"Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}, "Centers": {"bl_idname": "SvVerticesSocket", "name": "Centers", "properties": {"prop_name": "centers"}}, "Scale": {"bl_idname": "SvVerticesSocket", "name": "Scale", "properties": {"prop_name": "scale"}}, "Strength": {"bl_idname": "SvStringsSocket", "name": "Strength", "properties": {"prop_name": "multiplier"}}}, "outputs": {"Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}}, "bl_idname": "SvScaleNodeMk3"}, "List Mask (out)": {"attributes": {"location": [-965.8620376586914, 286.0737066268921], "parent": {"type": "NODE", "value": "Frame.002"}}, "properties": {"Level": 2}, "inputs": {"data": {"bl_idname": "SvStringsSocket", "name": "data"}, "mask": {"bl_idname": "SvStringsSocket", "name": "mask"}}, "outputs": {"mask": {"bl_idname": "SvStringsSocket", "name": "mask"}, "ind_true": {"bl_idname": "SvStringsSocket", "name": "ind_true"}, "ind_false": {"bl_idname": "SvStringsSocket", "name": "ind_false"}, "dataTrue": {"bl_idname": "SvVerticesSocket", "name": "dataTrue"}, "dataFalse": {"bl_idname": "SvVerticesSocket", "name": "dataFalse"}}, "bl_idname": "MaskListNode"}, "List Input": {"attributes": {"location": [-1496.465576171875, 36.27895736694336], "parent": {"type": "NODE", "value": "Frame"}}, "properties": {"int_": 20, "int_list": [0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "outputs": {"List": {"bl_idname": "SvStringsSocket", "name": "List"}}, "bl_idname": "SvListInputNode"}, "Spiral": {"attributes": {"location": [-2034.96435546875, 294.98870849609375], "height": 1.8880000114440918, "width": 170.0, "parent": {"type": "NODE", "value": "Frame"}}, "properties": {"presets": " ", "sType": "LOGARITHMIC", "eRadius": 1.0, "iRadius": 0.0, "exponent": 0.0, "turns": 16, "height": 1.8880000114440918}, "inputs": {"R": {"bl_idname": "SvStringsSocket", "name": "R", "properties": {"prop_name": "eRadius"}}, "r": {"bl_idname": "SvStringsSocket", "name": "r", "properties": {"prop_name": "iRadius"}}, "e": {"bl_idname": "SvStringsSocket", "name": "e", "properties": {"prop_name": "exponent"}}, "t": {"bl_idname": "SvStringsSocket", "name": "t", "properties": {"prop_name": "turns"}}, "n": {"bl_idname": "SvStringsSocket", "name": "n", "properties": {"prop_name": "resolution"}}, "s": {"bl_idname": "SvStringsSocket", "name": "s", "properties": {"prop_name": "scale"}}, "h": {"bl_idname": "SvStringsSocket", "name": "h", "properties": {"prop_name": "height"}}, "p": {"bl_idname": "SvStringsSocket", "name": "p", "properties": {"prop_name": "phase"}}, "a": {"bl_idname": "SvStringsSocket", "name": "a", "properties": {"prop_name": "arms"}}}, "outputs": {"Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}, "Edges": {"bl_idname": "SvStringsSocket", "name": "Edges"}}, "bl_idname": "SvSpiralNodeMK2"}, "Circle": {"attributes": {"location": [-1296.898681640625, -204.71063232421875], "color": [0.9200000166893005, 0.9200000166893005, 0.9200000166893005], "use_custom_color": true, "parent": {"type": "NODE", "value": "Frame"}}, "properties": {"vert_": 59, "rad_": 1.531000018119812}, "inputs": {"Radius": {"bl_idname": "SvStringsSocket", "name": "Radius", "properties": {"prop_name": "rad_"}}, "num Verts": {"bl_idname": "SvStringsSocket", "name": "num Verts", "properties": {"prop_name": "vert_"}}, "Degrees": {"bl_idname": "SvStringsSocket", "name": "Degrees", "properties": {"prop_name": "degr_"}}}, "outputs": {"Vertices": {"bl_idname": "SvVerticesSocket", "name": "Vertices"}, "Edges": {"bl_idname": "SvStringsSocket", "name": "Edges"}, "Polygons": {"bl_idname": "SvStringsSocket", "name": "Polygons"}}, "bl_idname": "SvCircleNode"}}, "links": [{"from_node": "Export Gcode.001", "from_socket": "Vertices", "to_node": "Viewer Draw", "to_socket": "Vertices"}, {"from_node": "Export Gcode.001", "from_socket": "Printed Edges", "to_node": "Viewer Draw", "to_socket": "Edges"}, {"from_node": "Export Gcode.001", "from_socket": "Vertices", "to_node": "Viewer Draw.001", "to_socket": "Vertices"}, {"from_node": "Export Gcode.001", "from_socket": "Travel Edges", "to_node": "Viewer Draw.001", "to_socket": "Edges"}, {"from_node": "Number Range", "from_socket": "Range", "to_node": "Export Gcode.001", "to_socket": "Layer Height"}, {"from_node": "Number Range.001", "from_socket": "Range", "to_node": "Export Gcode.001", "to_socket": "Flow Mult"}, {"from_node": "List Join", "from_socket": "data", "to_node": "Export Gcode.001", "to_socket": "Vertices"}, {"from_node": "Export Gcode.001", "from_socket": "Info", "to_node": "Stethoscope MK2", "to_socket": "Data"}, {"from_node": "List Length", "from_socket": "Length", "to_node": "Number Range", "to_socket": "Stop"}, {"from_node": "List Length", "from_socket": "Length", "to_node": "Number Range.001", "to_socket": "Stop"}, {"from_node": "List Join", "from_socket": "data", "to_node": "List Length", "to_socket": "Data"}, {"from_node": "List Mask Join (in)", "from_socket": "Data", "to_node": "List Join", "to_socket": "data"}, {"from_node": "Circle", "from_socket": "Vertices", "to_node": "List Join", "to_socket": "data 1"}, {"from_node": "Vector Noise", "from_socket": "Noise V", "to_node": "Vector out", "to_socket": "Vectors"}, {"from_node": "Vector out", "from_socket": "X", "to_node": "Vector in", "to_socket": "X"}, {"from_node": "Vector out", "from_socket": "Y", "to_node": "Vector in", "to_socket": "Y"}, {"from_node": "Spiral", "from_socket": "Vertices", "to_node": "Vector Noise", "to_socket": "Vertices"}, {"from_node": "Spiral", "from_socket": "Vertices", "to_node": "Move", "to_socket": "Vertices"}, {"from_node": "Vector in", "from_socket": "Vectors", "to_node": "Move", "to_socket": "Movement Vectors"}, {"from_node": "List Mask (out)", "from_socket": "mask", "to_node": "List Mask Join (in)", "to_socket": "Mask"}, {"from_node": "List Mask (out)", "from_socket": "dataTrue", "to_node": "List Mask Join (in)", "to_socket": "Data True"}, {"from_node": "Scale", "from_socket": "Vertices", "to_node": "List Mask Join (in)", "to_socket": "Data False"}, {"from_node": "Vector out.001", "from_socket": "Z", "to_node": "Vector in.001", "to_socket": "Z"}, {"from_node": "List Mask (out)", "from_socket": "dataFalse", "to_node": "Vector out.001", "to_socket": "Vectors"}, {"from_node": "List Mask (out)", "from_socket": "dataFalse", "to_node": "Scale", "to_socket": "Vertices"}, {"from_node": "Vector in.001", "from_socket": "Vectors", "to_node": "Scale", "to_socket": "Centers"}, {"from_node": "Move", "from_socket": "Vertices", "to_node": "List Mask (out)", "to_socket": "data"}, {"from_node": "List Input", "from_socket": "List", "to_node": "List Mask (out)", "to_socket": "mask"}]}}
1 change: 1 addition & 0 deletions json_examples/CNC/CNC_PUZZLES.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions json_examples/CNC/CNC_SVG_A4.json

Large diffs are not rendered by default.

0 comments on commit a9a6b0f

Please sign in to comment.