Showing preset name in a label



  • If I need to show the current preset loaded in a label... what about "Engine.getCurrentUserPresetName()" ?



  • @ossian1961 That's what I use



  • @d-healey said in Showing preset name in a label:

    @ossian1961 That's what I use

    I know I'm bit lazy sometimes... David, one exemple? 😉



  • @d-healey Ok, I think I solved it in that way using the @Christoph-Hart CustomUserPreset exemple 😉

    HiseSnippet 1454.3ocsW0saaaCElJMJK1qdnsnXWNP3qTJxbjsyOtqnndwIoMqoIAysEaqqqkQh1lKzjBTzNwqnuaC659HrGh8FrcHorkxOMc4hpDXXd9Qmuy24PxiOTIinooRExqzymjPQd2zu6DgdPmADl.s6VHu632YTpVN7EoT0gJZJUi1bRBIMkFi77twiM14UZdj84edzlDNQDQyEgPuTxhn6wFxz4RSZ+TFmuCIl9b1vBVuZ6cijhNRtbDfoa3GhRHQGS5S2mXLaNej2BaGyzRUWMQSSQdyuoLdR2AxSDN6eIKkcDmZVTG0EdQNw6H4wFDajh5LfwiObZtmhf2xg4LwMbLwc8eFKlMSdNibKqBbtGE4Cu4tJ3UuH7B++COuBvadG7tse2HEKQmqwfsuzeWglp5QfRPQX4rEM2q886HAKD5ZCIGS2QAKl4Qv5ggKiWKLboGTobkxqrB94CXo39TcJlf4rTMV1CS3bLYLgwIPdfGAsE3DaeQZkxPsCLZLQ4r9g3sE8YBZM3Uj2+rGnJHKD26dXEcnbLMEqGPwwLEMBXuIXATuSw8TxgVEID8fZ36sRkxLAGdi3diDQZlTXPm60Z5PBTTNQyFSODreoJkeWkxX3gKiHbLGvSQ80RS3LcP0UpZ.iwN2mrdA7Zbpnud.9gOD2bImXyihpGoDX9qZ75GjK08sLcUqBZduI4xICfez5I64njWYbMWRMC3UioAFFKKry3+NxjIt72lhYrxIL8.4H8LhIEyDZIThDzSvDkhLoR4dRU.CjaKDKU.A0RFkNH3rrFaIWDswbOIIdZLAexhYVDFynmjHUZ6qsXJlWZ6R41ZHjpSa0fn0QNLQJfEAUuno1BvEEWCVGTkooCSqtbwT32kLQP0eUTcFtOeWgTbwWmAMJIOHZJTVFPNeDMuOAx9GqHGcdFOuMzRtXhHFZo.VhoqUobordbij7lba47U12+qMfrzdjin75tTRSOUelLpfgtFp2ayqKmRxxiNvFwifCGCthb0QO4UIGHJTYHwwVYAUcp.TUuQcyGFWmZUpoaQlPUZFMENyX3Oz8f8K3x6LQoT0SXw5AU+Nby0ZsrY8.Jq+.sQPnYMjUN7.77kvF4GUzYjRAgMmLsMo1ZM19u4uBk58kZ5AhfkJ+txkJ+9KnoWuKSUFCwopKSq4VI0U3VfXzvinpocPY1AGNe1S+8+3m9W7xoHGOWvPoXWASePBU7wtS.kUbfaGlKCTfoZ6cCeU1cCc4rXpBwfq.9B+mJjGUGYwa18s+4G9ve+Hz4ctRly1Rj02E8ckqoNOue8PD5E6tEQSLWNkgj7VDP1Vzwvs9tqpJ4uEM8XsLAhwryAfKx+jf8z7AC941SxWLossUKWvaa650xk7j1nBg5VtPcmrPQieY14X1vcW+KtApPra+aEhc62dtX+1wyhsu2eABRIio6lskzUdsmfg79Zf1JuQX4cFw4keBg2q7uPURTOf85x9iBCAE11HyMwyh9Gb5j9Paf0L8DSyyBPaEOFcT+oyIcS+5q1X8v0a1bcWzJnXi5MueqV2+9MJnngQypMpu95gazpQKTZjYmvlDEbeezwBnEy.7FH3xcCmLsELmOW7S1pbpgNlXpUlubS3KSosE544RyYkrE9lrIEMmDj0dUL4VsQqvVMaFtwZHzEGDBFGSFOBtV+rynYFLMSAry8LCCYF3QjxzSJN35mkA29+B2a6eHSGM3xw6bWBdM65+Li2rwfq3ucudvVhbvNu+N+zm+YdQ+HLhCSz+YDshY5l1ezvtPCQDEPhPP4liW8lybPnacnYsgY5REw1E+K7jortYsWlx5SUhFRfN+2D4NAzLn8hVI.lD1cek7elYMd1QeFbODl9+MQQFh3aAje4dz3Z6QyqsGqds8XsqsGqes8XiqsGstBOL+TqueD76OcaK.AGts8dGOusEleAhsCD8eve9hP.
    


  • ...now I just link the list to the PresetBrowser...



  • @d-healey Ok, I'm a perfect donkey! LOL
    Here's the simple code to use 😉

    const var Label1 = Content.addLabel("Label1", 10, 3);
    Content.setPropertiesFromJSON("Label1", {
    
      "width": 358,
      "height": 30,
      
    });
    
    Label1.set("text", Engine.getCurrentUserPresetName());
    

Log in to reply
 

8
Online

491
Users

1.7k
Topics

12.9k
Posts