nrkno / sofie-atem-connection

Sofie ATEM Connection: A Part of the Sofie TV Studio Automation System
https://github.com/nrkno/Sofie-TV-automation/
MIT License
134 stars 36 forks source link

preview / program tally info during transitions #77

Closed PeterMaes closed 4 years ago

PeterMaes commented 4 years ago

1586875643417 state.video.ME[0].programInput= 2 1586875643419 state.video.ME[0].previewInput= 1 1586875652282 KeyPress= AUTO/CUT 1586875652322 state.video.ME[0].previewInput= 1 --- transitions is happening here --- 1586875654302 state.video.ME[0].programInput= 1 1586875654303 state.video.ME[0].previewInput= 2

Julusian commented 4 years ago

The events being emitted here are a direct representation of what the atem is sending to the library. The preview & program inputs get swapped at the very end of the transition (you can prove this by hot cutting preview and program during a running transition). Atem Software Control must be changing the colour when it knows that it is in a transition (another property we have defined somewhere)

Perhaps you are after the listVisibleInputs function? https://nrkno.github.io/tv-automation-atem-connection/globals.html#listvisibleinputs This is designed to give the same preview & program state as seen on the multiviewer, and handles transitions, keyers and supersources.

PeterMaes commented 4 years ago

Thanks for your quick and helpfull reply. Indeed this is the function I was looking for !

mint-dewit commented 4 years ago

Atem Software Control must be changing the colour when it knows that it is in a transition

state.video.ME[0].inTransition (works for both auto transition and manually running the t-bar)