HISE Logo Forum
    • Categories
    • Register
    • Login

    How to add table points to a UI table?

    Scheduled Pinned Locked Moved Unsolved Scripting
    table
    10 Posts 3 Posters 584 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by

      Is it possible through scripting?

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      C 2 Replies Last reply Reply Quote 0
      • d.healeyD d.healey marked this topic as a question on
      • C
        civet @d.healey
        last edited by civet

        @d-healey use Engine.createAndRegisterTableData() and ScriptTable.referToData() ?

        HiseSnippet 838.3ocsU0tSSDDEclRWBsJFIwGfM7qRRsYqBnIDi.kVSiBzPQh9Kxvt21NgcmoY1oEZL9z3KiON9Fn2Y1sc2pUDZh8Ga58bumcN68qoiR5CwwREgV57ICAB8wNcmHzCZLfwEj1GQnOw4XVrFTtIPGNYHKNFBHT5Juy.PKUjX+8i2dHKjI7gLHB4BI2G9.OhqyP6r+64ggsXAv47nbQu89s8khFxP4HTOq33QFx7ul0GNgYBqfCgtZy.tVp5pYZHlPcNTFLo6.4Mhj3ufGyuJDLF0IcwWTBbKYXfQwFzSGCpwb3lLLOBow.dXPmo4hXBgVrSVlYkjLyybNlGvmgmkgdp0gaFi74HZg4kbw4jb8+sjWn7n4jmSh71voquhOTm4wnsG4zVfEudLrrjWVmLJ5bFdtljHs.l7SHSJ7MpSCIRQnqEwtFZoPiYuhJ654U0Eer0dkKqf9tZy63Hll49F2lh9bATyWA3W5Ahfyf9bSiy4SioRcCMrDGqcGyTIjQhSOu9ftgLZnTfFU1zRq9lHEab0hADLlMFZK5n.zZypt8XgwvrHTPO7zj1iZlvLG4LiZVhU1ZO2bXrf.6Y0Qxwy0q1NUcwGHudiD9ZtT3JEmH0vohJaU9KkKU9qkc+cW85sPeluLkLLDTKzso8WcWDqHFEcEnphoqvQvr.wtn4apV890T4mjnyEnTzVv0mNDRsyOo7mscjzJE9uO11j6LchoXXbCAklajC8HXLN1mzWVx4HH9ZsbnM1zxKgtl15c8ztVaEfvwidMmjJO41rMC78mjY748ugGnGXZb+NZN.38GnMVAnksr1VD.2ZPnHR9VFCVxJnrwmhIxDGhkAiBY54mrMq3RcfUl4FgLSEhXtdR9UfOfwcu+xFpEj2umxcCmNbs+fEq2BKPuX86+sdSWdttSyd8.eclXK5z5SK6lxGfTNSNRyE8OloUbSOAt3qKd+hOfJQHfvYK.Ss8l1izEDAVieh+RcVeZSkwY8oNIQLek7R+jYVy540rHnlD1atJgWgh1t0I14XjmiWMORDdqwk99lTwyQsuXNuXI37xkfy1KAmcVBN6tDbd0Rv402IGyE1GLRKiRFSPfNMsKznzlByJDaGI4WkUcc+C
        
        1 Reply Last reply Reply Quote 0
        • C
          civet @d.healey
          last edited by

          @d-healey I have no idea why it only works with "saveInPresent" disabled.

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @civet
            last edited by

            @civet Your snippet doesn't load for me, HISE just crashes. But also is there a way to do it directly on the table without needing to use a separate data object?

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            C 2 Replies Last reply Reply Quote 0
            • C
              civet @d.healey
              last edited by

              @d-healey

              Content.makeFrontInterface(600, 600);
              
              reg tableData = Engine.createAndRegisterTableData(1);
              
              const var table = Content.getComponent("Table1");
              table.set("saveInPreset", false);
              table.referToData(tableData);
              
              tableData.reset(); 
              tableData.addTablePoint(0.5, 0.5);
              
              d.healeyD 1 Reply Last reply Reply Quote 1
              • d.healeyD
                d.healey @civet
                last edited by

                @civet I need a method that doesn't require a separate data object, I have lots of tables and don't want to create a data object for each one.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                ustkU 1 Reply Last reply Reply Quote 0
                • C
                  civet @d.healey
                  last edited by

                  @d-healey said in How to add table points to a UI table?:

                  @civet Your snippet doesn't load for me, HISE just crashes. But also is there a way to do it directly on the table without needing to use a separate data object?

                  I haven't used it before

                  1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @d.healey
                    last edited by

                    @d-healey for now I reckon you have no choice but to use a data object, at least that’s what I do…

                    Can't help pressing F5 in the forum...

                    d.healeyD 1 Reply Last reply Reply Quote 1
                    • d.healeyD
                      d.healey @ustk
                      last edited by

                      @ustk I have another choice, I shall not implement the feature I was planning to implement :D

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @d.healey
                        last edited by

                        @d-healey 👍 🤣

                        Can't help pressing F5 in the forum...

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        39

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        102.2k

                        Posts