HISE Logo Forum
    • Categories
    • Register
    • Login

    Dynamically changing Preset Browser settings

    Scheduled Pinned Locked Moved Unsolved General Questions
    3 Posts 3 Posters 102 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.
    • M
      Mighty23
      last edited by

      I would like to have different settings for the various folders of the Preset Browser. For example, I would like to remove "Save Preset" when the user is in the Factory folder.

      In concrete terms:

      // USER OR FACTORY?
      
      // JSON for the Factory preset browser settings
      const var factoryPresetBrowserSettings = {
          "ShowSaveButton": false,
          "ShowExpansionsAsColumn": false,
          "ShowFolderButton": true,
          "ShowNotes": true,
          "ShowEditButtons": false,
          "ShowFavoriteIcon": false,
          "NumColumns": 3,
          "ColumnWidthRatio": [0.333, 0.333, 0.333]
      };
      
      // JSON for the User preset browser settings
      const var userPresetBrowserSettings = {
          "ShowSaveButton": true,
          "ShowExpansionsAsColumn": false,
          "ShowFolderButton": false,
          "ShowNotes": false,
          "ShowEditButtons": true,
          "ShowFavoriteIcon": true,
          "NumColumns": 3,
          "ColumnWidthRatio": [0.333, 0.333, 0.333]
      };
      

      I would like to be directed towards a method.

      Free Party, Free Tekno & Free Software too

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

        I'm not sure changing those properties dynamically will work. But to stop the user overwriting factory presets you can enable the Read Only Factory Presets option in Project Preferences.

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

        1 Reply Last reply Reply Quote 1
        • orangeO
          orange @Mighty23
          last edited by orange

          @Mighty23 Yes dynamically changing the properties of the Preset Browser Floating Tile works.
          I use this technique for changing the mode between the dropdown preset browser and the large preset browser.

          Basically, the preset browser in these two images is the same. Properties are changed dynamically.

          w1.jpg


          w2.jpg

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

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

          27

          Online

          1.7k

          Users

          11.9k

          Topics

          103.7k

          Posts