HISE Logo Forum
    • Categories
    • Register
    • Login

    Save preset to specific directory

    Scheduled Pinned Locked Moved Scripting
    5 Posts 3 Posters 244 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.
    • T
      tomekslesicki
      last edited by

      I'd like to save the current preset to a specific folder in the User Presets directory, and have its name taken from a user input to a label. I figured out the label part already. The folder structure is:

      User Presets > User

      How can I direct

      Engine.saveUserPreset(userlabel);
      

      to this specific subfolder?

      And how to check if a file with such a name already exists?

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @tomekslesicki
        last edited by

        @tomekslesicki dont you just pre-pend the label to your preset path?

        HISE Development for hire.
        www.channelrobot.com

        T 1 Reply Last reply Reply Quote 0
        • T
          tomekslesicki @Lindon
          last edited by

          @Lindon I think the question is - how can I put the path into the script? :-)

          1 Reply Last reply Reply Quote 0
          • T
            tomekslesicki
            last edited by

            Ok, I just figured it out, thank you!

            For everyone looking for this in the future, you just need to include the path in the

            userlabel
            

            part of the script above.

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

              @tomekslesicki or you can pass a File object into the method.

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

              33

              Online

              1.7k

              Users

              11.7k

              Topics

              102.0k

              Posts