HISE Logo Forum
    • Categories
    • Register
    • Login

    A couple of expansion questions

    Scheduled Pinned Locked Moved General Questions
    expansionspaint routinepreset browser
    36 Posts 4 Posters 346 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rzrsharpeprod @d.healey
      last edited by

      @d-healey That's fair and good advice. I'll give it a go and will invariably come back with questions...

      Just going back to the load expansion preset wildcard, is that the {EXP:: wildcard or another one?

      d.healeyD 1 Reply Last reply Reply Quote 0
      • R
        rzrsharpeprod @d.healey
        last edited by

        @d-healey said in A couple of expansion questions:

        @rzrsharpeprod said in A couple of expansion questions:

        Can you/how can you load a preset from an expansion via code?

        Engine.loadUserPreset() should do it.

        You could also load the expansion when the user selects it in the grid, this will automatically populate the preset browser, then they can select a preset.

        @d-healey am I misunderstanding or is this the same problem here

        Link Preview Image
        Engine.loadUserPreset for expansions?

        Does Engine.loadUserPreset work with expansions? When I use a relative path, it adds "User Presets" at the beginning. If I use an object from full path, it c...

        favicon

        Forum (forum.hise.audio)

        there appears to be no resolution to it if so?

        Honestly I am at my wits end with all of this, I have been trying on and off for days and I am no further forward but a lot more frustrated. My project has ground to a halt and I don't know how to get it moving again. I know you said break it down into pieces but I don't know where to start so I can't.

        I genuinely have no clue where to start building the grid as child panels seem like a mystery and I can't see much documentation on them. I can't even figure out how to build the grid, nevermind how to make the child panels do anything and look a particular way etc.

        At this point I can't even make a regular button load a preset from an expansion. I can get it to load an expansion so the presets are showing in the preset browser but I can't get it to load a preset from that expansion. This means it just looks like the previous preset until you click a new one which is wrong as it has the background and controls from whatever expansion was last selected until a use clicks the new preset.
        I just want it to change the paint routine and background when you load the expansion. The only way I can see (or know) to do this is loading a preset but I can't get one to load without it being clicked on it from the preset browser.
        There must be a way? It's easy with regular presets using 'Engine.loadUserPreset()' but expansions just seem to be overly complicated or don't have the same functions as 'regular' presets so I can't get it to load one.

        It's so frustrating as it seems like a relatively simple thing but I am completely unable to find a way to do it.

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @rzrsharpeprod
          last edited by

          @rzrsharpeprod said in A couple of expansion questions:

          there appears to be no resolution to it if so?

          Ah yeah, I forgot about that. See if there is a bug report on github, if not, make one and link to that thread.

          @rzrsharpeprod said in A couple of expansion questions:

          I know you said break it down into pieces but I don't know where to start so I can't.

          Make a new project. Add a panel. Add a function that loops from 0 to 20 and adds child panels to the panel. When you've done that post the snippet here.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          R 2 Replies Last reply Reply Quote 0
          • R
            rzrsharpeprod @d.healey
            last edited by rzrsharpeprod

            @d-healey said in A couple of expansion questions:

            Make a new project. Add a panel. Add a function that loops from 0 to 20 and adds child panels to the panel. When you've done that post the snippet here.

            I'm not entirely sure if this is what you meant as it only creates the 1 child as far as I can tell - where do child panels show up, in the scriptwatch table?

            The child auto creates so you will need to delete the panel and add it back in as Panel1

            HiseSnippet 920.3ocsVE0aaaCDlxNpnVaEXEXOtGH7SxHoNxcscCvaXtwIdvnKoBycc6sBVJZahHQJPQ2Fit7ea+j1+f1ijxRxs1ECFq7ACy669nu638czwJIkUTHUHuNuXcNC4809yVKzKGujvEnomi79N+XhfkhyIJlPiIhDLcIOMA+mSiQmsNmTTvRPdds+UCCuNGgrq+8WNijRDTVsID5kRNk8a7Ltt1Z7nmwSSmPRXufm0v6GMZJUJFKSkqfnqseDJmPulrfcEw3VKej2ctHgqkpYZhlUf7N5LYx5YKkuU37+k7B9qSYlMCPyfCxYdhLMwDwFqnwlTIdSUn.AmRbcMosql7s9WxS3U1qqMeiE.WynY8vq01gW6sBuAMCunFg2NBIuFgzQtP599ynJdttFwDOek+TglolSfxdyPw4Kp0cZ6OVBdHz8yHWylnfMULBeRTzIX3idCCBfRegF+FhBau8Gf+Y7FlKX5wxrbo.1D10A20v4zScMF4FSAbQJWvvyWInZtTfoJFTGbImwghvdAuKnyomlqj4LklyJBvvJURIo3ahkEvu4iGhsqFHq2Kxa4I5k.zCiFtMvRFewRcMhEZtTgC4fQvFG+SNP9wG2yh9t.b4xcD1bxz4AD5VmDcwGi4C+HeoUvfyt5SeRRRMqPS0ZCmZu6WvfBpMK5dhKa5Mbu94RJvQ2W1+QFCcq5eWtRCWGgatNBWzqx85b0rVzeNnGeZZZXzMSfUTjoinBtx2aKisaCtEZW9zK2gAUW8RwURM64B2MN3O9iglOemXlVNkLMko1IrYfg5yQLTrJ60L0IPib5JVkifJZaoo+9klMmbPcJfFNJESEb8yyYh8MOAUJafu8GSOmnIF8bos3pNev14r2.CGcp6N9myJtVKys9Vp0f4cZK581n8MUZDGT320Mid.5l54myFstZynYirsSUF9m+djqsoxBVMB8oiYfAbxjUoD81S8Li5KAf58ViZLiSDEb85lOE7+1nv+qg388i4Z5xcGis1QLB2JeIhwxGPtm+Eymyn55.7H+I+0WlWKPNo9hKIZEG5G7uZU1L3MTJHOIBi1Dr40xzY51GY1a6XXhD6l2CqRvAl8dkfC1.hxHTk7UTmJy7D0csVfXRXecti+kl83AHqxC34G0OBkAuV9JJ0j9O.DK6lyCO.Ne+Av4QG.mGe.bdxAv4GN.N+3mki4Op7zUZYlSN.FhuvNNxy6BAA5rrcgnOHnAytA
            
            1 Reply Last reply Reply Quote 0
            • R
              rzrsharpeprod @d.healey
              last edited by rzrsharpeprod

              @d-healey alternatively this is probably more what you were meaning

              HiseSnippet 1195.3ocsV08aaaCDmJIpnRaEXEXOtGHxSxHNIxoYcaHqXMe1YrjTi3r1DTTTvHQaQDYRCJ5ZKTj21ev6+fsijxVxNJcEFq9Aae286Nd738UGoHhlkIjHGuKyGRQNeqa2btJ4vDBiiZeDx4Gb6P3zT7PhjxUXBOFGkvRiwuscGzA4CIYYzXjiypuRqgi2ZHym+92NfjR3QzRVHzaDrH5orALUI2Nu7OXoomPhoWxFTA8turcjfenHULB7tUcCQCIQ2R5SOmngshKx4QGGyTBYWEQQyPNqcfHNu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UecVlBY6k0+LhRxf7.2yGMnKTtGAkkDttlT+duhNizRGpo0QftTdrg3efOEBaoocJD1ZpPz.RjT7gHa0kdCtGa3.9D2r7pm6YZZbKjohCzyMbqPz.XYxODEou9aBEI0qyNKgNOaIzY2kPmebIz44KgN+zRnyO+Y0QuG+9iThA1xAfQmiMsgbbNlSfLKSVH5eA7MxxhA
              

              I don't really understand child panels. Ultimately will these be 'clickable' and be able to load the expansions as well as have their own individual images?

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @rzrsharpeprod
                last edited by

                @rzrsharpeprod said in A couple of expansion questions:

                I don't really understand child panels.

                Baby steps.

                I modified your first snippet, study it, play with the constants at the top.

                HiseSnippet 1237.3ocsVssaaaCFlJIZq1aEXoXW1KHB1.ji8RrShSJP1vbhygZrXGi3zzdW.MEUDQjHEjnSrQQ2dQ1E8QbuAa+TGrjcb2JLV8EBl+G+9OR1OTRYQQxPjQ4qmDvPFeq4fIBkaaWBWf5bBx3kl8IBlGNfDxDJLQXiotbOa7a6zGc7j.RTDyFYXr54ZMLJsFJ92e8qGS7HBJKmDBcijSYWv84pbp8a8abOuyH1rq49EjduVcnRQaombDftUMqiBHz6I2w5QzhshI50jHWjwlljcZv1wt4vcO3flNr5MaVm0rwA0I66TeOamWseycGNrgMaejwWcpMWICGnHJVDxXsik1SF3JeTj3fa3Q7gdL8gFnAfmSHelzyVGhZpn15XueVZKBAVoedRb0jj32a1kaymROOY9cwLv4ZTLAZrxrva0YfWihvqdA3s.HYT.Rqk.o0MGPC4ApbNZ77MlcDJVnCApSEgRhrnU93ZlskfDB0V9j6YmEBGlpg090qWCCepbX4xPsJRg68lt2d565eTuActr2.7u.bODu813qc4Q3Gg5LdHCqbYXwH+grPrzAyFGPDQbP8B1n8kWn0duXk6MUVpzaj+TA6dzUm2oGHViDmL.ZPXfCTOxXhLYiaXCkOFkAwGHg3.g24gbaP0rn6NlpszOPJfCVajxeCcfs81Is6A5ofxbgGWvvNiDTEfYLMjAEqjJfVfHqJkeOF9UV+wSRIdPbaqbAeYkZVsydqllUE7OkFEUvamG3YDOrfQfD1UPT.loKQ4tEkw8rlKamagJE0zkwuyUAJFiiC0XKlqiLDawA5P1ii+44pc.spUqDK36i+laPZ.nTVrPrsyidqTGmKKWXyFqicN9GKBuRkR3q4kVGqBBEK8lIHsRQJoYobEmjkIb7jxPv7EhdPdqznt5z7a0YRpkR9RC1Jho5Ki35po03Z3I0R7dsz7l1kenboxkxBXPdqMR3sQsDH3SFm5uZSqSahmCAZPkwrJtQkJfk+P4m1P4wHgwYTXcqtYpbo3B0XHUhKz.kmzufGorpTAxLi2Jj4KePOl52OdcsUhSlynwSKWEKJLe.CkE5vggqm1Re3T3IE8jJ1koHCrMddVNNKjmdPKT54wBWHa8t+v+MEsR1XTCle8FwlJHrea1klle5klE2oSSl6KHnTzQvUWFvDepM8nzkE5EronBDUEud8EoqWY12vYOFHCUHNrIsj4CAJcICEC6h2EhdSmSHJRlw.6B9JfEp35vv3D1CvckI6tKYdBK5dkLHV1zsTHiu9yz0iycamVSJdHtSeJgV+Qqjd1hThn5p1wjPXEN8dAjKxMvOzZQ344Y2znadRgRZiaQnfP.TLMVG9yrv3i+97v30+YqjWeTvY4gG5oW1AWyJsG4QTyd2q9EJoLfdqYtvSeoFbKjZRwWv7+1ExetPbcy9bE0cwXbkEfQn64KAFSeFyyMO0wgQU4.bMyyd2Wl2rftRNRwE2AKTC4PahIbq+.3oeTXSDQnWCo6VVQOElbtt9rNCLfIriO72vuTlMzmMRY1HiIxm.cy2RSlc0OT5YwT.LIheTYIyt5y3FOcb0Gd21sT5rl5IJtyxp3tKqh6srJ1bYUb+kUwCVVEe0+sh5mUezHkzOYrAg51+z30qFFmJHPGXb2J5e.62gmW.
                

                @rzrsharpeprod said in A couple of expansion questions:

                Ultimately will these be 'clickable' and be able to load the expansions as well as have their own individual images?

                Yes, child panels are just like a normal panel. You can add mouse callbacks and paint routines to them.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                R 1 Reply Last reply Reply Quote 1
                • R
                  rzrsharpeprod @d.healey
                  last edited by

                  @d-healey ok thankyou. I have modified it to reflect how it should look in the project by messing with the constants as you suggested.

                  The formation is now starting to make some sense at least.

                  Here is the modified version:

                  HiseSnippet 1215.3ocsV0saaaCElJwZaxaEXcXO.DAa.x0tN1cIsaHqXIw4GXrDGi3zzd0BXjniIhDo.EchMJ5tZOF6185rWiMrqF1Kv1gTRVzItEEFq5BAPd9gemuyOj8kh.ZZpPhb7NaZBE47YtClxUi5Lhv3nt6gbp5dnjEheY29ncmlPRSogHGmUOTK2wqBx782+vtjHBOfVtEBctfEPOhEyTk61e6ejEEc.IjdFK1R6M1taff2QDIFCXYU2VnDRv0jqn8HZ0VwE47Q6GxTB4.EQQSQNU1UDNcvHws7L8OmkxtLhpWzFM.bT11GHhB0HVuKpyHVTX+hXNEAdoeICrZFC7ktGyBYy1ujI9bi.boE17gyJyCuUmCdssgWKK3s.H4XAoJYP5gtCBjrDUoDMd9T2tbEUNj.ztMTxzEsxuUwsi.zfqZFStldfDVLyB+1OYyVMvOqUqZaUsJv8oJbuWb7E6+p96zaP2S5M.+bb6M2Bu953yFwRw2B4M7kTrZDEyGGeIUhECwzIIDdJCL2xGcN4Hs0aXLt2LcCDQiimo3w6b5gc6Ap8TiZCf7ME7u5VJkWnJlvCwRwsoEH7FhDmviLUjOGWDcWQUcDwIBNrvesb4qoiq0WOPyuX.jznpLdDiSwCGyCT.jwARJjrxx.ZER8qU80X3qp9WjHfDAgcnZDbV94tUeXuTumeM7iyChZ30Ki6hM2xxI.ecJDEfaNlnF0Lfxh7uCYW5gZ1VNhxtZjBLzfi0a2bSHk..znxPgD6y.gs1Byve+cxevd0qWyn3qM+K8ZPBXTQ.QBCKo.+7SuTWFOjNQS.L7WaiQOuL4ZY44x5fRFseTFbqYuSNUUZ3zB5XXjPHA2aQAf994gd8Yjb84XVur+AIMSop9hTlNk5OoAdZirSuQN4oOx2T0qpWQ.C56uVlr0ZjAgXxj7yqwrj0iv2AAZPUHrNtcsZfmeS06WUEQIRCiJobcEUUOShZBPkXqpnRR+HVpxuVMfYlzTRiE2n6Ui6Sj554rC4NN0zxbpQUnIAZLsJygFr6WWu0L3I38DJ5I4HC7M9thFNbgxzcaRQTDUtPw544x2kg9YSMZ.MwQioyTDFxM+jS229jS6A6AYM+VJJ3c4L0IIT9aabOJehgdJaNp.UUlYreQ9LVZ34L5sIBoBwfwodt2jnzoLjA112ugdQ28HJRgy.+BmUBUpX5vvYO5Mv8eYCv8b2ildsRjXzMeTEx4ieOO5IkG6Os8T6ElJcfyb9mUQnr5U8p+xAgRCzYqcIRX7cv0bfCJM7q1dQ33AEWynKZxgPdAqMDPHKHztDB+oED7p76e2e7qo+7urchoL15vJCKz8uoCtiUDNNhnl+hW8qMxE.0Tycam9FM3FH0T6Wi7+1swuuP7gt8YpfQKFiqr.LBUMeHvX9aXdf69CGRCTk.rh6Au5CyCVPmJFqX7qfAoRFTl3B23O.dFW.LAhv0iezEGqn69xV2RuVy.Cn7Pyh+E9xE1Vu1IWX6BgnXBTMeQPVOq9URehYG.SbyCD8bOVuF2tnM00sUyVnX3AaWDDnC+GCCDVrMOYIr4aVBa1XIrYykvlmtD17rkvlu8cZi9sx6LVIhyZGfM5uuYboiy9bBTYYpBQ+GPYZYGZ
                  
                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @rzrsharpeprod
                    last edited by

                    @rzrsharpeprod I wouldn't hard code the number of expansions, because more might be added in the future, or your users might delete some. You should get the number of currently installed expansions using the expansion handler - but don't do this in the demo (at least not yet). For now just play with child panels and get used to how they work.

                    Try adding a paint routine to them and draw an image on them. Then change the image or write some text or something when the mouse is hovering over the child or when it's clicked.

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    R 1 Reply Last reply Reply Quote 1
                    • R
                      rzrsharpeprod @d.healey
                      last edited by

                      @d-healey I shall give this a go thankyou. Will it not just repeat the same image for each child instance?
                      At this stage I can't see how they are distinguished from one another? But maybe that is what you are trying to teach me?

                      I just adjusted that number down as part of my testing to see if it did what I expected but I left it in as 15.
                      I was imagining that the number of child panels would ultimately come from the number of installed expansions so that's good. I'm not completely clueless...just mostly haha

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @rzrsharpeprod
                        last edited by

                        @rzrsharpeprod said in A couple of expansion questions:

                        But maybe that is what you are trying to teach me?

                        A child panel is a panel. All panels have a data object and you can store values or identifiers in there.

                        Also the main panel pnlGrid holds all the child panels in an array, that means each child panel has a unique index in that array that you can use to identify them.

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        R 1 Reply Last reply Reply Quote 1
                        • R
                          rzrsharpeprod @d.healey
                          last edited by

                          @d-healey Ok I messed around a bit this morning with paint routines and then attempted to add images. I added one at first and then I tried to implement a similar loop to the one drawing the panels.

                          I am at work right now so don't have access to everything so don't have a project with expansions etc setup but I think this will be the same image called for each panel.

                          HiseSnippet 1330.3ocsW80aaaCDmJIpaxaEXcXe.HBv.jabcr6ZZ2P1vb9agwZbLha6JvvVAqDcLQjHEnnSrQP6S68sWGvdXeh1Wi859FrcGkjkbpSQm6p.hB3w6N96N9S2ctuVEvSSUZhi2imlvINer6foRyn8FwDRR28QAOTKB6FyNkeWxtSSXoo7PhiypOD0vwaMh84u+1cYQLY.uTDg7TkHf+HQrvTJsemuSDEcHKj+XQbEsuWmtAJ4dpH0X.Mq51hjvBNCN0dLTsUbIN23fPgQoGXXFdJwYscUgSGLRcgLS+mJREuHhiKZSF.NJS7gpnPDwnTxdiDQg8Kh5TB3k9k4fUyxAel6QhPwL4k4hOwtAszhp4CmUlGdqNG7ZWEdsp.uE.ImJPZsLHcK2AAZQhobGDOejaWogqGxfzdUnjoKYke6Ft6o.Mjllwry3GpgEyrvu8c2pUC5CZ0p910pA49TC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Q+eaTr2VHdK29BSvnEiwUV.FA5y6CLlO.6McOX3PdfoDfq4d3yd+LsJIq61oPQZs.nJtv3dCfY3CfRQLIVGBj4rB9YX15V3ZLCLfKCsK9G3Iey13Zm7MaWrIIlAz4mGj8wKNh7GZk.XRZ+0AdtGgqosK9d00EY5wvz5OOH.C+6.UFVrM2cIr4KVBat2RXyVKgM2eIr4AKgMe4azF7GJsyXiJN6yAPP+Cr0McbNPx.lkkER9W.U2c+LB
                          

                          As you said, babysteps but feels like some progress is being made.

                          Long term would I need to call individual images to separate child panels or would a loop that is linked to the exp handler read the images inside the expansions in a similar ay to the image based preset browser uses the icon.png inside each expansion?

                          d.healeyD 1 Reply Last reply Reply Quote 1
                          • d.healeyD
                            d.healey @rzrsharpeprod
                            last edited by

                            @rzrsharpeprod said in A couple of expansion questions:

                            would a loop that is linked to the exp handler read the images inside the expansions

                            That's exactly what you should do. Loop over the expansions when you create the child panels and load the image into each one

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            R 2 Replies Last reply Reply Quote 1
                            • R
                              rzrsharpeprod @d.healey
                              last edited by

                              @d-healey Ok so I am getting somewhere. I can try it in my actual project later - albeit using a new preset so as not to ruin anything. That has expansions and the icon.png in each images folder of the expansions.

                              1 Reply Last reply Reply Quote 1
                              • R
                                rzrsharpeprod @d.healey
                                last edited by

                                @d-healey ok this is where it starts to get confusing again.

                                I tried to implement the load Icon.png from my other project and your tutorial but I just get error messages

                                Image {EXP::ExpansionName}Icon.png not found
                                

                                I have edited the error to say ExpansionName as it is doing for each expansion.
                                Each expansion has Icon.png in it's folder correctly.
                                I just created a presetbrowser quickly and copied the code in exactly from my other project and it worked for the preset browser so I know that the Icon.png files are ok as they loaded fine in the preset browser.

                                Here is my updated snippet, what do I need to do to get the Icon.png files to populate the child panels please?

                                HiseSnippet 1520.3ocsW0saaaCElJIpq1aEXcXO.bFXExMdN1IN0MvqXN+3zZrDGi31zBTzUvHQ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pbcb0hEg.q4Scg1jRbfXjTQajBrS.4J8UkHhX9LoNx1S0lZMkgYMHhPotu9gPmT9+elLob5i.UREl2MEQocIHHJ29vnGCJ2GdkdWWWqJi086glC8gjEd.sObD3Xkzp3krWUDeu6gyJ.+UOBWn.rEUQRcpF0baFeJge4BHcfX3IlJwccJ1.GQTZyAVJwk8iz7Y6TB8qudGF.pWqOjpGZjQPWOKcgO5DZrpYZFBSZfhakBafwkCndhKUuE50kDndDK9lwbgsAFP5oQ1Fhg9gyzmbgHMAfBdGgjdBW2eDtcfmWU+9KTm5M1.gazicKPsZBqfaxQ0EyyoAkfm7bGQSLDlhX1QSLe2iljcxIa8S9YLTvUmcm3S4uq4oPwyInFiIFUfoxngX9h3gXnNmwnW4KBjHFLuRNyK8kpyLTDryNwI5YsOfHISCFDWHW9z.ISsMLNfdILQpdBoblGPCuPJ7irMd.Ejwm7dl5woo8GZNI6hHBchfe4mapo1IR9sepYns5TaORvSGxrufC0BXXUypUJWYgf4NSGlSwbhwQLsMKNPnL3n5b3nYVb7m+Z3eryuSa5GQnyjvz8G55yTBSyJbF4RjyNhq5CAhU.jqYlqTM6HLZhbR1OTX94dW68at2adr72W3dWytLo8vEi2UV.dApz+23M9qHtiYq98o1xTvtl4gu3F+jgONPQ+r5.30h.FPmL6LxqG7UX1P6JBW0qBjYrh5ppdcE0ZUkoGk6Ds3ugehUVUs1HVY0oJQdDfx+Za8Eb02rb6HI.l3QeeWNyiUqwUu9cZO3Sndss8rg5ZNt4x53VKqi0VVG2dYc7AKqi0WVGe3+tipuvc2QRgm95DBcb2VQ8fMLZwI.aLh4h9GrTa0NN
                                
                                d.healeyD 1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @rzrsharpeprod
                                  last edited by d.healey

                                  @rzrsharpeprod

                                  for (e in expHandler.getExpansionList())
                                  

                                  You've already saved the expansion list in a const on line 9, so no need to call the function again, just use the variable name expList.

                                  I would combine the creation of the child panels and the loading of the images.

                                  for (i = 0; i < expList.length; i++)
                                  {
                                      local e = expList[i];
                                  
                                      // Create the child panel
                                      
                                      local img = e.getWildcardReference("Icon.png");
                                      cp.loadImage(img, "icon"); // Load the image into the child panel
                                  }
                                  

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  R 1 Reply Last reply Reply Quote 0
                                  • R
                                    rzrsharpeprod @d.healey
                                    last edited by

                                    @d-healey I'm still getting the same errors

                                    Interface:! Image {EXP::xxxx}Icon.png not found 
                                    

                                    I have commented out lines 33 to 35 in the snippet and on compile it creates the panels without images based on the number of installed expansions.
                                    If I remove the commenting out then I get the error above for each expansion.
                                    I have probably put your suggested code in the wrong place but I tried it in a few different places and got the same error each time using this project in the snippet. I really can't see why it isn't reading the Icon.png files, I thought the wildcard reference would point to the path and find the images?

                                    HiseSnippet 1473.3ocsW8taaTDD+tjbTrgJQAd.VrDUmSbcrKMTPgJx+bJVj3XE2VpTUoZ6cqsWk618zcqSrAUdEfG.9.ei2FdLfuxa.Lyt2+bpaUqaq+RxN+82L6LyNW+XoGKIQFaYW4dyhXV1enyfYB038GS4BqtGXY+IN2Ml6S5FRGwRHGPOm6as2rHZRBy2x1d06hBZWYMK8u+8a2iFPEdrBRVVOPx8XGwC4pBp82464AAGR8Y2iGVR5asSWOoXeYfbB.pUcZYEQ8NC7cOJJ1JNV1uWGetRFOPQUrDK601S5OavX4EBi7OfmveZ.COz1Z.XHC4CkA9HhQpV6OlG32OK3Sr.qzuHUrpIU7oNGy844zKRIejlAoPix4C6UlGdqNG7ZWFdsJAuE.I6RPZMCjtly.uXdjpfChmOvoqPwhGRgzdYnXj0Zk+9JN6KAIDplgzyXGFCGx0vs8M2pUCxsa0p91Uqt4lDPzDEUnRp5g+G4bZLIRDnqBtCIyPiXp8kgQRAbvsVJ+ZfIJT53cO8tc6A5ztUYx8t+wOY+SNZ.v3VfGMLXSi9NpvOfECj6HFwErldwLHE1YZDUjvkhT9t49.z4HN726TRaDW4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W+mrchz06kbXQ7Y876LBaqJ8mDPUyuBKt2dJCn3Zt8FwcCgEnTyJuW+as8ZeUg30b5yUdiWLFWYAXDJedWfwzuF3pNcFNj4oJ.3ZNG9v2Mq9aYdfbDL2OlCkJN8lDN.9fHOX1DUfCl.Z1qfsglysvyXFX.S3qO7evuTlswy1oLamwzJjBkyOwyz7heuw6qo.XRn+TqJNGimIsy5WcbvJ8P3SedhmGF92.lLrXct4RnyWrD5bqkPmsVBc9xkPmauD57UuTcvu5b2IJYnoc.HzuidtoscGAEprzUgV+eNG2GO
                                    
                                    d.healeyD 1 Reply Last reply Reply Quote 0
                                    • d.healeyD
                                      d.healey @rzrsharpeprod
                                      last edited by d.healey

                                      @rzrsharpeprod It might only work once the expansions are compressed

                                      imageList should be a const, not sure you need it though

                                      Libre Wave - Freedom respecting instruments and effects
                                      My Patreon - HISE tutorials
                                      YouTube Channel - Public HISE tutorials

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        rzrsharpeprod @d.healey
                                        last edited by

                                        @d-healey with the .hxi created you mean?

                                        Did the code look ok or at least as if it should work?

                                        d.healeyD 1 Reply Last reply Reply Quote 0
                                        • d.healeyD
                                          d.healey @rzrsharpeprod
                                          last edited by

                                          @rzrsharpeprod The code looked good. Yeah with the hxi.

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

                                          R 1 Reply Last reply Reply Quote 0
                                          • R
                                            rzrsharpeprod @d.healey
                                            last edited by

                                            @d-healey ok I'll give that a go once I go back up to the laptop in a little while.

                                            Presumably the type of expansion I have chosen won't have made a difference? I just chose encrypted with the standard 1234 encryption.

                                            Presuming that the images then load correctly, how do I go about making the clickable so be that the correct expansion loads when clicked?

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            23

                                            Online

                                            1.9k

                                            Users

                                            12.4k

                                            Topics

                                            107.7k

                                            Posts