logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
pb01  
#1 Posted : Monday, September 28, 2020 7:36:29 PM(UTC)
pb01

Rank: Newbie

Groups: Registered
Joined: 9/28/2020(UTC)
Posts: 3

Is it possible to do a realtime animated graph from an api data source? So like for example when a piece of data changes this graph visually gets updated in real time?
If so, how do you do this?

I read something about something called xaml and wpf but I couldn't find any actual examples of how to create one that works in vmix. I found an example xaml project somewhere on these forums but that one didn't have any logic just the visual xaml so that wasn't what I was looking for. I tried creating my own c# xaml project, since the example one was in visual basic which I don't know, but I couldn't get it to build into a dll or anything.

Is there an easier way to do this, or is this xaml route really the only solution, or will this xaml route not even be a solution? If so, is there a tutorial or guide that tells you from start to finish how to set up a xaml wpf project for vmix in visual studio and then build it into a dll that can be imported into vmix that supports data inputs that can be connected to data sources in vmix?

*edit I've gotten a dll to generate and import but I'm still not sure how to link things to Properties or to a data source input. I'm not sure if the code itself is even executing either.
doggy  
#2 Posted : Monday, September 28, 2020 8:55:43 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,222
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Are you sure you want to venture there ? and with graphs no less!

While you could use data to al sorts of things in a XAML (.dll) file it's processing will have to be incorporated within it's code behind (not from a loaded datasource within vmix / not directly anyways)

Advice you to search the forum (or even better Google will will give you forum links) a bit more for like "vmix wpf dll" and alike

XAML is a solution if you want the "title/graphics" loaded directly within vMix , other options are external application that lets you import a video feed from them like NDI or just plain screengrabs form a working application



https://forums.vmix.com/...ted--data-driven--titles


PS . fun part about these .dll titles , if you want to edit them you will have to close vMx as just deleting their input is not going to release them for editing/saving
MartLeib  
#3 Posted : Monday, September 28, 2020 9:12:00 PM(UTC)
MartLeib

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2017(UTC)
Posts: 189
Estonia

Thanks: 1 times
Was thanked: 52 time(s) in 42 post(s)
I would use a web browser input and webpage developed for that API. Chart.js is a great library for animated graphics on the web.

If you need it, contact me: mart.leib.estonia@gmail.com
pb01  
#4 Posted : Wednesday, September 30, 2020 2:09:22 PM(UTC)
pb01

Rank: Newbie

Groups: Registered
Joined: 9/28/2020(UTC)
Posts: 3

Originally Posted by: doggy Go to Quoted Post
Are you sure you want to venture there ? and with graphs no less!

While you could use data to al sorts of things in a XAML (.dll) file it's processing will have to be incorporated within it's code behind (not from a loaded datasource within vmix / not directly anyways)

Advice you to search the forum (or even better Google will will give you forum links) a bit more for like "vmix wpf dll" and alike

XAML is a solution if you want the "title/graphics" loaded directly within vMix , other options are external application that lets you import a video feed from them like NDI or just plain screengrabs form a working application

https://forums.vmix.com/...ted--data-driven--titles


PS . fun part about these .dll titles , if you want to edit them you will have to close vMx as just deleting their input is not going to release them for editing/saving


I see thanks for the info. I was trying to do the xaml stuff with visual studio but it seems blend may be a better application for this?
Can you tell me if this should indeed be possible via xaml?

  • Create a graphic that is essentially a bar graph.
  • A Vmix Data Source input is used as input into this xaml imported component setting "properties" of some kind that then update the bars in real time ( based on vmix's data source refresh interval )?
  • Potentially other configurable properties on this xaml configurable by UI for example "color of bars" or something like that. Maybe related to something called a "ShowProperties" function?


What did you mean by "not from a loaded datasource within vmix / not directly anyways", is there an indirect way to do it?
doggy  
#5 Posted : Wednesday, September 30, 2020 5:56:58 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,222
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Blend is part of visual studio

You can read and process what is put in a textblock fed by a vMix datasource the usual way with codebehind hence indirectly (else full data files are handled within the code ie loading and reading etc)

But why not a little search in the forum first , not always need to code ?

https://forums.vmix.com/...--Titolo-Grafico-a-Barre
pb01  
#6 Posted : Thursday, October 1, 2020 12:07:26 PM(UTC)
pb01

Rank: Newbie

Groups: Registered
Joined: 9/28/2020(UTC)
Posts: 3

alright thanks for the link.
simond83  
#7 Posted : Thursday, October 1, 2020 12:21:35 PM(UTC)
simond83

Rank: Advanced Member

Groups: Registered
Joined: 5/25/2020(UTC)
Posts: 31

Was thanked: 1 time(s) in 1 post(s)
https://newbluefx.com/products/on-air-graphics/

NewBlue FX have added "Spreadsheet and crawl autoplay mode". It's meant to work with Google Sheets, but i've yet to test it. Feel free to beat me to the punch.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.