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
theknut  
#1 Posted : Sunday, September 6, 2020 9:01:42 PM(UTC)
theknut

Rank: Newbie

Groups: Registered
Joined: 9/6/2020(UTC)
Posts: 3
Germany

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:
Example

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


theknut  
#2 Posted : Friday, September 18, 2020 6:57:40 PM(UTC)
theknut

Rank: Newbie

Groups: Registered
Joined: 9/6/2020(UTC)
Posts: 3
Germany

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!
doggy  
#3 Posted : Friday, September 18, 2020 7:19:59 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,243
Belgium
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 ?
theknut  
#4 Posted : Friday, September 18, 2020 7:42:59 PM(UTC)
theknut

Rank: Newbie

Groups: Registered
Joined: 9/6/2020(UTC)
Posts: 3
Germany

Originally Posted by: doggy Go to Quoted Post
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.
doggy  
#5 Posted : Friday, September 18, 2020 8:39:05 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,243
Belgium
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
stigaard  
#6 Posted : Saturday, September 19, 2020 12:52:13 AM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 493
Man
Denmark
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.
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.