HISE Logo Forum
    • Categories
    • Register
    • Login

    getExpansionForInstallPackage()

    Scheduled Pinned Locked Moved Scripting
    15 Posts 2 Posters 433 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.
    • d.healeyD
      d.healey @d.healey
      last edited by

      Assuming your install button is momentary you should check its value before showing the file browser, otherwise it will trigger twice.

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

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

        @d-healey ahhh, we’d be using obj.Expansion, makes sense now! And will take note on the button check, Thanks again!

        i make music

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

          @d-healey tried using loadDataFile but kept on getting unkown function errors, how do I use it? Or what should I put in as the relative path?
          Tried this:
          Expansion.loadDataFile(obj.Expansion)

          i make music

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

            @Casmat Expansion should be an expansion object.

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

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

              @d-healey Ahh, thanks! what should i put in as the relative path?

              i make music

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

                @Casmat Probably just needs the name of the json file.

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

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

                  @d-healey Tried it:

                  obj.Expansion.loadDatafile("expInfo.json")
                  

                  Still gives an error:

                  function not found
                  

                  i make music

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

                    @Casmat

                    What does Console.print(obj.Expansion.getProperties().Name); output?

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

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

                      @d-healey Morphology - Night Owl name of the expansion trying to import

                      i make music

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

                        @Casmat Oh I see the problem. You have a typo ;)

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

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

                          @d-healey haha! Found it! silly me😛 sorry for the hassle!

                          i make music

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

                          11

                          Online

                          2.0k

                          Users

                          12.8k

                          Topics

                          111.1k

                          Posts