switcherlib aux

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

Jens Walkowiak

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

switcherlib aux

PostSat Jun 20, 2020 3:17 pm

Hello,

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
   
             //AUX
        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
Jens
Offline

Ian Morrish

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

Re: switcherlib aux

PostSat Jun 20, 2020 8:14 pm

Hi,
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)
Regards,
Ian Morrish
Video Integrated Scripting Environment
(Windows PowerShell with ATEM driver + more)
https://ianmorrish.wordpress.com
Offline

Jens Walkowiak

  • Posts: 32
  • 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.

But:
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.

Greetings
Jens

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 34 guests