HISE Logo Forum
    • Categories
    • Register
    • Login

    Save knob state with "saveInPreset" disabled

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 247 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.
    • bendursoB
      bendurso
      last edited by

      Hi!

      I would like to save the state of a knob when saving a project in the DAW, without activating the "saveInPreset" parameter. I mean, I don't want the "saveInPreset" option to be enabled, because it's a general setting that should not be applicable to presets. However, the plugin should still save the knob state to the DAW project. How could I do that?

      Thanks :)

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

        Link Preview Image
        Restoring properties with DAW session

        Are only components that are set to saveInPreset saved/restored with a DAW session?

        favicon

        Forum (forum.hise.audio)

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

        bendursoB 2 Replies Last reply Reply Quote 1
        • bendursoB
          bendurso @d.healey
          last edited by

          @d-healey Thanks, I'll try that :)

          1 Reply Last reply Reply Quote 0
          • bendursoB
            bendurso @d.healey
            last edited by

            @d-healey In the last snippet, could it be that you enabled "saveInPreset" in Knob1 by mistake? (https://forum.hise.audio/topic/6410/restoring-properties-with-daw-session/22?_=1692136877228)

            I tried the code you used with saveInPreset disabled and it didn't work for me. And if I enable saveInPreset, the state of the knob is saved in the presets.

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

              @bendurso You have to have saveInPreset enabled, but in your postcallback you check if it's an internal preset load (DAW value) or not.

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

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

              18

              Online

              1.7k

              Users

              11.8k

              Topics

              102.4k

              Posts