Is it possible to edit what your plugin does the first time it's opened?



  • I would like to create a tutorial page that will open up the first time the plugin is opened.



  • @TNTHM You can use dumpAsJSON and loadFromJSON to store an object containing your "first time opened" variable, and check at each launch if it's true or not.
    The first time you check, because obviously, the file does not exist (unless you include it with your installer) the check should throw undefined



  • @TNTHM
    When you want to test again the first launch situation, don't forget to delete the tuto.js file in the UserPresets folder

    HiseSnippet 1377.3ocsXstaaaCElJNpq1atasnEX+jv+YN.Yt1cMcWKlRbb17ZiiacRP9WJsDcLSjI0jnSiWP.xavdU1ivdj5av1gRxVTxxIFAHN.AljmKemuy4vKtquvlFDH7QFE2ehGEY7El8lvkCaNjv3n1aiL9RycX9Ax8Yin64Q4nsl3QBBnNHCiB+lRHihqhB+7oecKhKgaSSlBgNTvroukMhISlsq0aXtt6PbnJqlL+KsZaK3MEthw.fJXVG4QrOibBsCQI1JlHiGzxgIE98jDIM.Yr5VBmI8FJ9HOR9CYAr9tT0fFndfghldGgqiBwpYQMGxbc5NMvCPfU5lPCEhngmZtKygMa9D53qBW.mngNeXrxMAuF5vq9xCOCM3sZD7drYOaelmLYEE19by1bI0e.ARA5vJRVzJ+8CLaJ.I3xZiHmQ2wGFLSipupd80waTu9Z+b4RfXABWZMaWJwupZF0ePxIPhOm3ikikhtbW7qwSM3ITYSwHOAGFTsR75UTZlnU.vD6qVgvotaI4KT8rBt.6bP.0uqOcvxXJMYqLMdzs0d8OErQK9ILNslqf3.ryn+n2dchBlZmFLSsxkd9ywgMEXWxXt8v0wrA3ALWJ1QPC3eiDSufEHKWBltZJG7ZbkJqcY4RX3Sz+iYpZAT.rmGUeTYcrzeLU4uDAAe1zmB0UXQ+So1R7.AjGFRAGqPhD5jhDLcDc4zg+jxjWkxjwQqy3QdaFDFqZ5tNNUfeEdVnuomm6DrGPlXhDy3LHRWPXnYuZS+txZYSvJ8Nj3NlV81zPKOd6JokuTcgXN8hHlBWkwwJovdJDrFjp3t.WfG.4SISvwPwVFLppu7EtUsmVbsNTLBdGT9xE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