HISE Logo Forum
    • Categories
    • Register
    • Login

    Save knob state with "saveInPreset" disabled

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 265 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

        https://forum.hise.audio/topic/6410/restoring-properties-with-daw-session?_=1692136877228

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - 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.

              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

              29

              Online

              2.0k

              Users

              12.8k

              Topics

              110.8k

              Posts