Page 1 of 1

IBMDSwitcherKeyFlyParameters, ATEM SDK

PostPosted: Wed May 25, 2016 1:46 pm
by Remo Val
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

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostPosted: Thu May 26, 2016 7:52 am
by Remo Val
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

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostPosted: Tue Jul 31, 2018 1:59 pm
by Mangsee169
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!

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostPosted: Wed Aug 01, 2018 9:45 am
by Ian Morrish
You need to get a usk key object from the me.

Sent from my SM-G950F using Tapatalk

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostPosted: Wed Aug 01, 2018 1:50 pm
by Mangsee169
Thanks for replying Ian. How exactly do I do that? A few line of codes would be extremely helpful.

Re: IBMDSwitcherKeyFlyParameters, ATEM SDK

PostPosted: Wed Aug 01, 2018 7:16 pm
by Ian Morrish
Hi,
Suggest you look at a GitHub project like
https://github.com/haydendonald/ATEMVis ... /Keyers.cs

Regards,
Ian