HISE Logo Forum
    • Categories
    • Register
    • Login

    TABLE LAF

    Scheduled Pinned Locked Moved General Questions
    10 Posts 4 Posters 350 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.
    • DanHD
      DanH
      last edited by

      Does anyone know if there's a way to differentiate between Tables in LAF? I want to treat tables differently. I've tried using obj.text property but the tables go blank (but there's no error in the console)

      if (obj.text == "Table1")
      

      PS - Table LAF only works in Master at the moment...

      HiseSnippet 1034.3ocuVs0bhaCEVlD2YgVlo6z128jmHSRcMNbIL6jVHbIKSgD5Bcm71VgsLVK1RdrEjvrS9us+j5+fVIKC1oExlgNo5Avma57oiNWznPpEJJhFBTxOYU.Bn7MpiWQXtscgXBneGfx2oNo0kC5pMnUOst21Z3nAcAWtJ.FEgrAJJGbkPQk7GBhW+4ubIzCRrPor.f2SwVnAXeLKk6nl+J1yqGzFMA6mQ6JM6aQIsodzEbPcfpAH.ZMGNCcMTnVNUfxW00FyngiYPFJBnb3kT6Uico2Qj5+dbDdpGRPTFLluQR18nd1BDK3BZ6h8rGs9vGA36xnzPwAxPw2qNDai2vOMj7swBzRsHa7PI2SAuxYgmwyGdJYf2gR38Z0wVg3.VpDA19Z09DFJzAxuBxBKotfb+vApsobMHLce3bTuPNwFKJUyv3TspFFG+lhEJVfeQDwzVBC07fNZWn0kLCSP5VgH9Q6JO5TnmbaGPoyaQr6gPdkjl9S7k1lDGAG9VnGhlgi39p2BhECSIkNxNDd2DHOdLBxbO5TMm0RlcpFc5GOVX4mJVPiuvNZk3rzYn6YZWbg1Qw1U9nikhSzZldDhISeh0d5LIg.VR4BWJ7Vr3.9GwdRGxOUmpYnWMUyzcR9Wj9cXlaKu.WXrwXFxWJQZXpkN7b6c3i0J8f7O4uHuHzNNflegCXJHdYOhl+WNiOHyJVe6pQIWSYnaHkNtvmJjuvCEz9mhbb1pLQtaH0yCEtUwhdIgOkgkHK7mh32WKgdKPaTjWT83pV0cW0lsohkrTJihTReBlcS.hrqZYPR8GupNWBp3tmEWSWLolN9lGf4UtuRUllChAb1tp1PFDnTU8rZ5wqkymToRawG2Lb0fUMldR02UWRy+w4ja4LRnkX3Y4Xyc43tpUNW+wqk27VZsEYcLoyvQm7V58WUMCPDp1XMP989cDaGuEURXgGpBPgLr3VPoCZIezgreWd0Nnn4LZPbbyOfRDAQk7ewH28of+2ZtJk3hl2gsYtaX7G9McQ3YtoSo9rWy08ODSFqX1nRCix0qY.RqKjBpetYUypmUNi.SoDy50abVYi5hX9yFzlY.8mixB5e9+YP+um6vm9QsW3AYOdjn3c.IB3UbOZ1iX9BIByVk8cBuHyIetv80pivLK2si2baAuhh0WX7l7pihpccbPVrTvdnZuae4ehA3czELLY1PHKDyy9Tudg+XdFgEhiDBgOghySImn+kj1PPKhLiQD6Xh+huRDVVPqjHr7Zg.enUH8CVxlOh207pXNbLQhedWd0gBZsMs6TUMzM.97ma8AKKQn3G4Xe61XtG1b1dXSk8vlp6gM01CapuG1b9SZi3ktsVvn9xxDNiQci6XqnzkHZUEmQB9aXFv9fA
      

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      ustkU MikeBM 2 Replies Last reply Reply Quote 0
      • ustkU
        ustk @DanH
        last edited by

        @DanH It should work if you add this line:

        obj->setProperty("text", te.getName());
        

        here:
        https://github.com/christophhart/HISE/blob/1f682f5130f36341d428b050429a11619f096384/hi_scripting/scripting/api/ScriptingApiObjects.cpp#L5021

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

        DanHD 2 Replies Last reply Reply Quote 0
        • MikeBM
          MikeB @DanH
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • DanHD
            DanH @ustk
            last edited by

            @ustk Add it into the source code you mean?

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @ustk
              last edited by

              @ustk said in TABLE LAF:

              obj->setProperty("text", te.getName());

              Sadly that didn't work as expected. I used this method with the drawToggle Button LAF but I don't see a similar line in that part of the source

              Link Preview Image
              HISE/hi_scripting/scripting/api/ScriptingApiObjects.cpp at 1f682f5130f36341d428b050429a11619f096384 路 christophhart/HISE

              The open source framework for sample based instruments - HISE/hi_scripting/scripting/api/ScriptingApiObjects.cpp at 1f682f5130f36341d428b050429a11619f096384 路 christophhart/HISE

              favicon

              GitHub (github.com)

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

              MikeBM 1 Reply Last reply Reply Quote 0
              • MikeBM
                MikeB @DanH
                last edited by

                @DanH
                I think @ustk means that you should insert these lines into the source code - at the place he indicates and recompile HISE.

                Then the parameter "Text" should be available for the tables. And you can generate different if-statements like for buttons and knobs.

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

                  You could use other properties to differentiate between the tables. For example if they are different sizes, in different positions, or have different colour properties.

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

                  MikeBM DanHD 2 Replies Last reply Reply Quote 1
                  • MikeBM
                    MikeB @d.healey
                    last edited by

                    @d-healey

                    @DanH or so :-)

                    1 Reply Last reply Reply Quote 0
                    • DanHD
                      DanH @MikeB
                      last edited by

                      @MikeB I know 馃槅 I did that and the result was as above

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      1 Reply Last reply Reply Quote 1
                      • DanHD
                        DanH @d.healey
                        last edited by

                        @d-healey Yes I thought about colours, I'll give that a whirl

                        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                        https://dhplugins.com/ | https://dcbreaks.com/
                        London, UK

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

                        25

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.2k

                        Posts