Rank: Newbie
Groups: Registered
Joined: 9/6/2020(UTC) Posts: 3
|
Hi, I wrote a little script to give me bible verses in english and german like this: Quote:[1] In the beginning God created the heavens and the earth. [2] Now the earth was formless and empty, darkness was over the surface of the deep, and the Spirit of God was hovering over the waters.
[1] Im Anfang schuf Gott den Himmel und die Erde. [2] Und die Erde war wüst und leer, und Finsternis war über der Tiefe; und der Geist Gottes schwebte über dem Wasser.
Genesis 1:1-2 For this I use a javascript bookmark in Chrome. My goal is to add each bible verse group as a title preset. We add all bible verses in the beginning and switch to each verse during the sermon, like this: So I checked the API and I was able to select, next or previous title preset. But I did not find an option to add a value as preset. Is there a way to add values as title presets? For example: Quote:http://127.0.0.1:8088/api/?Function=AddTitlePreset&Input=Text_Main_Verse&Value=MyBibleVerse
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/6/2020(UTC) Posts: 3
|
Any chance this getting implemented in future versions? Or any other workaround? I don't want to import/export csv files because you cannot write to files using javascript. So using the API would be ideal!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,243 Location: Belgium Thanks: 294 times Was thanked: 960 time(s) in 794 post(s)
|
If you really want to be able to select a "preset" you will have to go to data sources, meanig , you wil have a to find a way to write to a file first . It will make your live so much easier Why not export your presets to a csv file ?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/6/2020(UTC) Posts: 3
|
Originally Posted by: doggy If you really want to be able to select a "preset" you will have to go to data sources, meanig , you wil have a to find a way to write to a file first . It will make your live so much easier Why not export your presets to a csv file ? As I said, I use a javascript bookmark to extract both german and english translation from a website and copy it to the clipboard. Then I go to vMix and paste the content to the slide. Instead of writing to the clipboard I want to insert the content via the api. Since I use javascript within a browser there is no way to write to a file.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,243 Location: Belgium Thanks: 294 times Was thanked: 960 time(s) in 794 post(s)
|
Use an app or some script to save/add the clipboard content to a csv file (autohotkey for example) and your data source will update with each addition ( or you can import it into your presets)
Is easier to select with a variable (data source row ) the row you want
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 493 Location: Copenhagen, Denmark Thanks: 398 times Was thanked: 100 time(s) in 79 post(s)
|
As doggy proposes, I think the easiest approach is to create a .txt or .csv file with the content from the verse and load it as data source. The other solution is overly complicated.
|
|
|
|
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