Script: 3D Text Example Rete

3D Text Example Rete picture
Type
Rete logo indicatorrete
Project
3D Texts
Author
matas
Date Created
Sep 17, 2023, 1:15:54 PM
Last Edit Date
Feb 27, 2024, 4:30:19 PM

Project Information

Example of how to create a 3D text in bitbybit.dev

View Full Project

Script Code

{
  "id": "rete-v2-json",
  "nodes": {
    "a8b297dbc2e018e6": {
      "id": "a8b297dbc2e018e6",
      "name": "bitbybit.advanced.text3d.create",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": true,
          "flatten": 0
        },
        "text": "bitbybit.dev",
        "fontType": "Roboto",
        "fontVariant": "Regular",
        "fontSize": 0.9,
        "height": 0.2,
        "rotation": 180,
        "originAlignment": "leftBottom"
      },
      "inputs": {
        "origin": {
          "connections": [
            {
              "node": "cd74ead2a08fa714",
              "output": "item",
              "data": {}
            }
          ]
        }
      },
      "position": [
        4280.778654358774,
        1133.7882494215946
      ]
    },
    "d6e60c67426eca20": {
      "id": "d6e60c67426eca20",
      "name": "bitbybit.occt.shapes.wire.interpolatePoints",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "periodic": false,
        "tolerance": 1e-7
      },
      "inputs": {
        "points": {
          "connections": [
            {
              "node": "b3e36565d2ae3fe9",
              "output": "list",
              "data": {}
            }
          ]
        }
      },
      "position": [
        909.3973202409393,
        463.3906806369794
      ]
    },
    "8d344e0932ff0217": {
      "id": "8d344e0932ff0217",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": -13,
        "y": 0,
        "z": 0
      },
      "inputs": {},
      "position": [
        49.66975096573742,
        402.1763966020221
      ]
    },
    "b3e36565d2ae3fe9": {
      "id": "b3e36565d2ae3fe9",
      "name": "bitbybit.lists.createList",
      "data": {},
      "inputs": {
        "listElements": {
          "connections": [
            {
              "node": "8d344e0932ff0217",
              "output": "result",
              "data": {}
            },
            {
              "node": "315dce393d8afaf0",
              "output": "result",
              "data": {}
            },
            {
              "node": "5e6714fc48c50e18",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        421.9705625034133,
        495.4174814013265
      ]
    },
    "315dce393d8afaf0": {
      "id": "315dce393d8afaf0",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 0,
        "y": 5,
        "z": 0
      },
      "inputs": {},
      "position": [
        57.76912271972885,
        703.1444694720556
      ]
    },
    "5e6714fc48c50e18": {
      "id": "5e6714fc48c50e18",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 13,
        "y": 0,
        "z": 0
      },
      "inputs": {},
      "position": [
        45.71674520933695,
        973.4210264603162
      ]
    },
    "33b880f06f481215": {
      "id": "33b880f06f481215",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": -16,
        "y": 0,
        "z": 5
      },
      "inputs": {},
      "position": [
        27.487962369764393,
        1363.7420462575787
      ]
    },
    "ee03636d15ef70a2": {
      "id": "ee03636d15ef70a2",
      "name": "bitbybit.lists.createList",
      "data": {},
      "inputs": {
        "listElements": {
          "connections": [
            {
              "node": "33b880f06f481215",
              "output": "result",
              "data": {}
            },
            {
              "node": "4b87f3b89167c532",
              "output": "result",
              "data": {}
            },
            {
              "node": "b0ceb63a9609c6c0",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        534.563648816161,
        1517.0831928509504
      ]
    },
    "4b87f3b89167c532": {
      "id": "4b87f3b89167c532",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 0,
        "y": -5,
        "z": 5
      },
      "inputs": {},
      "position": [
        30.861891760724607,
        1660.7018974489945
      ]
    },
    "b0ceb63a9609c6c0": {
      "id": "b0ceb63a9609c6c0",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 8,
        "y": 2,
        "z": 5
      },
      "inputs": {},
      "position": [
        40.14192257786098,
        1949.649478450643
      ]
    },
    "bba265c991ceda93": {
      "id": "bba265c991ceda93",
      "name": "bitbybit.occt.shapes.wire.interpolatePoints",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "periodic": false,
        "tolerance": 1e-7
      },
      "inputs": {
        "points": {
          "connections": [
            {
              "node": "ee03636d15ef70a2",
              "output": "list",
              "data": {}
            }
          ]
        }
      },
      "position": [
        909.7980384254298,
        1448.0711087109596
      ]
    },
    "5cb39003b2bd02f4": {
      "id": "5cb39003b2bd02f4",
      "name": "bitbybit.occt.transforms.translate",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "bba265c991ceda93",
              "output": "result",
              "data": {}
            }
          ]
        },
        "translation": {
          "connections": [
            {
              "node": "ee6deb12a367528a",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1462.9381528664862,
        1177.7088017651786
      ]
    },
    "ee6deb12a367528a": {
      "id": "ee6deb12a367528a",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 0,
        "y": 3,
        "z": -10
      },
      "inputs": {},
      "position": [
        1077.6427253586694,
        859.4862358474325
      ]
    },
    "289cd5268024c154": {
      "id": "289cd5268024c154",
      "name": "bitbybit.occt.operations.loft",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "makeSolid": false
      },
      "inputs": {
        "shapes": {
          "connections": [
            {
              "node": "15a46d60b83d63bc",
              "output": "list",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2697.722669846582,
        1291.627920897779
      ]
    },
    "15a46d60b83d63bc": {
      "id": "15a46d60b83d63bc",
      "name": "bitbybit.lists.createList",
      "data": {},
      "inputs": {
        "listElements": {
          "connections": [
            {
              "node": "8d73a7c30763d28e",
              "output": "item",
              "data": {}
            },
            {
              "node": "bfabb4471cbb7f50",
              "output": "item",
              "data": {}
            },
            {
              "node": "3de672375dde3bde",
              "output": "item",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2224.0856663055324,
        1335.5985226245434
      ]
    },
    "542e0998abad6fb4": {
      "id": "542e0998abad6fb4",
      "name": "bitbybit.occt.shapes.face.subdivideToPoints",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 1
        },
        "nrDivisionsU": 5,
        "nrDivisionsV": 5,
        "shiftHalfStepU": false,
        "removeStartEdgeU": false,
        "removeEndEdgeU": false,
        "shiftHalfStepV": false,
        "removeStartEdgeV": false,
        "removeEndEdgeV": false
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "95b6351e8a2419a7",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        3322.910129473841,
        1530.70822644918
      ]
    },
    "95b6351e8a2419a7": {
      "id": "95b6351e8a2419a7",
      "name": "bitbybit.occt.shapes.face.getFace",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "index": 0
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "289cd5268024c154",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2986.7278882344835,
        1345.7654307428108
      ]
    },
    "cd74ead2a08fa714": {
      "id": "cd74ead2a08fa714",
      "name": "bitbybit.lists.passThrough",
      "data": {},
      "inputs": {
        "item": {
          "connections": [
            {
              "node": "542e0998abad6fb4",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        3768.3679990163046,
        1603.0427769189278
      ]
    },
    "8d73a7c30763d28e": {
      "id": "8d73a7c30763d28e",
      "name": "bitbybit.lists.passThrough",
      "data": {},
      "inputs": {
        "item": {
          "connections": [
            {
              "node": "bba265c991ceda93",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1929.2248748182947,
        1185.5989370664008
      ]
    },
    "bfabb4471cbb7f50": {
      "id": "bfabb4471cbb7f50",
      "name": "bitbybit.lists.passThrough",
      "data": {},
      "inputs": {
        "item": {
          "connections": [
            {
              "node": "d6e60c67426eca20",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1923.7510963010322,
        1377.4958542564682
      ]
    },
    "3de672375dde3bde": {
      "id": "3de672375dde3bde",
      "name": "bitbybit.lists.passThrough",
      "data": {},
      "inputs": {
        "item": {
          "connections": [
            {
              "node": "5cb39003b2bd02f4",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1937.976713129204,
        1575.9638277702002
      ]
    },
    "91c56a412b5265a5": {
      "id": "91c56a412b5265a5",
      "name": "bitbybit.draw.drawAnyAsync",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "entity": {
          "connections": [
            {
              "node": "289cd5268024c154",
              "output": "result",
              "data": {}
            }
          ]
        },
        "options": {
          "connections": [
            {
              "node": "7531b7e2520f1607",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        3046.9293265130277,
        765.562517217083
      ]
    },
    "7531b7e2520f1607": {
      "id": "7531b7e2520f1607",
      "name": "bitbybit.draw.optionsOcctShape",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "faceOpacity": 0.7,
        "edgeOpacity": 1,
        "edgeColour": "#ffffff",
        "faceColour": "#ff0000",
        "edgeWidth": 2,
        "drawEdges": true,
        "drawFaces": true,
        "precision": 0.01,
        "drawEdgeIndexes": false,
        "edgeIndexHeight": 0.06,
        "edgeIndexColour": "ff00ff",
        "drawFaceIndexes": false,
        "faceIndexHeight": 0.06,
        "faceIndexColour": "#0000ff"
      },
      "inputs": {},
      "position": [
        2251.3935405879784,
        361.84056837850534
      ]
    }
  }
}