HISE Logo Forum
    • Categories
    • Register
    • Login

    Access Expansion data without loading?

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 326 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.
    • Dan KorneffD
      Dan Korneff
      last edited by

      Is it possible to access data (images, additional code) from an expansion without loading it?
      I'm looking for a quick way to distribute some additional content without going full blown expansion.

      Dan Korneff - Producer / Mixer / Audio Nerd

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

        @dustbro You can access anything with the File and FileSystem APIs

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

        Dan KorneffD 1 Reply Last reply Reply Quote 0
        • Dan KorneffD
          Dan Korneff @d.healey
          last edited by

          @d-healey that's great news. If I have an intermediate monolith file (.hxi), how do I pass the Blowfish key and read contents?

          Dan Korneff - Producer / Mixer / Audio Nerd

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

            @dustbro

            If I have an intermediate monolith file (.hxi), how do I pass the Blowfish key and read contents?

            Oh that's different. I was assuming file based expansion.

            I think you can access the contents of expansions without loading them - play around with the get functions

            0b07b47c-6312-422c-96d0-b8f12c986266-image.png

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

            Dan KorneffD 1 Reply Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @d.healey
              last edited by

              I think you can access the contents of expansions without loading them - play around with the get functions

              I don't think those are available without using the the expandionHandler :/
              I would just use the expansion system, but the built in preset browser gets weird.

              Dan Korneff - Producer / Mixer / Audio Nerd

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

                @dustbro said in Access Expansion data without loading?:

                I don't think those are available without using the the expandionHandler :/

                You can use the expansionHandler without loading an expansion.

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

                Dan KorneffD 1 Reply Last reply Reply Quote 1
                • Dan KorneffD
                  Dan Korneff @d.healey
                  last edited by Dan Korneff

                  Ok, so I can get access to the image files embedded in an .hxi by using:

                  var MyImage = "{EXP::MyExpansionName}MyImageFile.png";
                  ImagePanel.loadImage(MyImage, "pic");
                  

                  But I can't seem to find the magic combo to get loadDataFile() working so I can load the AdditionalSourceCode
                  I've tried:

                  var currentExpansion = "{EXP::MyExpansionName}";
                  reg expansionData = currentExpansion.loadDataFile("data.json");
                  

                  EDIT:
                  Got it

                  for (e in expansions)
                  {
                      var p = e.loadDataFile("data.json");
                     	Console.print(trace(p));
                  }

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  51

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts