vMix Forums
»
General
»
General Discussion
»
CSV data source cycling rows 2-10 only.
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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,075 Location: Belgium Thanks: 284 times Was thanked: 920 time(s) in 759 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
|
|
|
|
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 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,075 Location: Belgium Thanks: 284 times Was thanked: 920 time(s) in 759 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)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,075 Location: Belgium Thanks: 284 times Was thanked: 920 time(s) in 759 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
|
|
|
|
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 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,075 Location: Belgium Thanks: 284 times Was thanked: 920 time(s) in 759 post(s)
|
Change 5 to 9. Counting rows starts with 0
|
|
|
|
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 Change 5 to 9. Counting rows starts with 0 Gotcha. I shall give that a try. Thanks!!
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
CSV data source cycling rows 2-10 only.
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close