Luce packages
LuceLuce BaseLuciaOS

dymokomi/luced-3d

Source of release 0.11.4

0.11.4 / examples / wrangles / metaballs.prisma

#prisma 4.0
def luced3d "scene" {
    int display = 4
    int next_id = 5
    bool preview = false
    int scope = -1
    int selected = 4
    int take = 0
    float64[4] time = [1, 1, 240, 24]
    str units = "mm"
    int version = 1
    def network "nodes" {
        def Volume "n2" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 2
            float64[1] inputs = [-1]
            str name = "Volume 2"
            int output = -1
            float64[32] parameters = [1, 0, 0, 0, 4, 4, 4, 0.040000000000000001, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
            int parent = -1
            float64[2] position = [0, 0]
            float64[1] sources = [0]
            str[3] texts = ["", "", ""]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
        def Code "n3" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 3
            float64[2] inputs = [2, -1]
            str name = "Code 3"
            int output = -1
            float64[64] parameters = [5, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.60000002384185791, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
            int parent = -1
            float64[2] position = [0, 90]
            float64[2] sources = [0, 0]
            str[5] texts = ["", "let t = (f32)k.time\nvar d: f32 = 100.0\nfor i in 0..<5:\n    let a = (f32)i * 1.2566 + t * 0.7\n    let c: f32[4] = [math32.cos(a) * 0.9, math32.sin(a * 1.7 + t) * 0.6, math32.sin(a) * 0.9, 0.0]\n    d = smin(d, length(x.P - c) - 0.5, k.f32(\"blend\", 0.6))\nx.value = d\n", "## A smooth minimum: blends two distances over `r`.\nfunc smin(a: f32, b: f32, r: f32) -> f32:\n    let h = clamp(0.5 + 0.5 * (b - a) / r, 0.0, 1.0)\n    return lerp(b, a, h) - r * h * (1.0 - h)\n", "blend\t16\t1\t0", ""]
            bool time_dependent = true
            bool visible = true
            def recipes "edits" {
            }
        }
        def "Convert to Mesh" "n4" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 4
            float64[1] inputs = [3]
            str name = "Convert to Mesh 4"
            int output = 1
            float64[32] parameters = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
            int parent = -1
            float64[2] position = [0, 180]
            float64[1] sources = [0]
            str[3] texts = ["", "weight", "renamed"]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
    }
    def takes "takes" {
        def take "t0" {
            str[3] cameras = ["", "", ""]
            float64[3] counts = [0, 0, 0]
            float64[3] enabled = [1, 1, 1]
            str[3] hidden = ["", "", ""]
            float64[3] ids = [2, 3, 4]
            str name = "Main"
            float64[0] transforms = []
            float64[3] visible = [1, 1, 1]
        }
    }
    def editor_view "view" {
        float64[6] camera = [0.69999999999999996, 0.55000000000000004, 7.7267696820141563, 0.085624873638153076, -0.018166065216064453, -4.7743320465087891e-05]
        float64[3] network = [1, 0, 0]
    }
}