- Posts: 1
- Joined: Tue Sep 01, 2020 2:43 pm
- Real Name: Jan Buchholz
There is an awesome .Net core library that has macro helper to generate the byte array for you
https://github.com/LibAtem/LibAtem
I use it from PowerShell like this (although I prefer to use my API based library for Windows PowerShell, the one above is cross platform).
Add-Type -Path .\bin\Debug\netstandard2.0\LibAtem.dll
$AtemFTB = [LibAtem.MacroOperations.MixEffects.FadeToBlackAutoMacroOp]::new()
$AtemFTB.Index =0 #ME1
[LibAtem.MacroOperations.MacroOpExtensions]::ToByteArray($AtemFTB)
8
0
167
0
0
0
0
0
I virtually never use macros now that I can initiate any commands from PowerShell. Don't have to rely on the macro being present to perform any automation, especially as many of the ATEM don't have non-volatile memory so you need a PC to restore the config anyway.