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
EpicVisionZone  
#1 Posted : Wednesday, January 11, 2023 4:33:38 AM(UTC)
EpicVisionZone

Rank: Member

Groups: Registered
Joined: 6/28/2020(UTC)
Posts: 11
United States
Location: Scottsdale

I have set up a DataSource to add a lower 3rd text to a broadcast style setup.

Each time the lower 3rd message changes(an input by us), I can WriteDuration... with the text message "Lower 3d". Works great.

However, wanting to find out if possible that rather than "Lower 3rd" in the log file, I would like to have the line of text from the DataSource logged.

WriteDuration.jpg (68kb) downloaded 0 time(s).Is this possible? Thanks,
doggy  
#2 Posted : Wednesday, January 11, 2023 4:42:13 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,214
Belgium
Location: Belgium

Thanks: 290 times
Was thanked: 952 time(s) in 787 post(s)
Originally Posted by: EpicVisionZone Go to Quoted Post
I have set up a DataSource to add a lower 3rd text to a broadcast style setup.

Each time the lower 3rd message changes(an input by us), I can WriteDuration... with the text message "Lower 3d". Works great.

However, wanting to find out if possible that rather than "Lower 3rd" in the log file, I would like to have the line of text from the DataSource logged.

Is this possible? Thanks,


Script:
read content of the datasource (through title) and perform the api function with the resulting text as value.
SD button calls script
easy peasy
EpicVisionZone  
#3 Posted : Wednesday, January 11, 2023 4:57:08 AM(UTC)
EpicVisionZone

Rank: Member

Groups: Registered
Joined: 6/28/2020(UTC)
Posts: 11
United States
Location: Scottsdale

Thanks, but not a coder so writing the API function is not possible for me.

Is there perhaps another way to do this?

Thanks
doggy  
#4 Posted : Wednesday, January 11, 2023 5:03:06 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,214
Belgium
Location: Belgium

Thanks: 290 times
Was thanked: 952 time(s) in 787 post(s)
Originally Posted by: EpicVisionZone Go to Quoted Post
Thanks, but not a coder so writing the API function is not possible for me.

Is there perhaps another way to do this?

Thanks


Check the "scripting for dummies" post in this forum
doggy  
#5 Posted : Wednesday, January 11, 2023 5:14:32 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,214
Belgium
Location: Belgium

Thanks: 290 times
Was thanked: 952 time(s) in 787 post(s)
Code:
dim result as string  = Input.Find("Blue.gtzip").Text("Headline.Text")
API.Function("WriteDurationToRecordingLog",Value:=result)
EpicVisionZone  
#6 Posted : Wednesday, January 11, 2023 9:09:37 AM(UTC)
EpicVisionZone

Rank: Member

Groups: Registered
Joined: 6/28/2020(UTC)
Posts: 11
United States
Location: Scottsdale

Thanks Doggy: Here is what I have so far with Web Scripting.

Function=SetText&Input=GuestLower3rds&SelectedName=Headline.text
Function=OverlayInput2In&Input=GuestLower3rds
Function=WriteDurationToRecordingLog&Value=test

This all works EXCEPT in the 3rd line where I WriteDuration, I would like to dynamically set the Value to the Datasource value from the SetText.

Any suggestions are welcome.

Thanks,
doggy  
#7 Posted : Thursday, January 12, 2023 12:15:05 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,214
Belgium
Location: Belgium

Thanks: 290 times
Was thanked: 952 time(s) in 787 post(s)
Originally Posted by: EpicVisionZone Go to Quoted Post
Thanks Doggy: Here is what I have so far with Web Scripting.

Function=SetText&Input=GuestLower3rds&SelectedName=Headline.text
Function=OverlayInput2In&Input=GuestLower3rds
Function=WriteDurationToRecordingLog&Value=test

This all works EXCEPT in the 3rd line where I WriteDuration, I would like to dynamically set the Value to the Datasource value from the SetText.

Any suggestions are welcome.

Thanks,


You mentioned you have setup a datasource so assume it is linked to the title to update the title content based on the row selected in the datasource
This means there is no use for the SetText function . Even so the function is not even putting content in the title as it has no value specified to do so so doesnt do a thing

In your write duration you mantion the use of a variable "test" but i also contains nothing as you didnt put one in somewhere

Webscripting can be used for the vMix functions but not to set and use variables (vb.net )

So as mentioned before
- manually or autofill the title text (datasource)
- call a script when triggering the Overlay of the title (or by using a sortcut calling the script
- use the script i posted before to be called (adjust the name of the title and its textfield

Code:
dim result as string  = Input.Find("GuestLower3rds").Text("Headline.Text")
API.Function("WriteDurationToRecordingLog",Value:=result)


Above script when called will read the content of the textfield in your title and write it to the log next to the timestamp in the logfile
This is the most bassic version as it does not check if a recording is actually taking place , hence make sure you are recording to perform the script ( else it is useless obviously)

one can also run the script inthe script settings tab manually( when you saved the script)
EpicVisionZone  
#8 Posted : Thursday, January 12, 2023 3:01:05 AM(UTC)
EpicVisionZone

Rank: Member

Groups: Registered
Joined: 6/28/2020(UTC)
Posts: 11
United States
Location: Scottsdale

Works great. Thanks Doggy. My mistake is I didn't hit the Record button.

Thanks for all your advice.

Very much appreciated.

I also posted your solution, giving you credit of course, on the vMix group page on Facebook where I originally posted the question.

Thanks.
Users browsing this topic
Guest
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.