switcherlib aux

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message

Jens Walkowiak

  • Posts: 28
  • Joined: Thu Jan 03, 2013 4:52 pm

switcherlib aux

PostSat Jun 20, 2020 3:17 pm


I have a other question about the switcherlib.
I'd like to change the name of the Aux-Ports.

My code is:

Code: Select all
        IList<SwitcherAuxPort> ausgaenge = new List<SwitcherAuxPort>();
            ausgaenge = meinatem.GetAuxInputs();
            ausgaenge[0].Name = "Stadtraete";
            ausgaenge[1].Name = "Zuschauer";
            ausgaenge[2].Name = "aussen";
            ausgaenge[3].Name = "Kamera";

But the code don't change the name.

Does anyone have a solution?

Thank you

Ian Morrish

  • Posts: 460
  • Joined: Sun Jan 18, 2015 9:24 pm
  • Location: New Zealand

Re: switcherlib aux

PostSat Jun 20, 2020 8:14 pm

That has to be set on the Input collection (that was one of the strangest things I found when started coding for ATEM, Everything is an input, even if it is an output ;-)

In PowerShell I would do this:
$aux1=$atem.GetInputs()| ? {$_.ID -eq 8001}
$aux1.LongName = "My Aux Name"

I built switcherlib for use with PowerShell so there is limited testing in other languages and there is very little support for events - to keep things reliable with PowerShell's single thread mode.
Ideas for it originated from 2 other projects:
https://github.com/imorrish/AtemSharp/ (which I had forked from somewhere else that has since been deleted)
https://github.com/mintopia/atemlib (for the media upload utility)
Ian Morrish
Video Integrated Scripting Environment
(Windows PowerShell with ATEM driver + more)

Jens Walkowiak

  • Posts: 28
  • Joined: Thu Jan 03, 2013 4:52 pm

Re: switcherlib aux

PostSun Jun 21, 2020 4:43 pm

Thank you Ian,

I try it. In c# I have to use Ilist and an array.
With the Windows powershell it seems to be easier.

Code: Select all
 IList<SwitcherAuxPort> ausgangneu = new List<SwitcherAuxPort>();

            ausgangneu = meinatem.GetAuxInputs();
            long a = ausgangneu[1].ID;
            string b=ausgangneu[1].Name;

gets the right values. (8002 and Monitor) AUX2.


Return to Software Developers

Who is online

Users browsing this forum: Dario Maljur and 56 guests