Forum
    • Categories
    • Register
    • Login

    permanently displayed text

    Scheduled Pinned Locked Moved Scripting
    80 Posts 4 Posters 8.0k 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.
    • David HealeyD
      David Healey @treynterrio
      last edited by

      @treynterrio Your snippet works here

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      T 1 Reply Last reply Reply Quote 0
      • T
        treynterrio @David Healey
        last edited by

        @d-healey I've export it and tested it but now the text stays in the wrong label it should be in the black one above because the label where you type something will disappear

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey @treynterrio
          last edited by

          @treynterrio I'm only seeing what you post, is that the code you're testing? If so then you need to change it to set the text to show where you want it to.

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          T 1 Reply Last reply Reply Quote 0
          • T
            treynterrio @David Healey
            last edited by

            @d-healey its still the same issue when I hit compile nothing changes the console don't say Compile OK I can change in the script Name to Input or Input to Name its everything the same there must be something inside that must be changed but I don't know what

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @treynterrio
              last edited by

              @treynterrio said in permanently displayed text:

              console don't say Compile OK

              Sometimes it doesn't show but it will show above the Console

              79b36037-2d43-49ab-bfd9-343e30488e5d-image.png

              Are you using the same snippet you posted above to test?

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              T 1 Reply Last reply Reply Quote 0
              • T
                treynterrio @David Healey
                last edited by

                @d-healey yes its the same

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @treynterrio
                  last edited by

                  @treynterrio Can you show me a video of it not working for you?

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    treynterrio @David Healey
                    last edited by

                    @d-healey It works now in the snippet, but it doesn't work in my project. the file is created but the file will not be loaded

                    David HealeyD 1 Reply Last reply Reply Quote 0
                    • David HealeyD
                      David Healey @treynterrio
                      last edited by

                      @treynterrio What is the difference between the snippet and your project?

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        treynterrio @David Healey
                        last edited by

                        @d-healey that my project is a complete plugin

                        David HealeyD 1 Reply Last reply Reply Quote 0
                        • David HealeyD
                          David Healey @treynterrio
                          last edited by

                          @treynterrio said in permanently displayed text:

                          that my project is a complete plugin

                          There is no difference in the code?

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - Public HISE tutorials
                          My Patreon - HISE tutorials

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            treynterrio @David Healey
                            last edited by

                            @d-healey the difference is that the button that sets the text to the label has more than 1 function in my project. my complete project script has 1400 lines

                            David HealeyD 1 Reply Last reply Reply Quote 0
                            • David HealeyD
                              David Healey @treynterrio
                              last edited by

                              @treynterrio You need to identify the thing in the snippet that works but doesn't work in your project.

                              Free HISE Bootcamp Full Course for beginners.
                              YouTube Channel - Public HISE tutorials
                              My Patreon - HISE tutorials

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                treynterrio @David Healey
                                last edited by

                                @d-healey it creates the file that works but It doesn't load. so it must be this part that doesn't work

                                const var d = Engine.loadFromJSON("Name.json");
                                
                                if (isDefined(d) && isDefined(d.name))
                                {
                                    Input.set("text", d.name);
                                }
                                
                                David HealeyD 1 Reply Last reply Reply Quote 0
                                • David HealeyD
                                  David Healey @treynterrio
                                  last edited by

                                  @treynterrio Does it work in your project within HISE but not in the compiled plugin, or does it not work in either?

                                  Free HISE Bootcamp Full Course for beginners.
                                  YouTube Channel - Public HISE tutorials
                                  My Patreon - HISE tutorials

                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    treynterrio @David Healey
                                    last edited by

                                    @d-healey both doesn't work

                                    David HealeyD 1 Reply Last reply Reply Quote 0
                                    • David HealeyD
                                      David Healey @treynterrio
                                      last edited by

                                      @treynterrio

                                      So to confirm, in your project's user presets folder you see a file called Name.json?

                                      Free HISE Bootcamp Full Course for beginners.
                                      YouTube Channel - Public HISE tutorials
                                      My Patreon - HISE tutorials

                                      T 1 Reply Last reply Reply Quote 0
                                      • T
                                        treynterrio @David Healey
                                        last edited by

                                        @d-healey yes it will be created when I press the button. Its there until I close the plugin and reload it then its gone

                                        David HealeyD 1 Reply Last reply Reply Quote 0
                                        • David HealeyD
                                          David Healey @treynterrio
                                          last edited by

                                          @treynterrio said in permanently displayed text:

                                          Its there until I close the plugin and reload it then its gone

                                          Do you have some code that deletes the file? When you say close the plugin, are you talking about the HISE project or the compiled version? For now it's best if we just focus on the HISE project.

                                          Free HISE Bootcamp Full Course for beginners.
                                          YouTube Channel - Public HISE tutorials
                                          My Patreon - HISE tutorials

                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            treynterrio @David Healey
                                            last edited by

                                            @d-healey no there is nothing that could or would delete the file. I've that simple protection on the Button at the moment as well. its this code and after that the code for the simple protection and then comes nothing. I had this create .json file above the serial code part and this part

                                            const var d = Engine.loadFromJSON("Name.json");
                                            
                                            if (isDefined(d) && isDefined(d.name))
                                            {
                                                Input.set("text", d.name);
                                            }
                                            

                                            straight under it and at the bottom of the script. but nothing works. the only thing that works here is that is says Compiled Ok in the console

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

                                            32

                                            Online

                                            2.1k

                                            Users

                                            13.1k

                                            Topics

                                            113.3k

                                            Posts