Forum

    • Register
    • Login
    • Search
    • Categories

    Access Expansion data without loading?

    Scripting Forum
    2
    7
    28
    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.
    • dustbro
      dustbro 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.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey @dustbro 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

        dustbro 1 Reply Last reply Reply Quote 0
        • dustbro
          dustbro @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.healey 1 Reply Last reply Reply Quote 0
          • d.healey
            d.healey @dustbro 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

            dustbro 1 Reply Last reply Reply Quote 0
            • dustbro
              dustbro @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.healey 1 Reply Last reply Reply Quote 0
              • d.healey
                d.healey @dustbro 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

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

                  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

                  23
                  Online

                  741
                  Users

                  5.4k
                  Topics

                  50.4k
                  Posts