permanently displayed text
-
@treynterrio Your snippet works here
-
@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
-
@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.
-
@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
-
@treynterrio said in permanently displayed text:
console don't say Compile OK
Sometimes it doesn't show but it will show above the Console
Are you using the same snippet you posted above to test?
-
@d-healey yes its the same
-
@treynterrio Can you show me a video of it not working for you?
-
@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
-
@treynterrio What is the difference between the snippet and your project?
-
@d-healey that my project is a complete plugin
-
@treynterrio said in permanently displayed text:
that my project is a complete plugin
There is no difference in the code?
-
@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
-
@treynterrio You need to identify the thing in the snippet that works but doesn't work in your project.
-
@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); }
-
@treynterrio Does it work in your project within HISE but not in the compiled plugin, or does it not work in either?
-
@d-healey both doesn't work
-
So to confirm, in your project's user presets folder you see a file called
Name.json
? -
@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
-
@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.
-
@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