# trySetSlotPlugin — How to load a plugin into an insert slot via MIDI Remote API 1.3?

**URL:** <https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211>\
**Category:** Cubase\
**Tags:** midi-remote\
**Created:** [June 6, 2026, 4:26am UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211 "2026-06-06T04:26:44Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freudon](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@Freudon](https://forums.steinberg.net/u/Freudon)\
**Post date:** [June 6, 2026, 4:26am UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/1 "2026-06-06T04:26:44Z")

</div>

Hello m.c,  
I’ve continued working on my WPF/C# MIDI Remote Controller (Sherlock 2) and I’m trying to load a plugin into an empty insert slot from my touchscreen interface.

What I’ve explored:

da.mPluginManager exists on the DirectAccess of the selected track and exposes getNumberOfPluginCollections, getPluginCollectionByIndex, getIndexOfDefaultPluginCollection, getIndexOfActivePluginCollection — but these methods return undefined regardless of the signature called (with or without activeMapping).

insertViewer (via makeInsertEffectViewer) exposes: includeEmptySlotsOnly, excludeEmptySlots, followPluginWindowInFocus, accessSlotAtIndex, getRuntimeID — no trySetSlotPlugin.

Question: Is it possible to load a plugin into an empty insert slot using API 1.3? If so, what is the correct way to use mPluginManager and/or trySetSlotPlugin?

Thanks!

---

<div class="post-metadata">

**Author:** ![Freudon](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@Freudon](https://forums.steinberg.net/u/Freudon)\
**Post date:** [June 6, 2026, 4:30am UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/2 "2026-06-06T04:30:09Z")

</div>

The insert window is correctly created

which itself is inserted via a button in the console.

 ![image](https://europe1.discourse-cdn.com/steinberg/original/4X/f/c/b/fcbaa42042163892815f65d64f4ba931c823e077.png)

 ![image](https://europe1.discourse-cdn.com/steinberg/original/4X/8/7/3/8732213b514e15c7b82e6b4057b731be3e6f7b89.jpeg)

---

<div class="post-metadata">

**Author:** ![Freudon](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@Freudon](https://forums.steinberg.net/u/Freudon)\
**Post date:** [June 7, 2026, 6:07pm UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/3 "2026-06-07T18:07:00Z")

</div>

Well, we’ve made some progress; the insert window now opens correctly with the plugins on the track and the list of all existing plugins. However, we’re missing the `trySetSlotPlugin` function on the JavaScript side, which is blocked by the limitation of the incoming MIDI port.

We have the UIDs and the object IDs of the slots. We want to call `trySetSlotPlugin` from C#. How do we trigger this from outside the system?

 ![image](https://europe1.discourse-cdn.com/steinberg/original/4X/e/e/b/eeb5043c585de707d5b05a13dc6384f247a39d58.png)

---

<div class="post-metadata">

**Author:** ![Freudon](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@Freudon](https://forums.steinberg.net/u/Freudon)\
**Post date:** [June 8, 2026, 6:32am UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/4 "2026-06-08T06:32:04Z")

</div>

Okay, we’re making slow progress. I can now load a plugin from my insert window after carefully analyzing m.c.'s messages and code. And I thank him again, but I’m having a few lag issues, but we’ll get there.

---

<div class="post-metadata">

**Author:** ![Freudon](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@Freudon](https://forums.steinberg.net/u/Freudon)\
**Post date:** [June 8, 2026, 7:21am UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/5 "2026-06-08T07:21:43Z")

</div>

![AnimationSherlock2](https://europe1.discourse-cdn.com/steinberg/original/4X/c/3/f/c3f9938acf3323b2425531e1c5fc17669cadf243.gif)

A small animation of the insert window with some bugs at the moment, but in any case, communication is well established between Sherlock2 and Cubase.

---

<div class="post-metadata">

**Author:** ![Freudon](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@Freudon](https://forums.steinberg.net/u/Freudon)\
**Post date:** [June 8, 2026, 7:37am UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/6 "2026-06-08T07:37:50Z")

</div>

Here’s another short animation with all the created windows: Keyswitches, CCs, and Microphones.

![AnimationSherlock2](https://europe1.discourse-cdn.com/steinberg/original/4X/f/0/7/f0773a6d3f0aed18c0866f5cc1e6f92ca3b14bf8.gif)

---

<div class="post-metadata">

**Author:** ![howlcinder4](https://avatars.discourse-cdn.com/v4/letter/h/9fc29f/32.png) [@howlcinder4](https://forums.steinberg.net/u/howlcinder4)\
**Post date:** [September 1, 2026, 2:34pm UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/7 "2026-09-01T14:34:52Z")

</div>

Hi Freudon,

I came across your thread about loading a plugin into an insert slot via MIDI Remote API 1.3 (trySetSlotPlugin) while researching the same problem for my own project — an external SysEx-based bridge between Cubase 15 and a Python backend, conceptually similar to Sherlock2 (external controller talking to Cubase over MIDI, not just a driver script UI).

We’ve been trying to read/insert devices on a track and hit the same wall from a few different angles:

1. InsertEffectViewer (via makeInsertEffectViewer/accessSlotAtIndex, reading mOn/mBypass with getProcessValue) — silent hang, no error at all, just a timeout.
2. DirectAccess child-object traversal on the selected channel (getNumberOfChildObjects/getChildObjectID/getObjectTitle — the same calls that work fine for us at the mixer level) — hung exactly the same way when applied one level down to a channel’s children.
3. da.mPluginManager (getNumberOfPluginCollections, getPluginCollectionByIndex, etc.) — same as what you originally reported: returns undefined regardless of call signature.

Three different approaches, three identical dead ends — so at this point I’m fairly convinced this isn’t a mistake on our end, it’s a genuine rough edge in this part of API 1.3.

Your last update said you got it working “after carefully analyzing m.c.'s messages and code,” but the actual method isn’t visible in the thread (only images). Would you be open to comparing notes and figuring this out together? Even a rough description of the working approach — how you called trySetSlotPlugin from outside the script given the incoming MIDI port limitation you mentioned — would save us a lot of guessing, and I’m happy to share our test results/code in return if that’s useful for Sherlock2.

No worries at all if you’d rather not — just figured it’s worth asking since we’re clearly solving the same problem from two different directions.

Thanks!

---

<div class="post-metadata">

**Author:** ![m.c](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/m.c/32/193959_2.png) [@m.c](https://forums.steinberg.net/u/m.c)\
**Post date:** [September 1, 2026, 5:12pm UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/8 "2026-09-01T17:12:55Z")

</div>

> [@howlcinder4](#):
>
> after carefully analyzing m.c.'s messages and code

Check this thread, it may help:

> [@Selecting favourite VST Instrument and fx plugins, using MIDI Remote (and shortcuts)](https://forums.steinberg.net/t/selecting-favourite-vst-instrument-and-fx-plugins-using-midi-remote-and-shortcuts/1029587):
>
> I’ve already made a post with an implementation of the new MIDI Remote feature, the Plugin Manager, introduced in API 1.3 (CB 15.0.20): [An HTML-based MIDI Remote demonstrating additions in MR API 1.3](https://forums.steinberg.net/t/an-html-based-midi-remote-demonstrating-additions-in-mr-api-1-3/1029450) This new post is about how we can bind buttons of our controllers to directly insert into an instrument or insert slot, our favourite plugins. At the same time, I will present a way of binding keyboard shortcuts to these actions. We have two approaches, the one is using hard-coded plugin names in …

---

<div class="post-metadata">

**Author:** ![howlcinder4](https://avatars.discourse-cdn.com/v4/letter/h/9fc29f/32.png) [@howlcinder4](https://forums.steinberg.net/u/howlcinder4)\
**Post date:** [September 1, 2026, 7:06pm UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/9 "2026-09-01T19:06:06Z")

</div>

Hi m.c.,

I genuinely don’t know how to thank you enough for this. Sharing a full, heavily-commented, working production script — not just a hint or a fragment — is an incredibly generous thing to do. Much appreciate!

We’d spent an entire evening on three separate failed attempts at reading insert devices via DirectAccess, each one hanging silently with zero errors, and we genuinely couldn’t figure out why. Your code showed us exactly what we were missing — the intermediate insert-slots container at child index 3, and the instrument slot at index 9 — details that just aren’t documented anywhere we could find. That one insight (plus your consistent use of getObjectTypeName before touching anything, which we hadn’t been doing) fixed what three separate architectural guesses couldn’t.

On top of that, the trySetSlotPlugin + plugin collections approach opens up a whole path we thought was closed to us. We’re going to build on that next.

This kind of thing is exactly what makes a community part of something great. Thank you — really.

If it’s useful to you, I’m happy to report back once we’ve verified everything live and share what we build on top of it.

---

<div class="post-metadata">

**Author:** ![m.c](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/m.c/32/193959_2.png) [@m.c](https://forums.steinberg.net/u/m.c)\
**Post date:** [September 1, 2026, 7:13pm UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/10 "2026-09-01T19:13:55Z")

</div>

> [@howlcinder4](#):
>
> I’m happy to report back once we’ve verified everything live and share what we build on top of it

Sure, it’s always nice to see sharing implementation in the forum 👍

---

<div class="post-metadata">

**Author:** ![Freudon](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@Freudon](https://forums.steinberg.net/u/Freudon)\
**Post date:** [September 1, 2026, 7:40pm UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/11 "2026-09-01T19:40:00Z")

</div>

Hi both,

@m.c — thank you for sharing that, it’s incredibly generous. Even though we’d already found a working (if messier) path to trySetSlotPlugin on our side, the details you gave — the intermediate insert-slot container at child index 3, the instrument slot at index 9, and using getObjectTypeName before touching anything — explain some of the silent hangs we hit early on too. That’s exactly the kind of undocumented structure that costs a whole evening of guessing otherwise.

@howlcinder4 — glad you got a clean answer, and a much better one than what I was about to type up here! Sounds like we converged on the same general mechanism (SysEx bridge + cached DirectAccess/mapping references) from two different directions, which is reassuring in itself. Would be great to keep each other posted on how our projects evolve from here — always nice to know someone else is wrestling with the same API on the other side of the world.

---

<div class="post-metadata">

**Author:** ![howlcinder4](https://avatars.discourse-cdn.com/v4/letter/h/9fc29f/32.png) [@howlcinder4](https://forums.steinberg.net/u/howlcinder4)\
**Post date:** [September 1, 2026, 7:46pm UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/12 "2026-09-01T19:46:20Z")

</div>

Hi m.c.,

Quick follow-up as promised. We built insert\_device on top of your trySetSlotPlugin + collections approach, and it worked on the very first try — no debugging round needed at all, which honestly surprised us given everything else we’d built that evening needed at least one live fix.

We set up a “Orchestrator” collection in the Plugin Manager, queried for a plugin by name within it, and trySetSlotPlugin dropped it straight into the second insert slot on the track — confirmed visually in Cubase right after the API call returned. Full loop working end to end.

We also used the same channelType/getObjectTypeName + child-index navigation pattern from your script to fix a track\_devices command we’d been stuck on for three separate attempts — that alone saved us the rest of the evening.

Much appreciate, again. Genuinely.

---

<div class="post-metadata">

**Author:** ![howlcinder4](https://avatars.discourse-cdn.com/v4/letter/h/9fc29f/32.png) [@howlcinder4](https://forums.steinberg.net/u/howlcinder4)\
**Post date:** [September 1, 2026, 7:47pm UTC](https://forums.steinberg.net/t/trysetslotplugin-how-to-load-a-plugin-into-an-insert-slot-via-midi-remote-api-1-3/1034211/13 "2026-09-01T19:47:57Z")

</div>

Hi Freudom!

That’s a really good point, and honestly kind of reassuring. We’re building an external SysEx bridge (Python backend talking to Cubase over a MIDI Remote script) as part of a bigger multi-DAW automation project, and converging on the same general shape — cached DirectAccess/mapping references, the same trySetSlotPlugin mechanism — from a completely independent direction says something good about the approach, not just luck.

Would genuinely love to keep in touch as things evolve. This corner of the API is clearly still being figured out in real time by a small handful of people, so knowing there are others actively poking at the same edges — and generous enough to share what they find — makes the whole thing a lot less lonely. Happy to compare notes whenever something new turns up on either side.

Thanks again, both of you — this thread ended up being way more valuable than we expected when we first posted.
