No internet connection
  1. Home
  2. Macro and Script Help

Inserting Kontakt 5.1 into instrument track

By Kim Planert @Kim_Planert
    2024-05-22 21:07:10.354Z

    Title

    Inserting Kontakt 5.1 into instrument track

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

    Kontak 7 5.1 opens in first free slot on 5.1 instrument track.

    Are you seeing an error?

    What happens when you run this script?

    nothing

    How were you running this script?

    Other

    How important is this issue to you?

    4

    Details

    {
        "inputExpected": "Kontak 7 5.1 opens in first free slot on 5.1 instrument track.",
        "inputIsError": false,
        "inputWhatHappens": "nothing",
        "inputHowRun": {
            "key": "-MpfwoFyZNOpBC3X5xGI",
            "title": "Other"
        },
        "inputImportance": 4,
        "inputTitle": "Inserting Kontakt 5.1 into instrument track"
    }

    Source

    //Preset converted to script
    
    
    //Invoking preset "Kontakt" of template "Teezio’s Plugin Loader" in package "Teezio's Plugin Loader"
    sf.soundflow.runCommand({
        commandId: 'user:cldidcce10005i010jdp3mof2:ckkczttld0001jt10m5krbbh9',
        props: {
            hdxString: undefined /* unknown error converting property value */,
            pluginCatagory: "Native Instruments",
            pluginName: "Kontakt 7 (5.1)",
            pluginSlot: "firstFree",
            pluginWidth: "sameAsTrack",
        },
    })
    

    Links

    User UID: ugsrnIjRISR3rAN6xI5A0mhSdss1

    Feedback Key: sffeedback:ugsrnIjRISR3rAN6xI5A0mhSdss1:-NyX7GmR428KXRjbUAdy

    Feedback ZIP: ThreO3H7LnKMosP5Exs8zywUfbsTiX27H8BAhapE4rUEFUMhl/YF8Y3Gbb5ICB2/EGKml/u3BELXahbZc+Mh4FcrbWCDD+AdS7GBRCAkaTv10I+TXQL3d4Jdy5wcygJD0O5Ocsv7/AKu3xsWe/oYGCOVd+W0gBLEvHTIyEjNBLEh/GiJdYFO8Bhq3Z443CGVGuezfPlGpMA/l3DRvjmahuyB1XMPjGW/RMVqCz43ncERxpMDFizZRABiFv8TdZdDXRPEd1OEjtcu5gGlbDTVN03ozNrmTT0+pkzvTq0oRLGNtS3letDOeERzKhzlcXvP21zj0tZxJyRonij0Hd4bJA==

    • 17 replies

    There are 17 replies. Estimated reading time: 12 minutes

    1. Jordan Pascual @Jordan_Pascual
        2024-05-23 12:09:08.261Z

        I recently bumped into an issue with this, and it was due to the SPECIFIC plugin name... depending on what version it is. I'll try testing later today, but can you try pulling up the insert selector menu manually and maybe take a screenshot of what the different options are?

        1. Kim Planert @Kim_Planert
            2024-05-23 15:29:49.489Z

            Hi Jordan, thanks for your help! I double checked the name (see screenshot). Nothing happens on executing the command.
            Inserting the stereo version of Kontakt on a stereo instrument track works fine via SF.

            1. Kim Planert @Kim_Planert
                2024-05-24 18:14:22.111Z

                Hi Jordan, did you have a moment to try this? Much appreciated!

                1. Hey @Kim_Planert, tagging @Kitch here. He wrote the script for the plugin loader and will be able to assist you!

                  1. In reply toKim_Planert:
                    Jordan Pascual @Jordan_Pascual
                      2024-05-27 15:29:37.435Z

                      Hey Kim! I'm sorry, I had a few shows this weekend, and got a little busy! I will be checking it here in a bit, if Kitch doesn't get to this first lol

                      Hopefully it's something easy, sorry for the wait!

                      1. In reply toKim_Planert:
                        Jordan Pascual @Jordan_Pascual
                          2024-05-28 00:33:04.490Z

                          Hi @Kim_Planert

                          I actually got this to work on my system, just using the template. Up to you if you want to convert to script or not with the parameters... Here is what I set my preset to. I tested on a stereo Instrument Track, and it seemed to work fine. Which version of PT are you on, btw? In preferences, on the first tab, what option do you have selected for 'Organize Plug-In Menus By:'? (See Screenshot below)

                          I see on your screenshot it says specifically 'Kontakt 7 (5.1)', however, when testing, my 5.1 shows like this 'Kontakt 7 (stereo/5.1)'. Wondering if you have the most up to date PT and Kontakt 7 Player?

                          Lastly, I'm not sure if the 'hdxString: undefined' part of line 8 on your script matters... I'm guessing you're not running an HDX system right?

                          Thanks!!
                          J

                          1. Kim Planert @Kim_Planert
                              2024-05-29 01:22:13.235Z

                              Thank you Jordan!

                              Preset works on stereo track here as well. Organise Plugin Menus is set the same as you.
                              Tried the (stereo/5.1) name as well.

                              PT is the latest at 2024.3.1 as well as Kontakt 7 at 7.10.2
                              Tried all three HDX settings.

                              I m on an HDX system.

                              No sure what to try next?

                              There must be one difference between stereo and 5.1.

                              1. Jordan Pascual @Jordan_Pascual
                                  2024-05-30 23:14:09.882Z

                                  Hey Kim, could you try Plugin Name as exactly "Kontakt 7 (stereo/5.1)" and see if THAT pulls it up? I'm going to try testing on a HDX system today and see if I can repro. Just for clarity, I am able to get it to work with pulling up the 5.1 with that specific name.

                                  Does it log an error when you do this?

                                  1. Kim Planert @Kim_Planert
                                      2024-05-31 01:02:12.528Z

                                      Thanks Jordan. I tried that name and nothing happens. Not even an error.

                                      1. Jordan Pascual @Jordan_Pascual
                                          2024-05-31 10:51:38.059Z

                                          This is so odd, as I get a result even if I put JUST Kontakt 7. I think this might be system specific, but as you stated, you're up to date on everything. email at necessarynoiseband@gmail.com and I'll see if I could check it out later today

                                          1. In reply toKim_Planert:
                                            Jordan Pascual @Jordan_Pascual
                                              2024-06-05 05:33:14.293Z

                                              Hey Kim, I know I discussed this over DM's with you, but just so that anyone else might need this, and for an easy way to update this, here's a script that should work on any non-HDX/HDX system, using quite a few variables!

                                              This specific script is for Kontakt 7, and should recognize mono, stereo, AND 5.1 tracks. It will insert the '5.1' version of Kontakt 7 into the track and convert whatever track width it is into 5.1. (ie. if it's a stereo track, it will convert to 5.1... 5.1 to 5.1 will stay the same) It also intelligently will find the next available plugin slot, if your usual Slot 1 is taken up!

                                              I'm not a coding genius like the rest of the folks on here, but, hey, it works!

                                              @Kitch Sorry to bother, but is your plugin designed to handle the 5.1 variants? That might be the cleanest way to solve Kim's issue, since I know your script is probably MUCH more expansive then mine, but I just tried my hand at it for now as a workaround! Much love to ya both!

                                              Jordan

                                              function getFirstFreeInsertIndex() {
                                                  var btns = sf.ui.proTools.selectedTrack.invalidate().insertButtons;
                                                  for (var i = 0; i < 10; i++)
                                                      if (btns[i].value.invalidate().value === "unassigned") return i;
                                                  return -1;
                                              }
                                              
                                              function clickPopupMenu(popupMenu, paths) {
                                                  for (var i = 0; i < paths.length; i++) {
                                                      var path = paths[i];
                                                      if (popupMenu.menuClickPopupMenu({
                                                          menuPath: path,
                                                          onError: 'Continue'
                                                      }).success) {
                                                          return;
                                                      }
                                                  }
                                                  throw "Could not find any paths, modify script";
                                              }
                                              
                                              function main() {
                                                  var popupMenu = sf.ui.proTools.selectedTrack.trackInsertOrSendOpenMenu({
                                                      pluginNumber: getFirstFreeInsertIndex() + 1,
                                                  }).popupMenu;
                                              
                                                  clickPopupMenu(popupMenu, pluginPaths);
                                              }
                                              
                                              //Change this path as needed
                                              var pluginPaths = [
                                              
                                                  //Mono to 5.1 Variables
                                                  ['plug-in', 'Kontakt 7 (mono/5.1)'],
                                                  ['plug-in', 'Instruments', 'Kontakt 7 (mono/5.1)'],
                                                  ['plug-in', 'Effect', 'Kontakt 7 (mono/5.1)'],
                                                  ['plug-in', 'Native Instruments', 'Kontakt 7 (mono/5.1)'],
                                              
                                                  ['Native plug-in', 'Kontakt 7 (mono/5.1)'],
                                                  ['Native plug-in', 'Instruments', 'Kontakt 7 (mono/5.1)'],
                                                  ['Native plug-in', 'Effect', 'Kontakt 7 (mono/5.1)'],
                                                  ['Native plug-in', 'Native Instruments', 'Kontakt 7 (mono/5.1)'],
                                              
                                                  //Stereo to 5.1 Variables
                                                  ['multichannel plug-in', 'Kontakt 7 (stereo/5.1)'],
                                                  ['multichannel plug-in', 'Instrument', 'Kontakt 7 (stereo/5.1)'],
                                                  ['multichannel plug-in', 'Effect', 'Kontakt 7 (mono/5.1)'],
                                                  ['multichannel plug-in', 'Native Instruments', 'Kontakt 7 (stereo/5.1)'],
                                              
                                                  ['multichannel Native plug-in', 'Kontakt 7 (stereo/5.1)'],
                                                  ['multichannel Native plug-in', 'Instrument', 'Kontakt 7 (stereo/5.1)'],
                                                  ['multichannel Native plug-in', 'Effect', 'Kontakt 7 (mono/5.1)'],
                                                  ['multichannel Native plug-in', 'Native Instruments', 'Kontakt 7 (stereo/5.1)'],
                                              
                                                  //5.1 Surround Variables
                                                  ['multichannel plug-in', 'Kontakt 7 (5.1)'],
                                                  ['multichannel plug-in', 'Instrument', 'Kontakt 7 (5.1)'],
                                                  ['multichannel plug-in', 'Effect', 'Kontakt 7 (5.1)'],
                                                  ['multichannel plug-in', 'Native Instruments', 'Kontakt 7 (5.1)'],
                                              
                                                  ['multichannel Native plug-in', 'Kontakt 7 (5.1)'],
                                                  ['multichannel Native plug-in', 'Instrument', 'Kontakt 7 (5.1)'],
                                                  ['multichannel Native plug-in', 'Effect', 'Kontakt 7 (5.1)'],
                                                  ['multichannel Native plug-in', 'Native Instruments', 'Kontakt 7 (5.1)'],
                                              ]
                                              
                                              try {
                                                  main();
                                              }
                                              
                                              catch (err) {
                                                  main();
                                              }
                                              
                                              
                                              
                                              
                                              1. Kitch Membery @Kitch2024-06-05 07:37:55.075Z

                                                Hi Jordan, It looks like I missed this thread 12 days back when I was tagged by Raphael. I'll take a look tomorrow when I get a moment. Feel free to nudge me if I forget. :-)

                                                1. In reply toJordan_Pascual:
                                                  Kitch Membery @Kitch2024-06-05 17:33:46.839Z

                                                  Hi @Jordan_Pascual & @Kim_Planert

                                                  Unfortunately Teezio's Plugin loaded is not designed to handle 5.1 variants.

                                                  I'll investigate further next week to see if it's something I can add as a feature.

                                                  1. Jordan Pascual @Jordan_Pascual
                                                      2024-06-05 17:35:44.171Z

                                                      Totally understand! For the meantime, does the script I provide at all work on your end of things? I tried to reverse engineer it as simple as possible (without the code of course).

                                                      I briefly talk to Kim, and he's not able to test on his system for another couple weeks cuz he's traveling. But I was able to test this on 3 HDX and non HDX systems and it seemed to work okay!

                                                      J

                                                      1. Kim Planert @Kim_Planert
                                                          2024-11-09 02:53:17.814Z

                                                          Hi Jordon,

                                                          It has been a while sorry I dropped this after you put so much work in.

                                                          Finally tried the script. Just wanted to let you know the result. Getting a script error. See screenshot.

                                                          Maybe @Kitch can have a look? Maybe ad to the Teezio's Plugin loader?

                                                          All the best! Thank you very much for your efforts!

                                                          Kim

                                                          1. Kitch Membery @Kitch2024-11-11 19:51:47.499Z

                                                            Hi @Kim_Planert & @Jordan_Pascual,

                                                            At the moment "Teezio's Plugin Loader" is only designed to work with Mono and Stereo tracks. I don't expect to be adding extended track width functionality to the Plugin Loader in the near future.

                                                            If you are trying to load a 5.1 instance of a plugin I might be able to create a less sophisticated version that achieves what you're after.

                                                            Let me know if that's what you're after.

                                                            1. Kim Planert @Kim_Planert
                                                                2024-11-13 02:22:57.195Z

                                                                Hi Kitch,

                                                                yes just trying to load for example a Kontakt 5.1 instead of a stereo. That was my first attempt in calling up a larger track with.

                                                                Next one would be for example a Blackhole Immersive in 7.0.4 or 7.1.4.

                                                                Achievable?

                                                                Thank you!