Vectorized sliders and preset recall



  • What is the best way to store the value of a vector knob so it can be recalled on preset change?

    A - adding a hidden knob for each created widget
    B - a sliderpack that holds all the knob values of the interface
    C - or the answer C...



  • C - Panel.set("saveInPreset", true) 🙂

    HiseSnippet 1113.3ocsV01aaSDG+baLZwifXR7JdkUeAxABAGXafTEZcMokEAsKZYT1DBMc09h8o5bm04KIKZpeu3iDujuAv+6N+TZbKaQBqH0d+e598+4ahfGPxx3BjU6WtNkfr9X6oqYx3gwXJCMdDx5SrOCmIIBWCoiWmhyxHgHKq8+IEAq1sP5u+9IGiSvr.REID5BNMf7Kz4TYE0IG8yzjjSwgjWRmWS5Gdz3.NaHOgu.vy919nTbvU3Hx4XkX6Yir9nSBoRtXpDKIYfLGyCWOMluhYj+BZF8xDh5v.zTvPFxngwzjvIE9ZFBY0ZRkmuuwy+L6yngzR5UQfOUyvsRi5w.q81DRs1.RCtMHcJOITYfaAdV0fWKC7df8z.AMUVwQgs6aOlAImYXHrWGVFYQ68msrGxAIXx9ywWQNU.GJ0v6w998bejue2C63zwAB9YR2kXg6DLijLv8GcKzMhHGxmmxYvAuCLrOvnk4P+LBvHCujLlMQPfSGzyUJVPLB0wgxRnLh6rEr.Ikyb4LihpaPvS7BJLeO.AIfdcbdWGm1.6LdBoepfB2rgCXQW3qiy0Zae2XTAr76XHNI4Rnhx6F2cADq7jIPpW9B9BI.YuBH6E004cNsUwmUPnQFSyT24EJL4008KKo7azPYrmxpsgeQ8mAU6OMIwyTYChHHqK31wXPrffAa96P5.9spWosdFgFEK859GkVS6OJCUZuUwToNpjeWufDH8TVTSy45tGdizDDG3qJhFYPh5fgIT3+549L9RnS+KbGIvQQTVzV43y3KxHkAxxPCYIDz6pxXpLCclgP+.kYIgcMjy4p9ztWHVh6GBcJ5PH39Fkdq62zPnrPyaXirhDPCVrtZZ1BRpJw5sEifXLKhDVx3ZyebZW5IgP.Ya2Pk5p6.M.hC2T5k4RVo0W4VcCu5Nc8Mc3k6pKZ7v7xhZ8imykjmy7zE4NW63dSVyl0Hu7lnDhnQ1pQ7h6RQO1h4WRDEs8EBBy81bv58e+FrFXlFTSPNaLiJedJI+b0nWEOiWWv0GU5r0IU4i0opcsFDqhz1S1Q4SqTy3yEGDUpmv2oXBupaCQAHdOaSmGRGap1T9WOA8qiGA0YElArHbKoDgjphUViHKg8tlEGssGQxtRxS0xlOfDr8+4k91pK70Gst9gMGffr9b6aa.BJVO.qtxqTE1UDVeT8sFHKaKK8iD1ZAHrFlGtHAK2b2r5QH4Lf5pMVBpVzwxnx00ejxGvBa+FWXOnoz56Ibef8DpLHtY7tWC3ERv+ei27m+zw9jYyfMGUfsk8ouZWeqyG.TL6YiNCKETnjy97EymB60BH.RXPgXlplXOUqi4ru5rJxLkvB0G9G3Km4fhBHEyAELQywAB9aBLMbpGXcOME.SL8aKaCOxEN6V1oYa622GMGd22aBBTghuFvdy57s6fNe2NnyC2AcdzNnyi2Ac99cPme3N0Q8j6mtPxmaZS.BSNQOwyx5DFFpxzUjn+EPCtG32
    


  • @Christoph-Hart I've seen that already in the documentation/scriptpanel/vectorized knob example, but the value is not recalled...
    Maybe I should have something like a widget.changed() somewhere after a preset recall?

    EDIT:
    I'm just stupid....


Log in to reply
 

15
Online

546
Users

2.0k
Topics

16.0k
Posts