Docs - Data - Protocol constants
The atem member in ATEMMax is an ATEMProtocol object, containing constant value definitions for the ATEM protocol.
>>> print(switcher.atem.UDPPort.value)
9910
>>> print(switcher.atem.videoSources.mediaPlayer1.value)
3010
>>> print(switcher.atem.videoModeFormats.f1080p50.value)
12Value enumerations
A lot of efforts have been put into making the library Intellisense friendly and helping the library user with the overwhelming amount of setting values you can find in the protocol.
Instead of using numbers extracted from the ATEM Potocol to identify cameras, videoSources, etc… you can use things like:
- Video sources
switcher.atem.videoSources.input1switcher.atem.videoSources.colorBarsswitcher.atem.videoSources.mediaPlayer1
- Audio sources
switcher.atem.audioSources.input1switcher.atem.audioSources.xlrswitcher.atem.audioSources.mic1
- Video mode formats
switcher.atem.videoModeFormats.f525i59_94_ntsc_16_9switcher.atem.videoModeFormats.f720p50switcher.atem.videoModeFormats.f1080p50
- Down converter modes
switcher.atem.downConverterModes.centerCutswitcher.atem.downConverterModes.letterBoxswitcher.atem.downConverterModes.anamorphic
As you start typing the collection name, your editor should show you a list of valid value names.
ATEMConstant
All these protocol values are stored as ATEMConstant objects.
- An
ATEMConstantobject consists of anameand avalue. - If you print an
ATEMConstantyou will get its name (string) - If you want to get the raw numeric value, use
ATEMConstant.value
With these ATEMConstants you can choose how you want to provide parameters for methods:
- Using the provided protocol constants
switcher.setProgramInputVideoSource(switcher.atem.mixEffects.mixEffect1, switcher.atem.videoSources.mediaPlayer1)- Using ATEM protocol integer values
switcher.setProgramInputVideoSource(0, 3010)- Using strings representing the values in the respective lists
switcher.setProgramInputVideoSource("mixEffect1", "mediaPlayer1")It works the same way when getting data values:
- Using the provided protocol constants
switcher.programInput[switcher.atem.mixEffects.mixEffect1].videoSource- Using ATEM protocol integer values
switcher.programInput[0].videoSource- Using strings representing the values in the respective lists
switcher.programInput["mixEffect1"].videoSourceNote about enumerated values
In the following value lists there are some enumerated values, like:
switcher.atem.videoSources.input1 … switcher.atem.videoSources.input40
Please keep in mind that the associated numeric value does not need to be the same as the number in the value name.
As an example, you can see some values match:
switcher.atem.videoSources.input1==1switcher.atem.cameras.camera1==1
While some others don’t:
switcher.atem.videoSources.color1==2001switcher.atem.videoSources.mediaPlayer1==3010switcher.atem.videoSources.key1Mask==4010switcher.atem.videoSources.dsk1Mask==5010switcher.atem.videoSources.cleanFeed1==7001switcher.atem.videoSources.auxilary1==8001switcher.atem.mixEffects.mixEffect1==0switcher.atem.multiViewers.multiViewer1==0switcher.atem.windows.window1==0switcher.atem.keyers.keyer1==0switcher.atem.dsks.dsk1==0switcher.atem.colorGenerators.colorGenerator1==0switcher.atem.auxChannels.auxChannel1==0switcher.atem.mediaPlayers.mediaPlayer1==0switcher.atem.clipBanks.clipBank1==0switcher.atem.stillBanks.stillBank1==0switcher.atem.macros.macro1==0switcher.atem.boxes.box1==0
Value lists
switcher.atem.videoSources (ATEMVideoSources)
blackinput1..40colorBarscolor1color2mediaPlayer1mediaPlayer1..4Keykey1..16Maskdsk1..4MasksuperSourcesuperSource2cleanFeed1..4auxilary1..24mE1..4ProgmE1..4Previnput1Direct
switcher.atem.audioSources (ATEMAudioSources)
input1..20xlraes_eburcamic1..2mp1..4
switcher.atem.downConverterModes (ATEMDownConverterModes)
centerCutletterBoxanamorphic
switcher.atem.videoModeFormats (ATEMVideoModeFormats)
f525i59_94_ntscf625i_50_palf525i59_94_ntsc_16_9f625i_50_pal_16_9f720p50f720p59_94f1080i50f1080i59_94f1080p23_98f1080p24f1080p25f1080p29_97f1080p50f1080p59_94f2160p23_98f2160p24f2160p25f2160p29_97
switcher.atem.externalPortTypes (ATEMExternalPortTypes)
internalsdihdmicompositecomponentsVideo
switcher.atem.switcherPortTypes (ATEMSwitcherPortTypes)
externalblackcolorBarscolorGeneratormediaPlayerFillmediaPlayerKeysuperSourceexternalDirectmEOutputauxiliarymaskmultiViewer
switcher.atem.multiViewerLayouts (ATEMMultiViewerLayouts)
topbottomleftright
switcher.atem.transitionStyles (ATEMTransitionStyles)
mixdipwipedVEsting
switcher.atem.keyerTypes (ATEMKeyerTypes)
lumachromapatterndVE
switcher.atem.borderBevels (ATEMBorderBevels)
noinOutin_out
switcher.atem.mediaPlayerSourceTypes (ATEMMediaPlayerSourceTypes)
stillclip
switcher.atem.audioMixerInputTypes (ATEMAudioMixerInputTypes)
externalVideomediaPlayerexternalAudio
switcher.atem.audioMixerInputPlugTypes (ATEMAudioMixerInputPlugTypes)
internalsdihdmicomponentcompositesVideoxlraes_eburca
switcher.atem.audioMixerInputMixOptions (ATEMAudioMixerInputMixOptions)
offonafv
switcher.atem.dVETransitionStyles (ATEMDVETransitionStyles)
swooshTopLeftswooshTopswooshTopRightswooshLeftswooshRightswooshBottomLeftswooshBottomswooshBottomRightspinCCWTopRightspinCWTopLeftspinCCWBottomRightspinCWBottomLeftspinCWTopRightspinCCWTopLeftspinCWBottomRightspinCCWBottomLeftsqueezeTopLeftsqueezeTopsqueezeTopRightsqueezeLeftsqueezeRightsqueezeBottomLeftsqueezeBottomsqueezeBottomRightpushTopLeftpushToppushTopRightpushLeftpushRightpushBottomLeftpushBottompushBottomRightgraphicCWSpingraphicCCWSpingraphicLogoWipe
switcher.atem.patternStyles (ATEMPatternStyles)
leftToRightBartopToBottomBarhorizontalBarnDoorverticalBarnDoorcornersInFourBoxrectangleIrisdiamondIriscircleIristopLeftBoxtopRightBoxbottomRightBoxbottomLeftBoxtopCentreBoxrightCentreBoxbottomCentreBoxleftCentreBoxtopLeftDiagonaltopRightDiagonal
switcher.atem.camerControlSharpeningLevels (ATEMCamerControlSharpeningLevels)
offlowmediumhigh
switcher.atem.macroActions (ATEMMacroActions)
runMacrostopMacrostopRecordinginsertWaitForUsercontinueMacrodeleteMacro
switcher.atem.keyFrames (ATEMKeyFrames)
abfullrunToInfinite
switcher.atem.mixEffects (ATEMMixEffects)
mixEffect1..4
switcher.atem.multiViewers (ATEMMultiViewers)
multiViewer1..2
switcher.atem.windows (ATEMWindows)
window1..10
switcher.atem.keyers (ATEMKeyers)
keyer1..4
switcher.atem.dSKs (ATEMDSKs)
dsk1..2
switcher.atem.colorGenerators (ATEMColorGenerators)
colorGenerator1..2
switcher.atem.auxChannels (ATEMAuxChannels)
auxChannel1..6
switcher.atem.cameras (ATEMCameras)
camera1..20
switcher.atem.mediaPlayers (ATEMMediaPlayers)
mediaPlayer1..4
switcher.atem.clipBanks (ATEMClipBanks)
clipBank1..2
switcher.atem.stillBanks (ATEMStillBanks)
stillBank1..32
switcher.atem.macros (ATEMMacros)
stopmacro1..100
switcher.atem.boxes (ATEMBoxes)
box1..4
