Script: Cloud Assets

Cloud Assets picture
Type
Rete logo indicatorrete
Author
matas
Date Created
Jan 27, 2024, 7:31:30 AM
Last Edit Date
Jan 27, 2024, 8:43:34 AM

Project Information

This project contains demo scripts for Rete editor that are used as examples in the "Getting Started" section of the documentation.

View Full Project

Script Code

{
  "id": "rete-v2-json",
  "nodes": {
    "d07bc9e1ad4f1752": {
      "id": "d07bc9e1ad4f1752",
      "name": "bitbybit.asset.getFile",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "fileName": "BoomBox.glb"
      },
      "inputs": {},
      "position": [
        -424.93750509775504,
        743.3595731196774
      ]
    },
    "7ce7bc1ac85bcd90": {
      "id": "7ce7bc1ac85bcd90",
      "name": "bitbybit.babylon.io.loadAssetIntoScene",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "hidden": false
      },
      "inputs": {
        "assetFile": {
          "connections": [
            {
              "node": "d07bc9e1ad4f1752",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        165.11099776197474,
        537.4175872862451
      ]
    },
    "5558c56e4a545589": {
      "id": "5558c56e4a545589",
      "name": "bitbybit.babylon.scene.useRightHandedSystem",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "use": true
      },
      "inputs": {},
      "position": [
        -432.67554837507964,
        526.9403913863597
      ]
    },
    "32dc525bd6755763": {
      "id": "32dc525bd6755763",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": 3,
        "y": 0,
        "z": 0
      },
      "inputs": {},
      "position": [
        124.95494778319656,
        824.5502402480789
      ]
    },
    "d4ed5b94a963353b": {
      "id": "d4ed5b94a963353b",
      "name": "bitbybit.babylon.mesh.setPosition",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "babylonMesh": {
          "connections": [
            {
              "node": "7ce7bc1ac85bcd90",
              "output": "result",
              "data": {}
            }
          ]
        },
        "position": {
          "connections": [
            {
              "node": "32dc525bd6755763",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        670.4462229429435,
        607.7525819135406
      ]
    },
    "ce23b4b95cd47fef": {
      "id": "ce23b4b95cd47fef",
      "name": "bitbybit.asset.getFile",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "fileName": "CalmCup.step"
      },
      "inputs": {},
      "position": [
        -425.1945817262197,
        1286.816663820053
      ]
    },
    "60d3ab30b728cc2c": {
      "id": "60d3ab30b728cc2c",
      "name": "bitbybit.occt.io.loadSTEPorIGES",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "adjustZtoY": false
      },
      "inputs": {
        "assetFile": {
          "connections": [
            {
              "node": "ce23b4b95cd47fef",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        114.14198045956175,
        1267.2192660861133
      ]
    },
    "cccf8d3fdeaa8e06": {
      "id": "cccf8d3fdeaa8e06",
      "name": "bitbybit.occt.transforms.scale",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "factor": 0.3
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "60d3ab30b728cc2c",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        736.5749908761555,
        1336.2875523362231
      ]
    },
    "d26cb8e10ec4568e": {
      "id": "d26cb8e10ec4568e",
      "name": "bitbybit.draw.drawAnyAsync",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "options": {
          "connections": [
            {
              "node": "d7452829ef9172cd",
              "output": "result",
              "data": {}
            }
          ]
        },
        "entity": {
          "connections": [
            {
              "node": "c08745d447be5841",
              "output": "result",
              "data": {}
            },
            {
              "node": "0f958699bcc3c791",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        2181.0225342841973,
        1508.821578965196
      ]
    },
    "d7452829ef9172cd": {
      "id": "d7452829ef9172cd",
      "name": "bitbybit.draw.optionsOcctShapeSimple",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "precision": 0.001,
        "drawFaces": true,
        "faceColour": "#e0e8ff",
        "drawEdges": true,
        "edgeColour": "#ffffff",
        "edgeWidth": 1
      },
      "inputs": {},
      "position": [
        1638.8940858077617,
        1687.1759124672465
      ]
    },
    "c08745d447be5841": {
      "id": "c08745d447be5841",
      "name": "bitbybit.occt.transforms.translate",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        }
      },
      "inputs": {
        "shape": {
          "connections": [
            {
              "node": "cccf8d3fdeaa8e06",
              "output": "result",
              "data": {}
            }
          ]
        },
        "translation": {
          "connections": [
            {
              "node": "1b64ad64ba2eddcb",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        1215.6384645518206,
        1359.7350953395246
      ]
    },
    "1b64ad64ba2eddcb": {
      "id": "1b64ad64ba2eddcb",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": -2,
        "y": 0,
        "z": 0
      },
      "inputs": {},
      "position": [
        660.6089945614759,
        1723.7846014892891
      ]
    },
    "ad26dfec1e92b8a8": {
      "id": "ad26dfec1e92b8a8",
      "name": "bitbybit.babylon.scene.enableSkybox",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "skybox": "clearSky",
        "size": 1000,
        "blur": 0.1,
        "environmentIntensity": 0.7
      },
      "inputs": {},
      "position": [
        -107.38994504354874,
        2086.3261070305857
      ]
    },
    "9a9278d4c1ea9c6a": {
      "id": "9a9278d4c1ea9c6a",
      "name": "bitbybit.babylon.scene.drawDirectionalLight",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "intensity": 0.5,
        "diffuse": "#ffffff",
        "specular": "#ffffff",
        "shadowGeneratorMapSize": 2056,
        "enableShadows": true,
        "shadowDarkness": 0
      },
      "inputs": {
        "direction": {
          "connections": [
            {
              "node": "2fcd25b340602b42",
              "output": "result",
              "data": {}
            }
          ]
        }
      },
      "position": [
        -128.86622597053048,
        2450.8611136876148
      ]
    },
    "0f958699bcc3c791": {
      "id": "0f958699bcc3c791",
      "name": "bitbybit.occt.shapes.face.createCircleFace",
      "data": {
        "genericNodeData": {
          "hide": true,
          "oneOnOne": false,
          "flatten": 0
        },
        "radius": 7
      },
      "inputs": {},
      "position": [
        1690.0318772461985,
        941.568317422692
      ]
    },
    "2fcd25b340602b42": {
      "id": "2fcd25b340602b42",
      "name": "bitbybit.vector.vectorXYZ",
      "data": {
        "genericNodeData": {
          "hide": false,
          "oneOnOne": false,
          "flatten": 0
        },
        "x": -100,
        "y": -100,
        "z": 100
      },
      "inputs": {},
      "position": [
        -545.8928573433108,
        2468.962717919658
      ]
    }
  }
}