IBMDSwitcherKeyFlyParameters, ATEM SDK

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

Remo Val

  • Posts: 7
  • Joined: Fri Mar 18, 2016 7:57 pm
  • Location: Zurich, Switzerland

IBMDSwitcherKeyFlyParameters, ATEM SDK

PostWed May 25, 2016 1:46 pm

Hi all

I try to set FlyKey mode for a specific Keyer.
So far I could establish connection to the switcher, get the ME's and get those keyers.
This works all fine so far. Can set Program input of each ME, put the keyers on and off Air.

But I am stuck now because I can't obtain the IBMDSwitcherKeyFlyParameters Object Interface.

The SDK manual says: ...can be obtained with IBMDSwitcherKey::QueryInterface.

Has anyone a little sample code how to do that?

Best Regards,
Remo
Offline

Remo Val

  • Posts: 7
  • Joined: Fri Mar 18, 2016 7:57 pm
  • Location: Zurich, Switzerland

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostThu May 26, 2016 7:52 am

Problem solved!
I had some wrong code in my QueryInterface line. Was trying to obtain the Interface from the "KeyIterator" instead of the "Key" object.

Best Regards
Offline

Mangsee169

  • Posts: 2
  • Joined: Tue Jul 31, 2018 1:42 pm
  • Real Name: Phong Huynh

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostTue Jul 31, 2018 1:59 pm

Hello,

I am trying to obtain the IBMDSwitcherKeyFlyParameters object to set the Flying key sizes and position. I am using the SimpleSwitcherExampleCSharp example supplied with the SDK and am able to connect to the switcher and get references to various objects but not sure how to get to IBMDSwitcherKeyFlyParameters object.

// Create switcher discovery object
IBMDSwitcherDiscovery discovery = new CBMDSwitcherDiscovery();
IBMDSwitcher switcher;
_BMDSwitcherConnectToFailure failureReason;
discovery.ConnectTo("10.1.110.10", out switcher, out failureReason);
// Get reference to various objects
IBMDSwitcherMixEffectBlock me0 = GetMEByIndex(switcher, 0);
IBMDSwitcherTransitionParameters me0TransitionParams = me0 as IBMDSwitcherTransitionParameters;
IBMDSwitcherTransitionWipeParameters me0WipeTransitionParams = me0 as IBMDSwitcherTransitionWipeParameters;
IBMDSwitcherInput input1 = GetInputByTypeAndIndex(switcher, _BMDSwitcherPortType.bmdSwitcherPortTypeExternal, 0);
IBMDSwitcherInput input2 = GetInputByTypeAndIndex(switcher, _BMDSwitcherPortType.bmdSwitcherPortTypeExternal, 1);

// Stuck here !
IBMDSwitcherKeyFlyParameters keyFlyParameters = ??????

Could you please show me what needs to be done? Thank you in advance!
Offline

Ian Morrish

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

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostWed Aug 01, 2018 9:45 am

You need to get a usk key object from the me.

Sent from my SM-G950F using Tapatalk
Regards,
Ian Morrish
Video Integrated Scripting Environment
(Windows PowerShell with ATEM driver + more)
https://ianmorrish.wordpress.com
Offline

Mangsee169

  • Posts: 2
  • Joined: Tue Jul 31, 2018 1:42 pm
  • Real Name: Phong Huynh

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostWed Aug 01, 2018 1:50 pm

Thanks for replying Ian. How exactly do I do that? A few line of codes would be extremely helpful.
Offline

Ian Morrish

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

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostWed Aug 01, 2018 7:16 pm

Hi,
Suggest you look at a GitHub project like
https://github.com/haydendonald/ATEMVis ... /Keyers.cs

Regards,
Ian
Regards,
Ian Morrish
Video Integrated Scripting Environment
(Windows PowerShell with ATEM driver + more)
https://ianmorrish.wordpress.com

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 2 guests