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
jammerxd  
#1 Posted : Sunday, February 17, 2019 10:36:39 AM(UTC)
jammerxd

Rank: Advanced Member

Groups: Registered
Joined: 12/25/2015(UTC)
Posts: 33

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Hi folks,
As we may have noticed the data source in vmix does not have a trigger for when the content in a file is changed. Some of us may like to have titles animate out and back in with new information. I developed this prototype that can use StreamLabels and the Vmix web API, combined with scripting(web scripting) to update the titles, trigger overlays, etc...when the content of a file is changed. The script(s) I used in vmix as well as the source code for the client are posted here.

Inputs:
1) Color -> Solid Color or whatever you want to stream/view
2) Title -> I used GT Animated Title -> Title 21 - kriss kross

Fade to input 1 then overlay the title on overlay input 2(for this demo)

Scripts:
MostRecentFollowerIn =>
Sleep 2000
Function=OverlayInput2In&Input=2

MostRecentFollowerOut =>
Function=OverlayInput2Out&Input=2

Release.zip contains the program in full.

Launch the program and you will see text fields at the top and a data grid at the bottom.
File name - The name of the text file containing the information you want to see. I.e. most_recent_follower.txt
VMix Host - The IP address of the computer running VMix I.e. http://localhost:8088
VMix Out Script - The name of the script to animate the title out I.e. MostRecentFollowerOut
VMix In Script - The name of the script to animate the title in I.e. MostRecentFollowerIn
VMix Input Field Name - The name of the field to update the title text with I.e. Headline.Text

Once those are filled out, click add and now the file will update and continue to monitor the file that streamlabels updates with new information. The animation will only be triggered if the content is different than the last time it was read. Additionally, opening the file and editing in notepad and saving will cause the title to update as well.


P.S. I will be using this for my live streams on twitch. So if you have questions you can ask when I'm live or follow and get notified when I'm live.
thanks 1 user thanked jammerxd for this useful post.
sinc747 on 2/17/2019(UTC)
doggy  
#2 Posted : Sunday, February 17, 2019 5:39:00 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Nice

Must be doing something wrong though as i see the data change before the out animation


Edit: you probably need to add a delay in your code before instructing the //update title text to cover the time needed for the animation out
jammerxd  
#3 Posted : Monday, February 18, 2019 2:33:29 AM(UTC)
jammerxd

Rank: Advanced Member

Groups: Registered
Joined: 12/25/2015(UTC)
Posts: 33

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Yeah I just managed to fix that and the false changes. I'll upload it soon.
jammerxd  
#4 Posted : Monday, February 18, 2019 3:44:22 AM(UTC)
jammerxd

Rank: Advanced Member

Groups: Registered
Joined: 12/25/2015(UTC)
Posts: 33

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
UPDATE 02/17/2019 11:38 AM Central(UTC-5):

The project has been posted on gitlab and all the code as well as releases can be found there.
Debug.zip is the debug build
Release.zip is the release build

Project on Gitlab URL: https://gitlab.com/jammerxd/vmix-title-updater

Look for the tags in the project and then v0-0-0-1-Alpha and this will have the Debug.zip and Release.zip. It seems I cannot post 2 links in the same post or it gets "detected as spam".
doggy  
#5 Posted : Monday, February 18, 2019 4:09:23 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
How many times can a site ask you for a login ..... like at every click?page ???
jammerxd  
#6 Posted : Monday, February 18, 2019 4:51:23 AM(UTC)
jammerxd

Rank: Advanced Member

Groups: Registered
Joined: 12/25/2015(UTC)
Posts: 33

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: doggy Go to Quoted Post
How many times can a site ask you for a login ..... like at every click?page ???


Are you using incognito? Could also try just going to gitlab.com and then clicking sign in before looking for my project? Never heard of that before...
doggy  
#7 Posted : Monday, February 18, 2019 5:24:03 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Yeah it was messed up but finally got through
( had signed im but kept asking to login again each page change)
Geoff B  
#8 Posted : Monday, January 4, 2021 12:46:04 AM(UTC)
Geoff B

Rank: Advanced Member

Groups: Registered
Joined: 5/10/2020(UTC)
Posts: 104
Man
United States
Location: Sacramento, California

Thanks: 13 times
Was thanked: 5 time(s) in 5 post(s)
Hey jammerxd,

Are you still supporting this? I have downloaded and installed, just trying to get it to work.
Users browsing this topic
Guest (2)
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.