Luce packages
LuceLuce BaseLuciaOS

dymokomi/luced-3d

Source of release 0.11.3

0.11.3 / examples / wrangles / twist.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 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 = [6, 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.80000001192092896, 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 = ["", "# x goes round, z goes up.\nlet around = (p.P[0] / 6.0 + 0.5) * 2.0 * math32.pi\nlet radius = k.f32(\"radius\", 0.8)\np.P = [math32.cos(around) * radius, p.P[2] + 3.0, math32.sin(around) * radius, 0.0]\n", "", "radius\t16\t1\t0", ""]
            bool time_dependent = false
            bool visible = true
            def recipes "edits" {
            }
        }
        def Code "n4" {
            int edit_count = 0
            bool enabled = true
            str frozen = ""
            int guard = 0
            str[0] hidden = []
            int id = 4
            float64[2] inputs = [3, -1]
            str name = "Code 4"
            int output = 1
            float64[64] parameters = [1, 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, 180]
            float64[2] sources = [0, 0]
            str[5] texts = ["", "# Turn about Y by an angle that grows with height.\nlet angle = p.P[1] * k.f32(\"twist\", 0.6)\nlet c = math32.cos(angle)\nlet sn = math32.sin(angle)\np.P = [p.P[0] * c - p.P[2] * sn, p.P[1], p.P[0] * sn + p.P[2] * c, 0.0]\np.P[0] *= 1.0 + 0.3 * math32.sin(p.P[1] * 2.0)\n", "", "twist\t16\t1\t0", ""]
            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, 11.787703310894848, 0, 3, 0]
        float64[3] network = [1, 0, 0]
    }
}