Saving Text
-
dumpAsJSON()
perhaps -
@Christoph-Hart
@d-healey
@orange
Can you Check this snippet for me, I got it to save the label, but I'm struggling to read it from diskHiseSnippet 1416.3ocsX0rTabDDdVAKkkrkSbU9hyoszIgCHjv1jTljJxHfX4X.EKGW4TrG1cDZL6Nylcm0fBEU4bHOC4Vp73ji4MHuB4MvomY+aVgPVxNrvAld5tmu9q6d9gdAbaRXHO.YT94i7IHiaX1eDSLryPLkg5tMx3ll6gCEj.qXQaMxGGFRbPFFK7sRAFkWDo992uYKrKlYSxEgPufSsIOk5QE4R6096ntt6hcHOm5oo88a20ly5vc4Q.dVvrIxGaeL9Hx9XoZkLQFKsiCUvC5KvBRHxXws3Ni5OjeBKV+WPCoG5RjCZg5CNJV7tbWGIhkRQcFRcc5kF2gHvK8xYgEhYgaatG0glIOmM9T0DV4VnyGFklF7ZoCulyN7Lzf2hwv6Vl8sCn9h7YjX65lcYPhZ.FRA5vJVWToRKY1gCZvDM7vGS1M.FjYQ8MZ1bEqGzr4xaVsR7OPxHTX8FbfkLAzk4GIr9ZqTWbDQzg64yYvf50xznlz9bK6GcHj62JRH3rK0XckFydoe2QhQhyTW6DcpkhdqjupUnLWJiXMHhYKn.H3L8kS5w.tac6T2sBrrtQjkqV4rXu3xswtVRvmEix0+ERspKWNoRfaB4tjF9AT.QrXTjhgXO3fE3VfWxDK+NqvH4mJZp8PKVgYNeypEFWsRY8g6vNBhwFNQd9OJ7I8OX+5pUaEqZMZrVLrGva75PE8btBbyRlnQnbREA0A65dHzMVehzWdMyj3as7yzo6xIbsjlRBIWN1AJT8TA0jhlKx90FA6eXw.8rngOzpl0mCdLUUMrHit50DjSE0VIQioQMEpxlLybw.UmXV6t.DFmcrGRrO9.1Sgvr9xJDdVdlds0r53Rft.wPHVjUdYSkWKpGE0xnj3hDvAROqrOjDPAxc.PlwigMpflpATWxXUp9amTpNa4fLqGKMzQFZT1QJrlpWlxzA0iWmkKHtXCgV8PrxMj9ZyB5L1p9LRRfI0LO6WvjoUDjo345DYZ1.x0.4QCgpZf.wAhHe0bERiaVAr8tqo2AvEjCXPB9rJkqbdkwmYvfIMURIjKIXRyJO5LXJlUmE4cHIHs+JQO3DjhGQYd4GQoeBpcbKglhbVWFUbfOgcYGbgR5ifivLS.EnpPc.V0jCvdJ9PhKh5HO7JqjFofr5.ez3FdyDCi29QYIHRaGoTiyuBB58u3UM0JIR7vrX20LU+cqzEcCyuZ0UWMtBA98jgf+r5ZcBlIT8bjjSxj0aVBtE12GZumiUZ8zU5VlJzpJksdL3TD5G5JaQjWXHg3gjgOIPPk4YisIuAtIV70GJatMI7XA2GtPU1NbvZTbw6gYYKt5uagNMmWWu8n7A0ZeB0QLDRzFOnDBMjPOZnPN5eLPHpf3kdotxKcm6732IMIW555hQZ345yRshFj9dMH81WmBoTAAsSgUpjm2d.PT8o+hV4R61xbip1aLD9yO4yTZHmOOb9ie8SFKbjR+8e61WHZLm0B37H5OOUKhdkWaZ3dbOvY3.PrQIcueiYqzN22uUmsdk3CisVOls9+fpHv1RX0NOFKnGXkeu8d4wzeehdEPTRp7CroLqh9uP5Uz2CFcQhnY6OT7utF9a+SZ32ZPB9uXq9GCzt3iIfmzvchbwhhuyQ93tjIfCVJ7fB4iFXgTwH8G+ck73mYEt2xrGUXObx3szDvKrM4UMdSdJYUycFLfXKxA6hl69iW8uaD8Ldj.t90dXQ.EpwL2OxqOzzYS.jvfsykm9CahHMUMtobrjY5SXNpAuC9RlrkbrQxjsRmD4gsC3uzN93K4iUulRBfIl5M6kM2SN1J6DRIt8fWP+RaaIQrJf7Iaw5ysE2ats39ysEOXtsXi41huXts3KmhEx+cEOJRv8haK.A81QcOACicXxcETUfn+CfFvlcE
-
@Jay You need to disable saveInPreset for your SubmitButton otherwise the file will be overwritten every time you press compile or open the plugin.
When you load it back in you need to specify the key for the data.
Console.print("your name is: " + n1["Name"]);
-
@Jay I am experiencing the same issue. Unable to load the stored Text.
-
Use thw
writeString()
function. https://docs.hise.audio/scripting/scripting-api/file/index.html#writestringAnd use
loadAsString()
to reload it from a text file. -
@d-healey I will make a Snippet shortly.
-
@d-healey Thank you.. Let me try.
-
@Jay @d-healey help me please.
HiseSnippet 1157.3ocsV17aaaCE.mxIJK1atnEa2KQNL3.j4Xm1tMfsg3ZG6MilO7pyR2gMTPK8rEQjIEjnhqQQwtr+v1eQC63.1AuGojhjSbBZ8vRtX99f7Ge58AGDJcfnHYHwp74yC.h0mXObtP40wiwEj9GYDDOZJWcN7FEo87.VTD3Rrr1360VXUdSh4u+5v1LelvAxEQHWH4Nvwbz6boCZ8BtueOlKbNeZAqeZq9NRQGouLFoYC6Fj.lykrIvoLsYkrIVa00kqjgCULEDg1zV5NenmblHw9K3Q7Q9fdQSxPbiRDS53w8cGjcSiHDqMGjeu2H4d+Y1mvc4WKO+9+PiBZtGEiAVkVFoMWBol2ER8j9t5M3Nvyp.dalf2irG5DxCT4Zzr8w18EJHbLCC6EwJwVRoOcC6NRzBgp9T1kPuPbw0dT6YMZrG8fFM18apVAC8QJ5UrPZeQPrh9czLGm.pNxoARAtn1NFs6rrGmEqtOWRTeCeRxotSeRTa7Q+OW3yE.cbrvQwkBpTjXf14PoeMmLO2C2b+XX2pUda0Jk6w8g5yB4JXnJjKlTaGbGo6uO8GjyntRZepQI0Eb7Yg.MHTF.gzHSz6P8A+NC.2Oi0ifLP5v78GgYs0tAfI2C7fOYNsuKvn7H5UP3bZaVD2g1U+aEVMPm4ABJiFGgXjvlGOZeObk.qBnXDaFV7PGAzHcRFFHxh9GyFA900GxqP+Pbo55lbyYWAtTtdyOhGBNXN675z946muDqHcoZ5ovx7D3GOA8TaQj4DLwOkLkvYbkG8TXFsW+i6RilGofoGV7a0oREbln1tUdakxUdWkaoZ73UpKM14CgqTst6Q384XMQ7zQPXVJQlgXI0x0ra89Uy5jjDTvPonufqNK.RWmWU2bEU0jzrH7W+T+iXJltPOU1.Shmhqww5H3JrqYRYeY6ifnKUx.j5qS8HVaqLZql0TfI.eBGO5ssM+tI4MEaCOu3h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
Awesome Sir. :) -
@d-healey said in Saving Text:
Thank you Sir.. your Comments are fantastic. Easy to understand the code... I am trying to make it. -
@DabDab Put the read code in on init.
-
@d-healey Excellent.. Through out the day I learned a lot. Searched many things on this forum. Thank you. :)
Writing this would have not been possible without your guidance. isFile OMG.