Rank: Member
Groups: Registered
Joined: 2/11/2021(UTC) Posts: 12 Thanks: 8 times Was thanked: 1 time(s) in 1 post(s)
|
I'd like to use the datasource routine in vMix for importing data to use for other actions, for instance to use it to set a PreviewInput.
So i made a title called RUNDOWNPANEL with to items: PVW_ITEM_NR and PVW_CONTENT_TEXT
Then i made this: dim PVW_ITEM as String = Input.Find("RUNDOWNPANEL").Text("PVW_ITEM_NR.Text") dim PVW_CONTENT as String = Input.Find("RUNDOWNPANEL").Text("PVW_CONTENT_TEXT.Text")
API.Function("PreviewInput", Input:=PVW_ITEM) This works fine, when the string of PVW_ITEM_NR = "1", the first input will be set in Preview
But when I try API.Function("PreviewInput", Input:=PVW_CONTENT) It does not work though the string of PVW_CONTENT_TEXT = "CAM 1"
Hope to get some advice here.
Thx in advance.
|
|
|
|
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)
|
Originally Posted by: Korne_B I'd like to use the datasource routine in vMix for importing data to use for other actions, for instance to use it to set a PreviewInput.
So i made a title called RUNDOWNPANEL with to items: PVW_ITEM_NR and PVW_CONTENT_TEXT
Then i made this: dim PVW_ITEM as String = Input.Find("RUNDOWNPANEL").Text("PVW_ITEM_NR.Text") dim PVW_CONTENT as String = Input.Find("RUNDOWNPANEL").Text("PVW_CONTENT_TEXT.Text")
API.Function("PreviewInput", Input:=PVW_ITEM) This works fine, when the string of PVW_ITEM_NR = "1", the first input will be set in Preview
But when I try API.Function("PreviewInput", Input:=PVW_CONTENT) It does not work though the string of PVW_CONTENT_TEXT = "CAM 1"
Hope to get some advice here.
Thx in advance. Should work , check for correct name of the wanted input! in your script might help to check using console.writeline(PVW_CONTENT_TEXT ) to verify the data retrieved from the title is also correct Tip: avoid spaces !
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 2/11/2021(UTC) Posts: 12 Thanks: 8 times Was thanked: 1 time(s) in 1 post(s)
|
I removed the spaces, so no "Cam 1" but Cam_1" but still not working. When using PVW_ITEM the console turns the right number but this is the return from the console with (PVW_CONTENT_TEXT): Starting Script "GS_PREV"
Stopping Script "GS_PREV" So just a blank line.
Any suggestions?
|
|
|
|
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)
|
Originally Posted by: Korne_B I removed the spaces, so no "Cam 1" but Cam_1" but still not working. When using PVW_ITEM the console turns the right number but this is the return from the console with (PVW_CONTENT_TEXT): Starting Script "GS_PREV"
Stopping Script "GS_PREV" So just a blank line.
Any suggestions? Looks like your data is not going into the textblock of the title or the reference to reading it from the tilte is wrong somehow . I did test with putting a text in a title ( diff reference to the textblock name) be it manual or with datasourceand reading it according to your "code" and it worked Check the naming of the title textblocks Code:dim PVW_CONTENT as String = Input.Find("Title 0- The Classic Blue.gtzip").Text("Headline.Text")
console.writeline(PVW_CONTENT ) 'input named "demo" ; title & data source content "demo"
API.Function("PreviewInput", Input:=PVW_CONTENT)
BTW one can display code much easier to read in post using choose language for syntac highlighting Code:Starting Script "GS_PREV"
Stopping Script "GS_PREV"
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/11/2021(UTC) Posts: 12 Thanks: 8 times Was thanked: 1 time(s) in 1 post(s)
|
So far so good with commandline prompt. But no change in Preview. Tomorrow I will create a new blank input and name it “demo”. See what happens then. I will let you know
|
|
|
|
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