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
spencerm24  
#1 Posted : Saturday, January 5, 2019 12:17:25 AM(UTC)
spencerm24

Rank: Advanced Member

Groups: Registered
Joined: 9/23/2017(UTC)
Posts: 249
Location: Toronto

Thanks: 13 times
Was thanked: 19 time(s) in 17 post(s)
Wondering if this is possible within vMix, without having to have a script or something, as I'm not a programmer.

I have a graphic with two columns of data.

Column 1 is Row 1 of data....Column is Row 2-10 of data cycling.

I know I can cycle the rows and loop them, but if I did this, I'd get row 1 in the right column at some points, which I don't want. Right now I waste resources by having 10 different inputs, and a playlist to cycle them. having 10 inputs causes some CPU use, which in a complex project, can make or break it. so i'm wondering if there is an easier way to accomplish this without tying up 2 keyers and using 10 inputs for this.
doggy  
#2 Posted : Saturday, January 5, 2019 2:05:34 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 283 times
Was thanked: 916 time(s) in 755 post(s)
10 different inputs seems a bit harsh when you can do with 2 , one containing the 1 column and 1 the second and multiview them (see todays other post https://forums.vmix.com/posts/t17936-Data-Source-Row-Formatting-1 )

load the csv twice , one for populating the first column , and the other for populating the second column.
just use "auto next" to loop through the second data source or use a shortcut do do it manually
as you dont want to script you still end up with the first row in the second column unless you adapt the second data source omitting the first row

actually one input for your graphics will do , just link the data to the 2 different data sources
spencerm24  
#3 Posted : Sunday, January 6, 2019 4:19:10 PM(UTC)
spencerm24

Rank: Advanced Member

Groups: Registered
Joined: 9/23/2017(UTC)
Posts: 249
Location: Toronto

Thanks: 13 times
Was thanked: 19 time(s) in 17 post(s)
Originally Posted by: doggy Go to Quoted Post
10 different inputs seems a bit harsh when you can do with 2 , one containing the 1 column and 1 the second and multiview them (see todays other post https://forums.vmix.com/posts/t17936-Data-Source-Row-Formatting-1 )

load the csv twice , one for populating the first column , and the other for populating the second column.
just use "auto next" to loop through the second data source or use a shortcut do do it manually
as you dont want to script you still end up with the first row in the second column unless you adapt the second data source omitting the first row

actually one input for your graphics will do , just link the data to the 2 different data sources


That's exactly my hangup, trying to get the first row in the second column, especially as the data is changing every few seconds, its hard to go in and eliminate the first row, If not for that issue, two inputs would work, but alas im left with having to use 10 inputs and 2 keyers. (2nd keyer cycles the 2nd-10th rows alternating)


I have a couple basic scripts inside vMix that I might be able to learn from and somehow adapt them.

Is there a way to run a few scripts indefinitely? In that case, I can have the script change the row manually from 2-3-4-5-6-7-8-9-10 and back to 2, looping. I'm just not familiar with scripting enough to do that easily so if you have a way, I'm willing to give it a go.

doggy  
#4 Posted : Sunday, January 6, 2019 5:40:16 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 283 times
Was thanked: 916 time(s) in 755 post(s)
well there is a DataSourceSelectRow one can play with in a shortcut or script to loop with

Edit:
Mind you ,only high end licenses allow scripting within vMix but one could easely use a external scripting language to send httprequest api commands or have it even scripted within your title (bit more advanced)
doggy  
#5 Posted : Sunday, January 6, 2019 6:40:22 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 283 times
Was thanked: 916 time(s) in 755 post(s)
if you have scripting available in your license

for the rotating Datasource selection :

Code:
while (true)
For i As Integer = 1 to 5

 Dim client = WebRequest.Create("http://127.0.0.1:8088/api/?Function=DataSourceSelectRow&Value=Name,Table," & i  )
 Dim response = client.GetResponse()
  Sleep(5000)

Next
end while


where Name of the Data Source, Table Name (optional) and Row Index starting
spencerm24  
#6 Posted : Tuesday, January 8, 2019 1:03:23 AM(UTC)
spencerm24

Rank: Advanced Member

Groups: Registered
Joined: 9/23/2017(UTC)
Posts: 249
Location: Toronto

Thanks: 13 times
Was thanked: 19 time(s) in 17 post(s)
Originally Posted by: doggy Go to Quoted Post
if you have scripting available in your license

for the rotating Datasource selection :

Code:
while (true)
For i As Integer = 1 to 5

 Dim client = WebRequest.Create("http://127.0.0.1:8088/api/?Function=DataSourceSelectRow&Value=Name,Table," & i  )
 Dim response = client.GetResponse()
  Sleep(5000)

Next
end while


where Name of the Data Source, Table Name (optional) and Row Index starting


I have Pro so scripting is available, is there a way to have that script cycle 2-10 only? my very very basic understanding of scripts, that looks like a 1-5 cycle script.
doggy  
#7 Posted : Tuesday, January 8, 2019 1:18:18 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 283 times
Was thanked: 916 time(s) in 755 post(s)
Change 5 to 9. Counting rows starts with 0
spencerm24  
#8 Posted : Tuesday, January 8, 2019 1:41:34 AM(UTC)
spencerm24

Rank: Advanced Member

Groups: Registered
Joined: 9/23/2017(UTC)
Posts: 249
Location: Toronto

Thanks: 13 times
Was thanked: 19 time(s) in 17 post(s)
Originally Posted by: doggy Go to Quoted Post
Change 5 to 9. Counting rows starts with 0


Gotcha. I shall give that a try. Thanks!!
Users browsing this topic
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.