HISE Logo Forum
    • Categories
    • Register
    • Login

    New API: Server and FileSystem

    Scheduled Pinned Locked Moved General Questions
    71 Posts 8 Posters 7.7k 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.
    • Casey KolbC
      Casey Kolb
      last edited by

      This is awesome! Have been waiting for these features. Bravo!!

      Casey Kolb
      Founder & CEO of Lunacy Audio
      Composer | Producer | Software Developer

      1 Reply Last reply Reply Quote 1
      • ustkU
        ustk @Christoph Hart
        last edited by

        @Christoph-Hart Did someone tinkered with the File APIs?
        I tried getFolder and findFiles with no success.
        I put a *.js on the Desktop and used the location wildcard but findFiles returns an empty array...

        FileSystem.getFolder("Desktop");
        var fileList = FileSystem.findFiles("Desktop", "*.js", true)
        

        My end goal is to dump an encrypted file (but I don't see a dump file method except for the ol'dumpJSON of course)

        Hise made me an F5 dude, browser just suffers...

        1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart
          last edited by Christoph Hart

          Use FileSystem.Desktop as argument.

          And your end goal is one line of code :)

          FileSystem.getFolder(FileSystem.Desktop).getChildFile("license.dat").writeEncryptedObject({"key": "1234"}, "1haDUHNEK1($NR");
          
          ustkU 3 Replies Last reply Reply Quote 1
          • ustkU
            ustk @Christoph Hart
            last edited by

            @Christoph-Hart 😎

            Hise made me an F5 dude, browser just suffers...

            1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @Christoph Hart
              last edited by ustk

              @Christoph-Hart Thanks it works like a charm.
              Although when using AppData location it does not work in Hise (Unknown function 'getChildFile')
              USE_BACKEND issue?

              Hise made me an F5 dude, browser just suffers...

              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @Christoph Hart
                last edited by

                @Christoph-Hart AppData does not work on compiled plugin either

                Hise made me an F5 dude, browser just suffers...

                1 Reply Last reply Reply Quote 0
                • Christoph HartC
                  Christoph Hart
                  last edited by

                  Ah yes, I forgot to implement that one - it's a bit annoying because I have to rewrite some things to get the app data folder working in HISE...

                  ustkU 1 Reply Last reply Reply Quote 1
                  • ustkU
                    ustk @Christoph Hart
                    last edited by

                    @Christoph-Hart Just seen the commit πŸ‘
                    testing...

                    Hise made me an F5 dude, browser just suffers...

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

                      Is there a way to pull an image from a server to paint onto a panel?

                      Also could you add a function to check for network connectivity? because it's desirable to display different content if the user is working offline.

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

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

                        FileSystem.browse(var startFolder, bool forSaving, String wildcard, var callback)

                        Documentation not clear. What is the wildcard? Is there a way to get the start folder to be the config files location (similar to the {PROJECT_FOLDER} wildcard)? When I set forSaving to true it brings up an Open file dialog, when set to false it brings up a Save dialog. Shouldn't this be the other way around? What parameters are passed to the callback, is it just the file?

                        FileSystem.getFolder(var locationType) What is locationType?

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

                        Casey KolbC 1 Reply Last reply Reply Quote 1
                        • Casey KolbC
                          Casey Kolb @d.healey
                          last edited by

                          @d-healey I see your newest develop branch commit includes the new Server API 😍 Is this safe to use for now?

                          Casey Kolb
                          Founder & CEO of Lunacy Audio
                          Composer | Producer | Software Developer

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

                            @Lunacy-Audio Use Christoph's Scriptnode, it's newer than my fork and includes all my changes.

                            Free HISE Bootcamp Full Course for beginners.
                            YouTube Channel - Public HISE tutorials
                            My Patreon - HISE tutorials

                            1 Reply Last reply Reply Quote 1
                            • Christoph HartC
                              Christoph Hart
                              last edited by

                              Feel free to test it and give feedback, but donβ€˜t rely on it yet for a project as I might have to do some breaking changes for the API

                              A 1 Reply Last reply Reply Quote 1
                              • A
                                andioak @Christoph Hart
                                last edited by

                                @Christoph-Hart said in New API: Server and FileSystem:

                                Feel free to test it and give feedback, but donβ€˜t rely on it yet for a project as I might have to do some breaking changes for the API

                                Was there ever a proper examples page for this? I canΒ΄t find one. Just this page and the links at the top. But the docs pages do not have their own category pages with examples:

                                Screen Shot 2020-09-07 at 17.41.45.png

                                1 Reply Last reply Reply Quote 0
                                • Christoph HartC
                                  Christoph Hart
                                  last edited by

                                  Oops, you're right, I think the great @Dominik-Mayer has accidently uploaded an older doc state. I'll fix it tomorrow. If you can't wait, you can browse the original markdowns here:

                                  https://github.com/christophhart/hise_documentation/tree/master/scripting/scripting-api/file

                                  Casey KolbC 1 Reply Last reply Reply Quote 1
                                  • B
                                    BWSounds
                                    last edited by

                                    This seems pretty cool, I dont really understand it, but will this allow you to export midi on a compiled plugin?

                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      BWSounds @BWSounds
                                      last edited by

                                      @BWSounds said in New API: Server and FileSystem:

                                      will this allow you to export midi on a compiled plugin?

                                      I couldn't come up with anything πŸ€·β™‚

                                      B 1 Reply Last reply Reply Quote 0
                                      • Casey KolbC
                                        Casey Kolb @Christoph Hart
                                        last edited by

                                        @Christoph-Hart Still waiting on updated doc state. Can we fix this please?

                                        Casey Kolb
                                        Founder & CEO of Lunacy Audio
                                        Composer | Producer | Software Developer

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          BWSounds @BWSounds
                                          last edited by

                                          @BWSounds said in New API: Server and FileSystem:

                                          @BWSounds said in New API: Server and FileSystem:

                                          will this allow you to export midi on a compiled plugin?

                                          I couldn't come up with anything πŸ€·β™‚

                                          Bump bump πŸ˜… does Anyone have a clue on if this is possible?

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            arminh
                                            last edited by

                                            Bump bump :)

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

                                            17

                                            Online

                                            2.0k

                                            Users

                                            12.6k

                                            Topics

                                            109.8k

                                            Posts