Forum

    • Register
    • Login
    • Search
    • Categories

    Create folder on Users disk, or embed files that are not ".preset" files

    Scripting Forum
    4
    7
    182
    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.
    • ulrik
      ulrik last edited by ulrik

      Lets say a user have one of my plugins installed, and I have updated the plugin with some files that will be written automatically in to a folder that is not present in the users "Application support" for this plugin, is it possible to script the making of a Folder? Or do the user have to make it by her/him self?

      The files that the plugin automatically writes to disk should be placed inside the "User Presets" folder, however it is not ".preset" files, so Hise doesn't automatically embed those files.
      I know that if I make an installer I can make this easy, but I just wonder if it's possible?

      So the questions are

      1. Is it possible to script the making of a folder?
      2. Can I make Hise embed the files so it will placed at the right location inside "User Presets", even if it's not ".preset" files?

      Hise Develop branch
      MacOs 13, Xcode 14.0.1
      http://musikboden.se

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

        You need to use an installer

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

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

          @d-healey I see, thank you!
          While I have you here David ๐Ÿ™‚
          If I use

          Engine.dumpAsJSON();
          

          where do I have to place this function in my code, so that it will run after the plugin has created the "User Presets" folder?

          Hise Develop branch
          MacOs 13, Xcode 14.0.1
          http://musikboden.se

          1 Reply Last reply Reply Quote 0
          • Lindon
            Lindon last edited by

            So @d-healey is correct - right now an installer is your only way - but I think its clear theres a whole slew of requirements around this "additional content" area.

            So if you are a kontakt developer you will know that there's a local-to-your-instrument Data folder into which you can place anything and there's an api call to read several different file formats, as well as an api to call the OS native save/load dialog.

            HISE Development for hire.
            www.channelrobot.com

            ulrik 1 Reply Last reply Reply Quote 1
            • ulrik
              ulrik @Lindon last edited by

              @Lindon Oh I wish Hise could have some of those functions, thank you Lindon!

              Hise Develop branch
              MacOs 13, Xcode 14.0.1
              http://musikboden.se

              C 1 Reply Last reply Reply Quote 0
              • C
                coreyu21 @ulrik last edited by

                @ulrik I used innoscript to install theupdated dll, while creating and adding the expansion data such as user presets folder etc. takes a min to figure out innoscript but pretty easy once you get it. Thereโ€™s an example in the forum. That is where I started๐Ÿ™‚

                I also hear there may be an easier way in the near future possibly๐Ÿค™

                ulrik 1 Reply Last reply Reply Quote 1
                • ulrik
                  ulrik @coreyu21 last edited by

                  @coreyu21 thank you!

                  Hise Develop branch
                  MacOs 13, Xcode 14.0.1
                  http://musikboden.se

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

                  5
                  Online

                  1.1k
                  Users

                  6.8k
                  Topics

                  62.7k
                  Posts