Script: Control Flow Interval Example

Control Flow Interval Example picture
Type
Rete logo indicatorrete
Date Created
Sep 5, 2024, 11:39:48 AM
Last Edit Date
Oct 2, 2025, 3:46:06 PM

Project Information

Control flow example that makes Gaussian splatting mesh rotate

View Full Project

Script Code

{
  "id": "rete-v2-json",
  "nodes": {
    "1956d65802bc0053": {
      "id": "1956d65802bc0053",
      "name": "bitbybit.babylon.gaussianSplatting.create",
      "customName": "gaussian splatting mesh",
      "async": true,
      "drawable": false,
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        },
        "url": "https://bitbybit.dev/files/users%2FyVqNAFXmieX0iAkdP6wAz5BJ4X82%2Fprojects%2FrurHqHCxRi211LmrrwI1%2Fassets%2Fruta-with-bikes-3.splat?alt=media&token=9fd27a2d-ea06-4914-a80b-91bc3dba641e"
      },
      "inputs": {},
      "position": [
        1606.9685837882598,
        -31.31258407842251
      ]
    },
    "de8658a80372c2ef": {
      "id": "de8658a80372c2ef",
      "name": "bitbybit.babylon.scene.enableSkybox",
      "customName": "skybox",
      "async": false,
      "drawable": false,
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        },
        "skybox": "clearSky",
        "size": 1000,
        "blur": 0.1,
        "environmentIntensity": 0.7,
        "hideSkybox": false
      },
      "inputs": {},
      "position": [
        310.36554972330725,
        487.13310147509156
      ]
    },
    "f260238abc2a5a30": {
      "id": "f260238abc2a5a30",
      "name": "bitbybit.draw.drawGridMesh",
      "customName": "draw grid",
      "async": false,
      "drawable": false,
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        },
        "width": 400,
        "height": 400,
        "subdivisions": 10,
        "majorUnitFrequency": 10,
        "minorUnitVisibility": 0.45,
        "gridRatio": 0.5,
        "opacity": 0.5,
        "backFaceCulling": false,
        "mainColor": "#ffffff",
        "secondaryColor": "#ffffff"
      },
      "inputs": {},
      "position": [
        310.75134277343744,
        897.1350304874372
      ]
    },
    "1f336cfb82180d82": {
      "id": "1f336cfb82180d82",
      "name": "bitbybit.occt.shapes.face.createCircleFace",
      "customName": "circle",
      "async": true,
      "drawable": true,
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        },
        "radius": 2,
        "center": [
          0,
          0,
          0
        ],
        "direction": [
          0,
          1,
          0
        ]
      },
      "inputs": {},
      "position": [
        386.5070468989438,
        -787.3295984940044
      ]
    },
    "8428a201313626ac": {
      "id": "8428a201313626ac",
      "name": "bitbybit.draw.drawAnyAsync",
      "customName": "draw async",
      "async": true,
      "drawable": true,
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        }
      },
      "inputs": {
        "entity": {
          "connections": [
            {
              "node": "1f336cfb82180d82",
              "output": "result",
              "data": {}
            }
          ]
        },
        "options": {
          "connections": [
            {
              "node": "44a8a9af1bfcf337",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        762.7487781683235,
        -551.6355206895855
      ]
    },
    "44a8a9af1bfcf337": {
      "id": "44a8a9af1bfcf337",
      "name": "bitbybit.draw.optionsOcctShapeSimple",
      "customName": "occt shape simple",
      "async": false,
      "drawable": false,
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        },
        "precision": 0.01,
        "drawFaces": true,
        "faceColour": "#000000",
        "drawEdges": true,
        "edgeColour": "#ffffff",
        "edgeWidth": 2
      },
      "inputs": {},
      "position": [
        316.9262225924198,
        -357.3432922697356
      ]
    },
    "e99b7073a8f60320": {
      "id": "e99b7073a8f60320",
      "name": "bitbybit.flow.actions.trigger",
      "customName": "trigger",
      "data": {},
      "inputs": {},
      "position": [
        1026.5342341824444,
        425.2787100865991
      ]
    },
    "965d3992140afd51": {
      "id": "965d3992140afd51",
      "name": "bitbybit.flow.counters.counter",
      "customName": "counter",
      "data": {
        "step": 0.1
      },
      "inputs": {
        "execReset": {
          "connections": [
            {
              "node": "f97618ad83c0ded0",
              "output": "exec",
              "data": {}
            }
          ]
        },
        "exec": {
          "connections": [
            {
              "node": "5ff7c009ce52017a",
              "output": "exec",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1728.1922102091676,
        452.46217576885846
      ]
    },
    "7ba1bc93de1ca1d2": {
      "id": "7ba1bc93de1ca1d2",
      "name": "bitbybit.previewData",
      "customName": "preview data",
      "data": {
        "previewJSONControl": "[\n  0\n]"
      },
      "inputs": {
        "data": {
          "connections": [
            {
              "node": "965d3992140afd51",
              "output": "result",
              "data": {}
            }
          ]
        },
        "exec": {
          "connections": [
            {
              "node": "965d3992140afd51",
              "output": "exec",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2126.9896941703932,
        648.3297582349726
      ]
    },
    "f97618ad83c0ded0": {
      "id": "f97618ad83c0ded0",
      "name": "bitbybit.flow.actions.trigger",
      "customName": "trigger",
      "data": {},
      "inputs": {},
      "position": [
        1359.5098622765709,
        688.8483591451927
      ]
    },
    "5ff7c009ce52017a": {
      "id": "5ff7c009ce52017a",
      "name": "bitbybit.flow.time.interval",
      "customName": "interval",
      "data": {
        "interval": 10,
        "expire": 0
      },
      "inputs": {
        "exec": {
          "connections": [
            {
              "node": "e99b7073a8f60320",
              "output": "exec",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1382.8140390901808,
        369.6842312419113
      ]
    },
    "d2295329e55f2a18": {
      "id": "d2295329e55f2a18",
      "name": "bitbybit.vector.vectorXYZ",
      "customName": "vector XYZ",
      "async": false,
      "drawable": true,
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        },
        "x": 0,
        "y": 0,
        "z": 0
      },
      "inputs": {
        "y": {
          "connections": [
            {
              "node": "965d3992140afd51",
              "output": "result",
              "data": {}
            }
          ]
        },
        "exec": {
          "connections": [
            {
              "node": "965d3992140afd51",
              "output": "exec",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2065.125765515779,
        269.71619306849914
      ]
    },
    "fbb1065cd44a6619": {
      "id": "fbb1065cd44a6619",
      "name": "bitbybit.previewData",
      "customName": "preview data",
      "data": {
        "previewJSONControl": "[\n  [\n    0,\n    0,\n    0\n  ]\n]"
      },
      "inputs": {
        "data": {
          "connections": [
            {
              "node": "d2295329e55f2a18",
              "output": "result",
              "data": {}
            }
          ]
        },
        "exec": {
          "connections": [
            {
              "node": "d2295329e55f2a18",
              "output": "exec",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2645.3969164482096,
        593.1695410953606
      ]
    },
    "4f466928474e5b6a": {
      "id": "4f466928474e5b6a",
      "name": "bitbybit.babylon.mesh.setRotation",
      "customName": "rotation",
      "async": false,
      "drawable": false,
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": true
        }
      },
      "inputs": {
        "babylonMesh": {
          "connections": [
            {
              "node": "1956d65802bc0053",
              "output": "result",
              "data": {}
            }
          ]
        },
        "rotation": {
          "connections": [
            {
              "node": "d2295329e55f2a18",
              "output": "result",
              "data": {}
            }
          ]
        },
        "exec": {
          "connections": [
            {
              "node": "d2295329e55f2a18",
              "output": "exec",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2645.836778538309,
        184.28517773698718
      ]
    },
    "18ca7a6993229f18": {
      "id": "18ca7a6993229f18",
      "name": "bitbybit.babylon.scene.adjustActiveArcRotateCamera",
      "customName": "adjust active camera",
      "async": false,
      "drawable": false,
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        },
        "position": [
          10,
          10,
          10
        ],
        "lookAt": [
          0,
          0,
          0
        ],
        "lowerBetaLimit": 1,
        "upperBetaLimit": 179,
        "angularSensibilityX": 1000,
        "angularSensibilityY": 1000,
        "maxZ": 1000,
        "panningSensibility": 1000,
        "wheelPrecision": 100
      },
      "inputs": {
        "position": {
          "connections": [
            {
              "node": "88106bf670d9292d",
              "output": "result",
              "data": {}
            }
          ]
        },
        "lookAt": {
          "connections": [
            {
              "node": "14982c5c36f57d61",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        222.13157226245357,
        1550.0296945894172
      ]
    },
    "88106bf670d9292d": {
      "id": "88106bf670d9292d",
      "name": "bitbybit.vector.vectorXYZ",
      "customName": "vector XYZ",
      "async": false,
      "drawable": true,
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        },
        "x": 3,
        "y": 2,
        "z": 3
      },
      "inputs": {},
      "position": [
        -198.7048250835517,
        1505.0898253854593
      ]
    },
    "14982c5c36f57d61": {
      "id": "14982c5c36f57d61",
      "name": "bitbybit.vector.vectorXYZ",
      "customName": "vector XYZ",
      "async": false,
      "drawable": true,
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0,
          "forceExecution": false
        },
        "x": 0,
        "y": 1,
        "z": 0
      },
      "inputs": {},
      "position": [
        -223.9652311827458,
        1859.7849743919758
      ]
    }
  }
}