Rank: Newbie
Groups: Registered
Joined: 2/27/2021(UTC) Posts: 7 Location: London
|
Hi,
I have a requirement to make vMix change stream keys based on the time of day. The stream keys will be in a Google Sheet.
How do I access the datasource values (strings) within the script?
So far I have:
API.Function("DataSourceSelectRow",Value:="Stream_Key_Test,Keys,0") API.Function("StreamingSetKey",0,"test123")
And I need to replace "test123" with a variable that contains the actual text stored in the second column of the spreadsheet at row 0.
Many thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: tom@24bit.io Hi,
I have a requirement to make vMix change stream keys based on the time of day. The stream keys will be in a Google Sheet.
How do I access the datasource values (strings) within the script?
So far I have:
API.Function("DataSourceSelectRow",Value:="Stream_Key_Test,Keys,0") API.Function("StreamingSetKey",0,"test123")
And I need to replace "test123" with a variable that contains the actual text stored in the second column of the spreadsheet at row 0.
Many thanks One puts the value in a title and read with script from there or the script access the data source file directly (preferable XML source) Check out "scripting for dummies" post and how to read text from a title in the helpfiles
|
|
|
|
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