No internet connection
  1. Home
  2. Support

Key input does not changes at the first

By Joaquin Pesce @Joaquin_Pesce
    2026-01-23 15:30:13.242Z

    Title

    Key input does not changes at the first

    Content type

    script

    Content name

    Autoalign to A_BOM1

    Content package

    JPX shortcuts

    Version info

    OS: macOS 26.1.0
    SoundFlow: 6.0.3
    Pro Tools: 25.10.0.144

    What do you expect to happen when you run the script?

    Hello! i expect this: -Autoalign Post (2.3.2) is opened in audiosuite. -Processing options set to clip by clip and create individual files Up to this point everything goes well

    Here is when the script fails:
    Open sidechain menu and select Track "A_BOM1"
    If the plugin was previously set to another key input, it doesn't change it, resulting in an awfull processing. I have to run the script again for aligning to the correct reference channel.

    It's supposed to automate the worst part of Auto Align that is changing the Key input... but it fails.

    Thank you!

    Are you seeing an error?

    What happens when you run the script?

    Here is when the script fails:

    //Open sidechain menu and select track "A_BOM1"

    If the plugin was previously set to another key input, it doesn't change it, resulting in an awfull processing. I have to run the script again for aligning to the correct reference channel.

    It's supposed to automate the worst part of Auto Align that is changing the Key input... but it fails.

    Thank you!

    How were you running this script?

    I used a Stream Deck button

    How important is this issue to you?

    5

    Details

    {
        "textExpected": "Hello! i expect this:\n-Autoalign Post (2.3.2)  is opened in audiosuite.\n-Processing options set to clip by clip and create individual files\nUp to this point everything goes well\n\nHere is when the script fails:\nOpen sidechain menu and select Track \"A_BOM1\" \nIf the plugin was previously set to another key input, it doesn't change it, resulting in an awfull processing. I have to run the script again for aligning to the correct reference channel.\n\nIt's supposed to automate the worst part of Auto Align that is changing the Key input... but it fails.\n\nThank you!",
        "textWhatHappens": "Here is when the script fails:\n\n//Open sidechain menu and select track \"A_BOM1\" \n\nIf the plugin was previously set to another key input, it doesn't change it, resulting in an awfull processing. I have to run the script again for aligning to the correct reference channel.\n\nIt's supposed to automate the worst part of Auto Align that is changing the Key input... but it fails.\n\nThank you!",
        "inputHowRun": "I used a Stream Deck button",
        "inputImportance": 5,
        "textTitle": "Key input does not changes at the first "
    }

    Source

    //Open the plugin and save the plugin window to the "asWin" variable
    var asWin = sf.ui.proTools.audioSuiteOpenPlugin({
        category: 'Other',
        name: "Auto-Align Post"
    }).window;
    
    //Set processing options
    asWin.audioSuiteSetOptions({
        processingInputMode: "ClipByClip",
        processingOutputMode: "CreateIndividualFiles"
    });
    
    //Open sidechain menu and select taack "DX x"
    sf.ui.proTools.firstAudioSuiteWindow.popupButtons.whoseTitle.is('Key Input').first.popupMenuSelect({
        menuPath: ["A_BOM1"],
    });
    presetMenuPath: ['Gugge'], // Path to folder/setting
        // Render
        asWin.audioSuiteRender();
    
    // Close plug-in window
    asWin.windowClose();
    

    Links

    User UID: YyhP63siAEaW4m6QUuvFJaimHvl2

    Feedback Key: sffeedback:YyhP63siAEaW4m6QUuvFJaimHvl2:-OjfTYFlpPNqThkC9sOe

    Feedback ZIP: Z2b7/7xPklm8fBYQ08rC5PnElAPazqHjgC1ItO9a9lhknHlQV79Ug2SQRPL2I2HX533s7TOu3+p0vP9OYCUnmuzl3IupKKSZ5EzhbHETIj8LZ5W6A+Cgq9yNynb08T2VF1KVSX+bDRG4r//jbYlIWCSz339hTcw7TI8gCDRenMBvG06aeOxb5AwcTsfUf6MCrYAk8Adz6pJpRXN9wnuvQ4SgDFLmBXFh6PGGuF8Y7HaBiqjgCaSs6G87LX/IZhpA3bo0Nqt+MgVZ4efnXoyf4WzKTO6CENsdgTsD+CgF2E24odc11vQWCswTk+1qXM5X1FHzsrEgkotVqFMYnQd4fw==

    Solved in post #6, click to view
    • 8 replies
    1. Kitch Membery @Kitch2026-01-26 19:24:55.342Z

      Hi @Joaquin_Pesce

      Unfortuntely I don't have Autoalign Post to test this, but I do see a couple of things in your script that might be causing the issue.

      Let me know if this works.

      if (sf.ui.useSfx) sf.ui.useSfx();
      
      // Open the plugin and save the plugin window to the "asWin" variable
      const asWin = sf.ui.proTools.audioSuiteOpenPlugin({
          category: "Other",
          name: "Auto-Align Post"
      }).window;
      
      // Set processing options in the opened AudioSuite window
      asWin.audioSuiteSetOptions({
          processingInputMode: "ClipByClip",
          processingOutputMode: "CreateIndividualFiles"
      });
      
      // Recall preset from the opened AudioSuite window
      asWin.popupButtons.whoseTitle.is("Preset").first.popupMenuSelect({
          menuPath: ["Gugge"],
      });
      
      // Open sidechain menu and select taack "A_BOM1"
      asWin.popupButtons.whoseTitle.is("Key Input").first.popupMenuSelect({
          menuPath: ["A_BOM1"],
      });
      
      // Render
      asWin.audioSuiteRender();
      
      // Close plug-in window
      asWin.windowClose();
      

      I've also updated the script to use SFX. This will allow for the pop-up menu items' menu paths to be selected without the need for opening the pop-up menus.

      Let me know if that works.

      1. JJoaquin Pesce @Joaquin_Pesce
          2026-01-28 13:23:35.648Z

          Hey! how are you?

          Thank you very much for your help. Its working!! so much better and faster than the other script! never thought a single line of code could change so much. Should i add this line to any script that work with UI and pop-up menu items?

          Thank you again!

          1. JJoaquin Pesce @Joaquin_Pesce
              2026-01-28 13:55:50.616Z

              Hello again!

              i thought that the change was only on the first line so i just added that line to the previous script and it worked well, but for the first preset "A_BOM1" I just copied the entire code you sent me and that one is not working, i get an error with this log:

              28.01.2026 10:51:57.01 <info> [Backend]: #StreamDeck: KeyDown (1,2) -> Autoalign to A_BOM1 Copy
              >> Command: Autoalign to A_BOM1 Copy [user:default:cmky1f3cg0003zayglsumz6yo]
              
              28.01.2026 10:51:57.01 <info> [Application]: Updating start menu state with busyMsg: "null"
              28.01.2026 10:51:57.02 <info> [Backend]: [SfxConnection:org.soundflow.sfx.ext.37719.5695010192] GetAttributeGraphValue progress response: error= nodesLength=1
              
              28.01.2026 10:51:57.16 <info> [Backend]: Logging error in action (01) PopupMenuSelectAction: The menu item was not found in the popup menu
              
              28.01.2026 10:51:57.16 <info> [Backend]: !! Command Error: Autoalign to A_BOM1 Copy [user:default:cmky1f3cg0003zayglsumz6yo]:
              The menu item was not found in the popup menu (Autoalign to A_BOM1 Copy: Line 21)
              
              << Command: Autoalign to A_BOM1 Copy [user:default:cmky1f3cg0003zayglsumz6yo]
              
              28.01.2026 10:51:57.16 <info> [Application]: Updating start menu state with busyMsg: "null"
              28.01.2026 10:51:59.73 <info> [EditorWindow:Renderer]: Active Focus Container:  commandsPage/code Line 2 file:///Applications/SoundFlow.app/Contents/Helpers/SoundFlow.app/Contents/Resources/app.asar/dist/editor.js
              28.01.2026 10:52:23.41 <info> [Backend]: [SF_FIREBASE_WS]: Sending keep-alive
              
              
              

              somehow just adding the first line of your new script to the original one just worked fine! im just writing this if someone see this after me.

              Thanks!

              ReplySolution
              1. Kitch Membery @Kitch2026-01-28 17:20:54.666Z

                Hi @Joaquin_Pesce

                Adding the if (sf.ui.useSfx) sf.ui.useSfx(); line to your original script may work, but there is still a syntax error in the code.

                This line..

                presetMenuPath: ['Gugge'], // Path to folder/setting
                

                Can you expand on what the entire script is meant to do in point form?

                Be sure to read the comments in the script I provided, which tell you step by step what the script is supposed to do.

                Based on the error The menu item was not found in the popup menu (Autoalign to A_BOM1 Copy: Line 21). That tells me that SoundFlow can't find a track named "A_BOM1" in the AudioSuite's key input menu.

                1. JJoaquin Pesce @Joaquin_Pesce
                    2026-01-29 19:43:03.796Z

                    Hi @Kitch

                    I don't really know what that line is supposed to do, I think it should load a AutoAlign preset but i dont use any... I just copied the code from another script i saw at the store.

                    The script is functioning without any errors just adding that line to the original script. No menus are visibly expanding and its working well and faster.

                    If soundflow cant find a track named "A_BOM1" in mi session, it means something its not working well in that script because there is a track named exactly like that and it appears in the key input menu.

                    1. Here's a long running list of working auto Align scripts that manage a number of different ways you might find useful.

                      Bests,
                      Owen

                      1. In reply toJoaquin_Pesce:
                        Kitch Membery @Kitch2026-01-29 19:57:00.343Z

                        Great that it's working @Joaquin_Pesce, and that SFX gave it a speed increase! :-)

                        If the presetMenuPath: ['Gugge'], // Path to folder/setting line of code is not needed, you can just remove it from the script, as having a syntax error like this in your code may cause issues in future SoundFlow updates.

                        Rock on!

                        1. JJoaquin Pesce @Joaquin_Pesce
                            2026-01-29 20:22:40.330Z

                            Great! nice to know that! Im gonna give it a try removing it.

                            Thank again @Kitch and thanks @Owen_Granich_Young for the info!

                            Bests,
                            Joaquin

                2. Progress
                3. J@Joaquin_Pesce accepted an answer 2026-01-28 13:23:33.337Z.
                4. J@Joaquin_Pesce unaccepted an answer 2026-01-28 13:49:33.871Z.
                5. J@Joaquin_Pesce accepted an answer 2026-01-28 13:56:02.582Z.