Forum
    • Categories
    • Register
    • Login

    Expansion.getSampleMapList() always empty - full expansions

    Scheduled Pinned Locked Moved Scripting
    expansionsample maplist
    4 Posts 2 Posters 301 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.
    • David HealeyD
      David Healey
      last edited by David Healey

      Here's my little test function

      inline function test()
      {		
          for (x in eh.getExpansionList())
          {
      	Console.print(x.getSampleMapList().length); // Outputs 0
          }
      }
      

      Is there something I need to do to initialise the expansion?

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

      C 1 Reply Last reply Reply Quote 1
      • C
        clevername27 @David Healey
        last edited by

        @d-healey Sorry, mate - I haven't used Expansions.

        1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey
          last edited by

          Bump, still broken

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

          1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey
            last edited by

            This seems to be due to a missing call to initialiseFromValueTree when initialising full expansions - so I assume it works for other expansion types.

            However I have some feeling in the back of my mind that there's a performance reason for not calling this for full expansions. @Christoph-Hart Any ideas or solutions?

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

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

            28

            Online

            2.1k

            Users

            13.1k

            Topics

            113.5k

            Posts