Forum

    • Register
    • Login
    • Search
    • Categories

    TABLE LAF

    General Questions
    4
    10
    73
    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.
    • DanH
      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
      
      ustk MikeB 2 Replies Last reply Reply Quote 0
      • ustk
        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

        I cannot help pressing F5 in the forum...
        Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

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

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

            @ustk Add it into the source code you mean?

            1 Reply Last reply Reply Quote 0
            • DanH
              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

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

              MikeB 1 Reply Last reply Reply Quote 0
              • MikeB
                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.

                DanH 1 Reply Last reply Reply Quote 0
                • d.healey
                  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

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

                    @d-healey

                    @DanH or so 🙂

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

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

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

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

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

                        17
                        Online

                        985
                        Users

                        6.6k
                        Topics

                        60.8k
                        Posts