Script: 3D Text Cutout Rete

3D Text Cutout Rete picture
Type
Rete logo indicatorrete
Author
matas
Date Created
Sep 18, 2023, 2:43:32 PM
Last Edit Date
Feb 27, 2024, 4:28:13 PM

Project Information

Example script on how to use boolean difference opertaion on 3D text to cut it out from a solid shape.

View Full Project

Script Code

{
  "id": "rete-v2-json",
  "nodes": {
    "6022d1a1820ec42b": {
      "id": "6022d1a1820ec42b",
      "name": "bitbybit.advanced.text3d.create",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "text": "Hello World!",
        "fontType": "Silkscreen",
        "fontVariant": "Regular",
        "fontSize": 1.5,
        "height": 1,
        "rotation": 180,
        "originAlignment": "rightTop"
      },
      "inputs": {
        "origin": {
          "connections": [
            {
              "node": "9e8972b5d7bc43f0",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        120.88252697098127,
        162.4268718872078
      ]
    },
    "82aff1500334a7df": {
      "id": "82aff1500334a7df",
      "name": "bitbybit.previewData",
      "data": {
        "previewJSONControl": ""
      },
      "inputs": {
        "data": {
          "connections": [
            {
              "node": "6022d1a1820ec42b",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        632.6674568971828,
        182.4531322850147
      ]
    },
    "9e8972b5d7bc43f0": {
      "id": "9e8972b5d7bc43f0",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 6,
        "y": 0,
        "z": 0.45
      },
      "inputs": {},
      "position": [
        -445.56979179757553,
        321.8408794804284
      ]
    },
    "d0c32b29f0fe5e3b": {
      "id": "d0c32b29f0fe5e3b",
      "name": "bitbybit.occt.shapes.solid.createBox",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "width": 15,
        "length": 5,
        "height": 1.5
      },
      "inputs": {},
      "position": [
        757.5929233287213,
        765.9260222286325
      ]
    },
    "3cef9d6b087b385a": {
      "id": "3cef9d6b087b385a",
      "name": "bitbybit.json.query",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "query": "$.compound"
      },
      "inputs": {
        "json": {
          "connections": [
            {
              "node": "6022d1a1820ec42b",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        975.7467720677232,
        262.74544040676386
      ]
    },
    "a015627e471be2b8": {
      "id": "a015627e471be2b8",
      "name": "bitbybit.previewData",
      "data": {
        "previewJSONControl": ""
      },
      "inputs": {
        "data": {
          "connections": [
            {
              "node": "3cef9d6b087b385a",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1406.8498232482802,
        414.11468150866074
      ]
    },
    "316cb98916fcabf0": {
      "id": "316cb98916fcabf0",
      "name": "bitbybit.occt.booleans.difference",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "keepEdges": false
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "d0c32b29f0fe5e3b",
              "output": "result",
              "data": {}
            }
          ]
        },
        "shapes": {
          "connections": [
            {
              "node": "3cef9d6b087b385a",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1708.3838419761737,
        650.4103027718893
      ]
    },
    "bff8b9e807fdd962": {
      "id": "bff8b9e807fdd962",
      "name": "bitbybit.draw.drawAnyAsync",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "entity": {
          "connections": [
            {
              "node": "316cb98916fcabf0",
              "output": "result",
              "data": {}
            }
          ]
        },
        "options": {
          "connections": [
            {
              "node": "d971d0132e82767c",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2168.775964530372,
        608.8359756195252
      ]
    },
    "d971d0132e82767c": {
      "id": "d971d0132e82767c",
      "name": "bitbybit.draw.optionsOcctShape",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "faceOpacity": 1,
        "edgeOpacity": 1,
        "edgeColour": "#ffffff",
        "faceColour": "#ae00ff",
        "edgeWidth": 1,
        "drawEdges": true,
        "drawFaces": true,
        "precision": 0.01,
        "drawEdgeIndexes": false,
        "edgeIndexHeight": 0.06,
        "edgeIndexColour": "ff00ff",
        "drawFaceIndexes": false,
        "faceIndexHeight": 0.06,
        "faceIndexColour": "#0000ff"
      },
      "inputs": {},
      "position": [
        1783.100375731209,
        1040.978960861247
      ]
    }
  }
}