Help for beginner

8 posts / 0 new
Last post
Offline

Location

Ljubljana
Slovenia
Joined: 03/10/2016
Posts: 4
Help for beginner

Hi,

 

I am developing my own sowftware from samples that came from blackmagic for atem switcher. Im new in programming and i need some help.

im working with C#. can anybody help me with two things:

i need a code in C# for restore config from xml.

and i need some sample code how supersource can be realized in c#. i need to setup soupersource.

i will be so thankful if anybody can help me :)

 

 

 

JohnBengston's picture
Offline

Location

London
United Kingdom
Joined: 14/01/2012
Posts: 2145
That example would have

That example would have thousands of lines of code in it. You are essentially asking for a full implementation of the SDK as "an example", which would obviously include the super-source code.

Use JustMacros instead.

Or contact ATEMUser: imorrish who has developed a PowerShell framework, I think much of it with C#.

 

 

imorrish's picture
Offline

Location

Wellington
New Zealand
Joined: 05/01/2015
Posts: 93
ATEM API is not for beginner programmers

Hi miha,

I can say from experience that this is not an ideal project to undertake as a beginner. But if you have a LOT of time and patience you can do a lot with the
API and C#.

I found the samples did not help me much as they did not cover the full breadth of the API and were following a pattern that would work for reusability. 

(apart from Johns fantastic write up on setting Aux ports in C# https://forum.blackmagicdesign.com/viewtopic.php?f=12&t=41964&hilit=aux)

For general programming of ATEM I started with this project https://github.com/imorrish/atemlib (forked from another but I had added a lot to it).

Another reasonable WPF example can be found here https://github.com/imorrish/AtemSharp

I will get around to showing how to use my dll https://ianmorrish.wordpress.com/v-ise/atem/  in C# and VB.Net projects one day...
This DLL is written in C# and covers most ATEM API functionality except SuperSource (I only have a TVS...). I'm not 100% happy with it and it is due for my 3rd rewrite now that I understand a bit better what I have done wrong.

 

 

Offline

Location

Ljubljana
Slovenia
Joined: 03/10/2016
Posts: 4
thank you very much, i will

thank you very much, i will try :)

Offline

Location

Ljubljana
Slovenia
Joined: 03/10/2016
Posts: 4
Can you help me how to run

Can you help me how to run (recall) macro in C# ?

imorrish's picture
Offline

Location

Wellington
New Zealand
Joined: 05/01/2015
Posts: 93
ATEM macros in c#

Try http://forum.blackmagicdesign.com/viewtopic.php?f=12&t=45033&p=261040&hi...

 

Offline

Location

Ljubljana
Slovenia
Joined: 03/10/2016
Posts: 4
thank you. do i need to get

thank you. do i need to get macro count first an get macro and then runit. or can i just run it?

imorrish's picture
Offline

Location

Wellington
New Zealand
Joined: 05/01/2015
Posts: 93
No, you can just .Run(index)

No, you can just .Run(index) on your IBMDSwitcherMacroControl object

 

Regards,

Ian