Luce packages
LuceLuce BaseLuciaOS

dymokomi/luced-3d

Source of release 0.11.3

0.11.3 / examples / wrangles / attractor.prisma

#prisma 4.0
def luced3d "scene" {
    int display = 3
    int next_id = 4
    bool preview = false
    int scope = -1
    int selected = 3
    int take = 0
    float64[4] time = [1, 1, 240, 24]
    str units = "mm"
    int version = 1
    def network "nodes" {
        def Grid "n2" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 2
            float64[0] inputs = []
            str name = "Grid 2"
            int output = -1
            float64[32] parameters = [8, 64, 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, 0]
            float64[0] sources = []
            str[3] texts = ["", "weight", "renamed"]
            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 = [1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.5, 0, 2, 0.89999997615814209, 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 target = k.vec3(\"target\", [0.0, 1.5, 0.0, 0.0])\nlet reach = k.f32(\"radius\", 2.0)\n# The falloff by distance in the ground plane: a peak under the target.\nlet d = distance(p.P * [1.0, 0.0, 1.0, 0.0], target * [1.0, 0.0, 1.0, 0.0])\nlet pull = 1.0 - smooth(0.0, reach, d)\np.P = p.P + (target - p.P) * (pull * k.f32(\"strength\", 0.9))\np.Cd = [pull, 0.3, 1.0 - pull, 0.0]\n", "", "target\t16\t3\t0\nradius\t19\t1\t0\nstrength\t20\t1\t0", ""]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
    }
    def takes "takes" {
        def take "t0" {
            str[2] cameras = ["", ""]
            float64[2] counts = [0, 0]
            float64[2] enabled = [1, 1]
            str[2] hidden = ["", ""]
            float64[2] ids = [2, 3]
            str name = "Main"
            float64[0] transforms = []
            float64[2] visible = [1, 1]
        }
    }
    def editor_view "view" {
        float64[6] camera = [0.69999999999999996, 0.55000000000000004, 20.509141843717543, 0, 0.67499995231628418, 0]
        float64[3] network = [1, 0, 0]
    }
}