GP 5.3.3 Pro - Associated MIDI Output Name

I think i know the answer, but I will ask anyway…

The context is: in rig manager I have a Target device input alias associated to an loopMIDI device, this alias is also associated to an output loopMIDI device. As I know the alias name the script can get the associated input from GetMidiInDeviceFromRigManager() there doesn’t seem to be an equivalent for the output. I have tried iterating through device lists, but the index mis-aligns so there does not seem to be away of indirectly finding the output device associated to a device input alias.
image

Is there away I have missed to get the Name of the MIDI out device associated to a MIDI device alias via script?

I’m pushing Claude - once you have it teach you how to use, ask Claude. It will read your gig file and is pretty good answering. I told it to always check forums, current sw version.. and give me a percentage it’s answer is right… I haven’t had it script for me, though it claims it can. I’m a bit dubious as GP scripting is unique, have to instruct to make no assumptions… Takes a while to get in the know of how to use it.

Except when it isn’t - please be aware that we will not provide support for answers regurgitated from an AI tool. They are just as likely to be wrong as right and we can’t spend time trying to debug whatever an AI tool produced - that’s a rabbit hole that would just absorb all our time.

AI tools can be terrific but the user needs to have sufficient domain knowledge so as to be able to interpret and understand the answers from AI.