Rank: Advanced Member
Groups: Registered
Joined: 3/30/2023(UTC) Posts: 88  Location: Chicago Thanks: 8 times Was thanked: 3 time(s) in 2 post(s)
|
I've got a data source that sends information via UDP to vMix that identifies caller names from a phone screening system. I have been able to parse it out for the name, location (EG city) and the hybrid that the call is on (1 to 4).
Now, I'm trying to place that name into a title.
I wanted to put this name/location info in the indexed title preset (EG the title editor "list"), 1 to 4, depending upon which hybrid the call is on. This way our producer can quickly select from the presets depending which line goes on-air by right mouse clicking and selecting the appropriately populated line.
So, the problem seem to be in understanding how to get that string variable assigned to a specific index in the title. I haven't been able to successfully get that (always seems to go to the first preset).
I've been searching for samples of code to base my script snippet upon but haven't found anything.
Any example of this would be helpful.
Thank you!
Fritz Golman RadioDNA
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,377  Location: Belgium Thanks: 300 times Was thanked: 989 time(s) in 821 post(s)
|
Originally Posted by: fgolman 
So, the problem seem to be in understanding how to get that string variable assigned to a specific index in the title. I haven't been able to successfully get that (always seems to go to the first preset).
I've been searching for samples of code to base my script snippet upon but haven't found anything.
Any example of this would be helpful.
Thank you!
Fritz Golman RadioDNA
Code:API.Function("SetText",Input:="demo.gtzip",SelectedIndex:=1,Value:="line2")
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/30/2023(UTC) Posts: 88  Location: Chicago Thanks: 8 times Was thanked: 3 time(s) in 2 post(s)
|
This doesn't work.
Perhaps I need to clarify.
I want to populate the TITLE PRESETS.
Using your exact code it only goes into the live window, not the preset lines.
Perhaps this is a bug?
Fritz Golman RadioDNA
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,377  Location: Belgium Thanks: 300 times Was thanked: 989 time(s) in 821 post(s)
|
Originally Posted by: fgolman  This doesn't work.
Perhaps I need to clarify.
I want to populate the TITLE PRESETS.
Using your exact code it only goes into the live window, not the preset lines.
Perhaps this is a bug?
Fritz Golman RadioDNA
there is no function to maniplate the preset except for slect next or previous If you realy insist on working with the presets instead of a datasource directly you still need to manipuate the preset source and import it. My advice is to the datasource way as that window can stay open for quick selection
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 643  Location: athens Thanks: 155 times Was thanked: 84 time(s) in 80 post(s)
|
Hi. There also exist API.Function("SelectTitlePreset", Input:="My input", Value:="1") that can go into any title preset for selected input from 0 to n so a workaround could be first select the 1-4 line preset and then if you need to change the content for it,you use the set text function. Or datasources is easy option
|
|
|
|
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